class PWMBacklight – PWM Backlight
The PWMBacklight class controls a screen backlight via a PWM timer channel. Pass an instance
as the backlight argument to any display constructor that accepts a backlight controller.
Constructors
- class display.PWMBacklight(pin: machine.Pin, timer: int = 3, channel: int = 3, frequency: int = 200)
Creates a PWM-driven backlight controller.
pinspecifies the Pin to use.timerspecifies the Timer number to use.channelspecifies the Timer channel to use.frequencyspecifies the PWM frequency in Hz.