dont need open and close

This commit is contained in:
Drath
2025-11-02 14:44:47 +01:00
parent fa0eeabf72
commit 331d8f5996

View File

@@ -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));