dont need open and close
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -97,13 +97,11 @@ void displayThread(std::stop_token st, Sensors* s) {
|
||||
LCDDisplay lcd(LCD_PORT);
|
||||
|
||||
// basic lcd setup
|
||||
lcd.open();
|
||||
lcd.setContrast(LCD_CONTRAST);
|
||||
lcd.setBacklight(true);
|
||||
lcd.setCustomChar(0, {16, 6, 9, 8, 8, 9, 6, 0}); // celcius
|
||||
lcd.setCustomChar(1, {0, 0, 4, 10, 10, 17, 31, 0}); // delta
|
||||
lcd.setCustomChar(2, {0, 0, 8, 21, 21, 2, 0, 0}); // home (tilde)
|
||||
lcd.close();
|
||||
|
||||
// welcome msg
|
||||
lcd.writeBuf(2, 0, center("Waiting for sensors...", 40));
|
||||
|
||||
Reference in New Issue
Block a user