Uses PiGPIO to drive a hardware PWM pin. Super early stages!
You like my work? Feel free to donate :)
Install via the bundled Plugin Manager or manually using this URL:
https://github.com/farfalleflickan/OctoPrint-Hardwarepwm/archive/master.zip
Requires the pigpio deamon to be running (I recommend to install "pigpio" via apt-get and enable it with "sudo systemctl enable pigpiod" and then reboot your Raspberry Pi. Defaults to pin 19 (BCM pin naming). To change the pin, frequency or the dutycycle, simply edit the corresponding fields in the settings page.