Arduino GPIO/PWM implementation of backlight control.
More...
#include <SegBacklightArduino.h>
|
| | SegBacklightArduino (uint8_t pin, bool activeHigh=true) |
| | Create Arduino backlight control.
|
| |
| void | init (bool pwm) override |
| | Initialize the backlight output.
|
| |
| void | setDigital (bool state) override |
| | Drive the backlight on/off.
|
| |
| void | setBrightness (uint8_t brightness) override |
| | Drive the backlight brightness.
|
| |
| virtual | ~SegBacklight ()=default |
| |
Arduino GPIO/PWM implementation of backlight control.
◆ SegBacklightArduino()
| SegBacklightArduino::SegBacklightArduino |
( |
uint8_t |
pin, |
|
|
bool |
activeHigh = true |
|
) |
| |
Create Arduino backlight control.
- Parameters
-
| pin | Backlight GPIO pin |
| activeHigh | true if backlight is active high (default), false for active low |
◆ init()
| void SegBacklightArduino::init |
( |
bool |
pwm | ) |
|
|
overridevirtual |
Initialize the backlight output.
- Parameters
-
| pwm | true to prepare PWM/brightness control, false for plain digital on/off |
Implements SegBacklight.
◆ setBrightness()
| void SegBacklightArduino::setBrightness |
( |
uint8_t |
brightness | ) |
|
|
overridevirtual |
Drive the backlight brightness.
- Parameters
-
| brightness | Brightness level 0-255 |
Implements SegBacklight.
◆ setDigital()
| void SegBacklightArduino::setDigital |
( |
bool |
state | ) |
|
|
overridevirtual |
Drive the backlight on/off.
- Parameters
-
| state | true to turn the backlight on, false to turn it off |
Implements SegBacklight.
◆ _activeHigh
| bool SegBacklightArduino::_activeHigh |
|
private |
◆ _pin
| uint8_t SegBacklightArduino::_pin |
|
private |
The documentation for this class was generated from the following files: