RoboMagus / OctoPrint-LightControls

Raspberry PI pwm Light controlls plugin for Octoprint
GNU General Public License v3.0
5 stars 2 forks source link

Make sure default ALT0 hardware PWM pin mode isn't overwritten #7

Closed svenstaro closed 1 year ago

svenstaro commented 1 year ago

RPi.GPIO only supports IN and OUT pin modes but not the special PWM mode ALT0. In case hardware PWM is properly configured, the system will boot up with the pin in the correct mode. However, overwriting the pin mode will get rid of that configuration and it will render the pin useless for hardware PWM.