Abstract backlight control.
More...
#include <SegBacklight.h>
|
| virtual | ~SegBacklight ()=default |
| |
| virtual void | init (bool pwm)=0 |
| | Initialize the backlight output.
|
| |
| virtual void | setDigital (bool state)=0 |
| | Drive the backlight on/off.
|
| |
| virtual void | setBrightness (uint8_t brightness)=0 |
| | Drive the backlight brightness.
|
| |
Abstract backlight control.
Implementations drive the GPIO/PWM peripheral behind a display's backlight.
◆ ~SegBacklight()
| virtual SegBacklight::~SegBacklight |
( |
| ) |
|
|
virtualdefault |
◆ init()
| virtual void SegBacklight::init |
( |
bool |
pwm | ) |
|
|
pure virtual |
Initialize the backlight output.
- Parameters
-
| pwm | true to prepare PWM/brightness control, false for plain digital on/off |
Implemented in SegBacklightArduino.
◆ setBrightness()
| virtual void SegBacklight::setBrightness |
( |
uint8_t |
brightness | ) |
|
|
pure virtual |
Drive the backlight brightness.
- Parameters
-
| brightness | Brightness level 0-255 |
Implemented in SegBacklightArduino.
◆ setDigital()
| virtual void SegBacklight::setDigital |
( |
bool |
state | ) |
|
|
pure virtual |
Drive the backlight on/off.
- Parameters
-
| state | true to turn the backlight on, false to turn it off |
Implemented in SegBacklightArduino.
The documentation for this class was generated from the following file: