lv_binding_micropython
lv_binding_micropython copied to clipboard
drivers/generic/st77xx: Support use on platforms without machine.PWM.
The drivers/generic/st77xx.py driver initialises PWM to handle the backlight with dimming.
On stm32 platform there is no machine.PWM module so this driver fails to load at all. This PR checks and skips the PWM if missing, meaning the backlight will fall back to basic on/off control.