rm-hull / luma.lcd

Python module to drive PCD8544, HT1621, ST7735, ST7567 and UC1701X-based LCDs
https://luma-lcd.readthedocs.io
MIT License
156 stars 56 forks source link

PWM Backlight Control #95

Closed kevinastone closed 4 years ago

kevinastone commented 4 years ago

Would you accept a PR to implement PWM backlight LED control? I've hacked it together locally in my project leveraging luma.lcd.

One important consideration is that RPi.GPIO doesn't support hardware PWM, so I had to substitute pigpio as the GPIO library (I'm also using gpiozero.PWMLED for convenience).

rm-hull commented 4 years ago

Sure, happy to accept a PR

thijstriemstra commented 4 years ago

released as 2.3.0 (https://pypi.org/project/luma.lcd/2.3.0/)