You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testing embassy-nrf on nrf52840, I found that the set_duty method of SimplePwm seems to behave unexpectedly. Specifically, the higher the value set by set_duty, the lower the actual PWM duty cycle output. Here is a minimal example:
I connected an LED with its anode to P0_13 and cathode to GND. When I increase the value of set_duty, the LED becomes dimmer (i.e., the output duty cycle actually decreases).
I am unsure if this is a misunderstanding on my part, or if it is specific to my board or setup. My expectation is that increasing the value passed to set_duty should increase the duty cycle (i.e., the output should be "on" for a longer portion of each cycle). Is this the intended behavior, or is there something I am missing?