Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement changing PWM frequency #13
Right now the PWM objects just let you change duty cycle with the duty function (0-255, 8 bit values). However it would be handy to also support changing the frequency with the freq function which takes in a frequency in hertz for the PWM signal to use. This is similar to the behavior in the ESP8266 port (IIRC there is a limitation that the frequency is global across all PWM output, so it's not the end of the world if we need a similar limitation vs. trying to have a mess of timers for each PWM output).