working remoteControl via espNow
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
#define DISPLAY_WRAPPER_ROWS 16
|
||||
#define DISPLAY_WRAPPER_LINES 2
|
||||
|
||||
typedef void (*LcdWrapperCallback) (const char data[][DISPLAY_WRAPPER_ROWS], uint8_t lines, uint8_t rows);
|
||||
|
||||
/**
|
||||
* @brief A class for the Menu class to print information
|
||||
*
|
||||
@@ -54,6 +56,7 @@ class LcdWrapper : public DisplayWrapper {
|
||||
* @param line
|
||||
*/
|
||||
void setCursor(uint8_t row, uint8_t line) override;
|
||||
void setCallback(LcdWrapperCallback callback) { this->callback = callback; }
|
||||
|
||||
/**
|
||||
* @brief Save the data to be printed
|
||||
@@ -65,6 +68,7 @@ class LcdWrapper : public DisplayWrapper {
|
||||
|
||||
private:
|
||||
LiquidCrystal_I2C* lcd;
|
||||
LcdWrapperCallback callback = nullptr;
|
||||
char data[DISPLAY_WRAPPER_LINES][DISPLAY_WRAPPER_ROWS];
|
||||
|
||||
uint8_t cursorRow = 0;
|
||||
|
||||
Reference in New Issue
Block a user