-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
On a NUCLEO-F030R8, if I call analogWrite(9,255), I'm seeing a 3.9us low pulse each period. I expected pin 9 to just stay HIGH when using a value of 255 as that is the max value for the range (0-255). Shouldn't it do a digitalWrite(9,HIGH) if the value provided is the max of the analogResolution?
Using a value of 254 I'm seeing a low pulse of 7.8us where I expected to see a 3.9us one
Using a value of 1 I see a 3.9us high pulse this seems right so the problem isn't just an off by one problem.
Using a value of 0 produces a steady low value on the pin.
Metadata
Metadata
Assignees
Labels
No labels