open and close funcs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user