WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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

@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