open and close funcs

This commit is contained in:
Drath
2025-10-23 13:02:45 +02:00
parent 54bbc8c117
commit 69b0291205
2 changed files with 28 additions and 14 deletions

View File

@@ -18,14 +18,18 @@
class LCDDisplay {
private:
uint8_t _lcd;
uint8_t _lcd = -1;
std::string _dev;
char writebuf[LCD_LINES * LCD_COLS + 8]; // 4x40 chars + 2x4 setcursor commands
static constexpr bool dualDisp = (LCD_LINES * LCD_COLS > 80); // is it dual display device or not, evauluated from the size at compile time
void writeLines(std::array<std::string, 4> lines); // do not use
public:
LCDDisplay(std::string dev, uint32_t baud = 0010002); // from termios-baud.h, B115200
~LCDDisplay();
void _open();
void _close();
void clear();
void setContrast(uint8_t contrast);