#include <LedLcdManager.h>
|
void | setupPhysicalLeds (pin_t led1=invalidPin, pin_t led2=invalidPin, pin_t led3=invalidPin, pin_t led4=invalidPin, pin_t led5=invalidPin, pin_t led6=invalidPin, pin_t led7=invalidPin, pin_t led8=invalidPin) |
|
|
static void | setup (int8_t i2cAddress, uint8_t columns=defaultLcdColumns, uint8_t rows=defaultLcdRows, const pin_t physicalLeds[maxLeds]=NULL, const led_t logicalLeds[maxLeds]=NULL, const bool shouldTimeOut[maxLeds]=NULL) |
| Sets up the instance, to be called before using the instance. More...
|
|
static void | setup (int8_t i2cAddress, uint8_t columns, uint8_t rows, pin_t pled1, pin_t pled2=invalidLed, pin_t pled3=invalidPin, pin_t pled4=invalidPin, pin_t pled5=invalidPin, pin_t pled6=invalidPin, pin_t pled7=invalidPin, pin_t pled8=invalidPin) |
|
static void | lcdPrint (const char *str, bool clear=true, int x=invalidLine, int y=invalidLine) |
|
static void | lcdPrint (String &string, bool clear=true, int x=invalidLine, int y=invalidLine) |
|
static void | lcdPrint (const __FlashStringHelper *pstr, bool clear=true, int x=0, int y=invalidLine) |
|
static void | lcdSetCursor (uint8_t x=0, uint8_t y=0) |
|
static void | allOff (bool force) |
|
static milliseconds_t | getBlinkTime () |
|
static void | setBlinkTime (milliseconds_t value) |
|
static void | updateTurnOffTime () |
|
static void | checkTurnoff () |
| Turn off if it is due. More...
|
|
static void | selfTest (const char *text) |
|
static void | selfTest (const __FlashStringHelper *text) |
|
static bool | setPhysicalLed (led_t physicalLed, LedState state) |
|
static bool | setLogicLed (led_t logicLed, LedState state) |
|
static bool | setLogicLed (led_t logicLed, const char *state) |
|
static LedState | onOffBlinkParse (const char *value) |
|
static void | setupShouldTimeout (led_t logicLed, bool state) |
|
static bool | setupLogicLed (led_t loginLed, led_t physicalLed) |
|
static bool | setupLogicLeds (const led_t array[maxLeds]) |
|
static void | setupLedGroundPins () |
|
Definition at line 11 of file LedLcdManager.h.
◆ LedState
◆ allOff()
void LedLcdManager::allOff |
( |
bool |
force | ) |
|
|
static |
◆ checkTurnoff()
void LedLcdManager::checkTurnoff |
( |
| ) |
|
|
static |
Turn off if it is due.
This has to be called periodically by the user.
Definition at line 147 of file LedLcdManager.cpp.
◆ getBlinkTime()
static milliseconds_t LedLcdManager::getBlinkTime |
( |
| ) |
|
|
inlinestatic |
◆ lcdPrint() [1/3]
static void LedLcdManager::lcdPrint |
( |
const __FlashStringHelper * |
pstr, |
|
|
bool |
clear = true , |
|
|
int |
x = 0 , |
|
|
int |
y = invalidLine |
|
) |
| |
|
static |
◆ lcdPrint() [2/3]
static void LedLcdManager::lcdPrint |
( |
const char * |
str, |
|
|
bool |
clear = true , |
|
|
int |
x = invalidLine , |
|
|
int |
y = invalidLine |
|
) |
| |
|
static |
◆ lcdPrint() [3/3]
static void LedLcdManager::lcdPrint |
( |
String & |
string, |
|
|
bool |
clear = true , |
|
|
int |
x = invalidLine , |
|
|
int |
y = invalidLine |
|
) |
| |
|
inlinestatic |
◆ lcdSetCursor()
static void LedLcdManager::lcdSetCursor |
( |
uint8_t |
x = 0 , |
|
|
uint8_t |
y = 0 |
|
) |
| |
|
inlinestatic |
◆ onOffBlinkParse()
◆ selfTest() [1/2]
void LedLcdManager::selfTest |
( |
const __FlashStringHelper * |
text | ) |
|
|
static |
◆ selfTest() [2/2]
void LedLcdManager::selfTest |
( |
const char * |
text | ) |
|
|
static |
◆ setBlinkTime()
static void LedLcdManager::setBlinkTime |
( |
milliseconds_t |
value | ) |
|
|
inlinestatic |
◆ setLogicLed() [1/2]
static bool LedLcdManager::setLogicLed |
( |
led_t |
logicLed, |
|
|
const char * |
state |
|
) |
| |
|
inlinestatic |
◆ setLogicLed() [2/2]
bool LedLcdManager::setLogicLed |
( |
led_t |
logicLed, |
|
|
LedState |
state |
|
) |
| |
|
static |
◆ setPhysicalLed()
bool LedLcdManager::setPhysicalLed |
( |
led_t |
physicalLed, |
|
|
LedState |
state |
|
) |
| |
|
static |
◆ setup() [1/2]
static void LedLcdManager::setup |
( |
int8_t |
i2cAddress, |
|
|
uint8_t |
columns, |
|
|
uint8_t |
rows, |
|
|
pin_t |
pled1, |
|
|
pin_t |
pled2 = invalidLed , |
|
|
pin_t |
pled3 = invalidPin , |
|
|
pin_t |
pled4 = invalidPin , |
|
|
pin_t |
pled5 = invalidPin , |
|
|
pin_t |
pled6 = invalidPin , |
|
|
pin_t |
pled7 = invalidPin , |
|
|
pin_t |
pled8 = invalidPin |
|
) |
| |
|
static |
◆ setup() [2/2]
static void LedLcdManager::setup |
( |
int8_t |
i2cAddress, |
|
|
uint8_t |
columns = defaultLcdColumns , |
|
|
uint8_t |
rows = defaultLcdRows , |
|
|
const pin_t |
physicalLeds[maxLeds] = NULL , |
|
|
const led_t |
logicalLeds[maxLeds] = NULL , |
|
|
const bool |
shouldTimeOut[maxLeds] = NULL |
|
) |
| |
|
static |
Sets up the instance, to be called before using the instance.
◆ setupLedGroundPins()
static void LedLcdManager::setupLedGroundPins |
( |
| ) |
|
|
inlinestatic |
◆ setupLogicLed()
bool LedLcdManager::setupLogicLed |
( |
led_t |
loginLed, |
|
|
led_t |
physicalLed |
|
) |
| |
|
static |
◆ setupLogicLeds()
bool LedLcdManager::setupLogicLeds |
( |
const led_t |
array[maxLeds] | ) |
|
|
static |
◆ setupPhysicalLeds()
void LedLcdManager::setupPhysicalLeds |
( |
pin_t |
led1 = invalidPin , |
|
|
pin_t |
led2 = invalidPin , |
|
|
pin_t |
led3 = invalidPin , |
|
|
pin_t |
led4 = invalidPin , |
|
|
pin_t |
led5 = invalidPin , |
|
|
pin_t |
led6 = invalidPin , |
|
|
pin_t |
led7 = invalidPin , |
|
|
pin_t |
led8 = invalidPin |
|
) |
| |
◆ setupShouldTimeout()
void LedLcdManager::setupShouldTimeout |
( |
led_t |
logicLed, |
|
|
bool |
state |
|
) |
| |
|
static |
◆ updateTurnOffTime()
void LedLcdManager::updateTurnOffTime |
( |
| ) |
|
|
static |
◆ defaultBlinkTime
constexpr int LedLcdManager::defaultBlinkTime = 2000 |
|
staticconstexpr |
◆ defaultLcdColumns
constexpr int LedLcdManager::defaultLcdColumns = 16 |
|
staticconstexpr |
◆ defaultLcdRows
constexpr int LedLcdManager::defaultLcdRows = 2 |
|
staticconstexpr |
◆ invalidLed
constexpr led_t LedLcdManager::invalidLed = 255U |
|
staticconstexpr |
◆ invalidLine
constexpr int LedLcdManager::invalidLine = -1 |
|
staticconstexpr |
◆ maxLeds
constexpr int LedLcdManager::maxLeds = 8 |
|
staticconstexpr |
◆ selftestTimeWithLCD
constexpr int LedLcdManager::selftestTimeWithLCD = 2000 |
|
staticconstexpr |
◆ selftestTimeWithoutLCD
constexpr int LedLcdManager::selftestTimeWithoutLCD = 200 |
|
staticconstexpr |
The documentation for this class was generated from the following files: