Skip to content

analogWrite(PIN, value); is 8bit by default instead of 12-bit by default #1022

Closed
@HamidSaffari

Description

@HamidSaffari

Hi.
I just realized analogWrite(PIN, value); is 8bit by default instead of 12-bit by default.
I attach an LED on PB6 pin and when I change the output PWM value (duty-Cycle) from 0 to 4095 on this pin, LED gets darker and brighter about 8-times in between.
now how could I change it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions