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
I'm testing the PWM output (PWM1A) to regulate an LED brightness:
Issuing a pwmWrite(PWM1A, 255) works as expected and the LED lights up to full brightness (allowed by the voltage divider);
Issuing a pwmWrite(PWM1A, 65536, RES_16BIT) doesn't work, it doesn't log any error and the LED stays turned off. Changing values doesn't make any difference.
Tested with both PWM1* and PWM2*.
Any clues?
The text was updated successfully, but these errors were encountered:
Interesting, looking through that file (it's been a while since I wrote that) it looks like there are a few divisions that I should reassess. Just importing the new division operator could potentially cause trouble elsewhere since I tend to use the default floor division intentionally.
This module is next on my list to move to a C extension to speed things up, so I'll probably leave it as is for now and get to doing that ASAP.
Hello and thanks for the hard work.
I'm testing the PWM output (PWM1A) to regulate an LED brightness:
pwmWrite(PWM1A, 255)
works as expected and the LED lights up to full brightness (allowed by the voltage divider);pwmWrite(PWM1A, 65536, RES_16BIT)
doesn't work, it doesn't log any error and the LED stays turned off. Changing values doesn't make any difference.Tested with both PWM1* and PWM2*.
Any clues?
The text was updated successfully, but these errors were encountered: