diff --git a/gui-tft/access_point.png b/gui-tft/access_point.png new file mode 100644 index 00000000..2071a43d Binary files /dev/null and b/gui-tft/access_point.png differ diff --git a/gui-tft/access_point_connected.png b/gui-tft/access_point_connected.png new file mode 100644 index 00000000..34dc63f2 Binary files /dev/null and b/gui-tft/access_point_connected.png differ diff --git a/gui-tft/no_wifi.png b/gui-tft/no_wifi.png new file mode 100644 index 00000000..2299fdf7 Binary files /dev/null and b/gui-tft/no_wifi.png differ diff --git a/gui-tft/wifi.png b/gui-tft/wifi.png new file mode 100644 index 00000000..598e8ae9 Binary files /dev/null and b/gui-tft/wifi.png differ diff --git a/platformio.ini b/platformio.ini index 3d89b181..a1c78e48 100644 --- a/platformio.ini +++ b/platformio.ini @@ -108,6 +108,8 @@ build_flags_openevse_tft = ${common.build_flags} ${common.src_build_flags} ${common.gfx_display_build_flags} + -D TFT_BACKLIGHT_TIMEOUT_MS=600000 + -D TFT_BACKLIGHT_CHARGING_THRESHOLD=0.1 -D NEO_PIXEL_PIN=26 -D NEO_PIXEL_LENGTH=4 -D WIFI_PIXEL_NUMBER=1 diff --git a/src/lcd.cpp b/src/lcd.cpp index 4374ab9a..bb7e93e7 100644 --- a/src/lcd.cpp +++ b/src/lcd.cpp @@ -735,6 +735,11 @@ void LcdTask::onButton(int long_press) } } +void LcdTask::setWifiMode(bool client, bool connected) +{ +//only used by the TFT display +} + LcdTask lcd; #endif // ENABLE_SCREEN_LCD_TFT diff --git a/src/lcd.h b/src/lcd.h index dc6819ef..a9246ec2 100644 --- a/src/lcd.h +++ b/src/lcd.h @@ -129,6 +129,7 @@ class LcdTask : public MicroTasks::Task void setInfoLine(LcdInfoLine info); void onButton(int event); + LcdInfoLine getNextInfoLine(LcdInfoLine info); @@ -154,6 +155,8 @@ class LcdTask : public MicroTasks::Task void display(const __FlashStringHelper *msg, int x, int y, int time, uint32_t flags); void display(String &msg, int x, int y, int time, uint32_t flags); void display(const char *msg, int x, int y, int time, uint32_t flags); + + void setWifiMode(bool client, bool connected); }; #endif // ENABLE_SCREEN_LCD_TFT diff --git a/src/lcd_static/lcd_gui.access_point_connected_png.h b/src/lcd_static/lcd_gui.access_point_connected_png.h new file mode 100644 index 00000000..c6da4d3c --- /dev/null +++ b/src/lcd_static/lcd_gui.access_point_connected_png.h @@ -0,0 +1,82 @@ +static const char CONTENT_ACCESS_POINT_CONNECTED_PNG[] PROGMEM = { + 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, + 0x00, 0x00, 0x00, 0x2e, 0x00, 0x00, 0x00, 0x22, 0x08, 0x06, 0x00, 0x00, 0x00, 0x20, 0x7b, 0xeb, + 0x4c, 0x00, 0x00, 0x00, 0x06, 0x62, 0x4b, 0x47, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf9, + 0x43, 0xbb, 0x7f, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00, + 0x00, 0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74, 0x49, 0x4d, 0x45, + 0x07, 0xe8, 0x09, 0x1b, 0x13, 0x2d, 0x29, 0xc0, 0x33, 0x5e, 0x0a, 0x00, 0x00, 0x04, 0x89, 0x49, + 0x44, 0x41, 0x54, 0x58, 0xc3, 0xed, 0x98, 0x6b, 0x6c, 0x53, 0x65, 0x18, 0xc7, 0x7f, 0xe7, 0x9c, + 0xf6, 0xf4, 0x42, 0x5b, 0x5c, 0xd7, 0x6e, 0x9d, 0xe3, 0xb2, 0xec, 0x02, 0x01, 0x01, 0xa7, 0x0c, + 0x9d, 0x80, 0x23, 0x51, 0x31, 0x04, 0x8d, 0x8a, 0x21, 0xc1, 0x60, 0xfc, 0xb6, 0x38, 0x35, 0xc4, + 0x48, 0x54, 0x8c, 0x7c, 0xc2, 0x0b, 0xea, 0x07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0xb3, 0x53, + 0xbf, 0xd8, 0x5f, 0x85, 0x4f, 0x76, 0xf1, 0x37, 0xf0, 0xa6, 0xa0, 0x7b, 0xfc, 0x79, 0xaf, 0xa9, + 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82, 0x00 }; +static const char CONTENT_ACCESS_POINT_CONNECTED_PNG_ETAG[] PROGMEM = "a3ab4943d6d6f57d5930622ec4e4d61edce4a07305ef3793ff9daf0a8741dd27"; diff --git a/src/lcd_static/lcd_gui.access_point_png.h b/src/lcd_static/lcd_gui.access_point_png.h new file mode 100644 index 00000000..4f3044c3 --- /dev/null +++ b/src/lcd_static/lcd_gui.access_point_png.h @@ -0,0 +1,86 @@ +static const char CONTENT_ACCESS_POINT_PNG[] PROGMEM = { + 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, + 0x00, 0x00, 0x00, 0x2e, 0x00, 0x00, 0x00, 0x22, 0x08, 0x06, 0x00, 0x00, 0x00, 0x20, 0x7b, 0xeb, + 0x4c, 0x00, 0x00, 0x00, 0x06, 0x62, 0x4b, 0x47, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf9, + 0x43, 0xbb, 0x7f, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00, + 0x00, 0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74, 0x49, 0x4d, 0x45, + 0x07, 0xe8, 0x09, 0x1b, 0x13, 0x2d, 0x16, 0x76, 0x55, 0x73, 0x37, 0x00, 0x00, 0x04, 0xbd, 0x49, + 0x44, 0x41, 0x54, 0x58, 0xc3, 0xed, 0x98, 0x7d, 0x4c, 0x93, 0x57, 0x14, 0xc6, 0x7f, 0x6f, 0x5b, + 0x6c,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0xf8, 0x4b, 0xe2, 0x3e, 0x98, 0xcd, 0xe5, 0xc1, 0xe5, 0x12, 0xed, + 0xdb, 0xfe, 0x74, 0x30, 0xeb, 0x6f, 0xd3, 0xf8, 0x23, 0xa8, 0xf3, 0x89, 0x4c, 0xc1, 0xf6, 0x03, + 0x8c, 0x1a, 0x16, 0xc1, 0x9a, 0xb3, 0x57, 0xfd, 0x42, 0x5c, 0x8a, 0x5f, 0xb9, 0x45, 0x76, 0x06, + 0xc8, 0x83, 0xe7, 0x33, 0x8b, 0x1d, 0xaa, 0x47, 0x35, 0x29, 0x31, 0x2e, 0xe0, 0xf4, 0x9d, 0x6a, + 0x34, 0xa0, 0x2a, 0xca, 0xcf, 0x41, 0x1f, 0xac, 0x0d, 0x18, 0xd2, 0xfa, 0x60, 0x2d, 0x45, 0xf9, + 0x39, 0x48, 0xcf, 0x1e, 0xf6, 0x3f, 0xfd, 0xb1, 0x94, 0xea, 0x7b, 0x2d, 0x34, 0xb6, 0x3b, 0x5f, + 0x58, 0x79, 0xa4, 0x1a, 0x0d, 0x14, 0xe5, 0x8b, 0x87, 0xfd, 0xbf, 0x00, 0xd6, 0xb3, 0xa3, 0xbf, + 0xa8, 0xc1, 0x25, 0x68, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82, + 0x00 }; +static const char CONTENT_ACCESS_POINT_PNG_ETAG[] PROGMEM = "e2798523f4ed38570041e8ef4b2dd0ce53878539deebda0e3c7293f5c0b974ef"; diff --git a/src/lcd_static/lcd_gui.no_wifi_png.h b/src/lcd_static/lcd_gui.no_wifi_png.h new file mode 100644 index 00000000..a24c6760 --- /dev/null +++ b/src/lcd_static/lcd_gui.no_wifi_png.h @@ -0,0 +1,84 @@ +static const char CONTENT_NO_WIFI_PNG[] PROGMEM = { + 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, + 0x00, 0x00, 0x00, 0x2e, 0x00, 0x00, 0x00, 0x22, 0x08, 0x06, 0x00, 0x00, 0x00, 0x20, 0x7b, 0xeb, + 0x4c, 0x00, 0x00, 0x00, 0x06, 0x62, 0x4b, 0x47, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf9, + 0x43, 0xbb, 0x7f, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00, + 0x00, 0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74, 0x49, 0x4d, 0x45, + 0x07, 0xe8, 0x09, 0x1b, 0x10, 0x07, 0x27, 0x4a, 0xa6, 0x01, 0x7c, 0x00, 0x00, 0x04, 0xa2, 0x49, + 0x44, 0x41, 0x54, 0x58, 0xc3, 0xd5, 0x98, 0x6b, 0x50, 0x94, 0x65, 0x14, 0xc7, 0x7f, 0xbb, 0x0b, + 0xbb, 0xbc, 0x20, 0xbb, 0xc1, 0x22, 0x88, 0x2c, 0x37, 0xb1, 0x56, 0x0c, 0x42, 0x45, 0x04, 0x13, + 0x5d, 0x11, 0xc8, 0xd0, 0x91, 0xcc, 0x5d, 0x1b, 0x2f, 0xcd, 0x14, 0x0a, 0x69, 0x8d, 0xe9, 0x74, + 0x9f, 0xb4, 0x0f, 0x94, 0xa5, 0x8e, 0x35, 0x39, 0x3a, 0x4c, 0x33, 0x95, 0x53, 0xa9, 0x8d, 0x4d, + 0x85, 0x82, 0xfa, 0xc1, 0x14, 0xa1, 0x91, 0x06, 0x90, 0x4c, 0x1b, 0x41, 0x12, 0xd1, 0x91, 0xb8, + 0x2b, 0xeb, 0xe2, 0xee, 0xa2, 0x5c, 0xe4, 0xb2, 0x7d, 0x40, 0x76, 0x86, 0xcb, 0x8a, 0x2c, 0x1b, + 0xc8, 0xff, 0xdb, 0x73, 0x9e, 0xe7, 0x9c, 0xf7, 0x37, 0xe7, 0x3d, 0xcf, 0x55, 0x64, 0xb1, 0x58, + 0x2c, 0xd5, 0x06, 0x13, 0xdb, 0x8e, 0xe4, 0x52, 0x5a, 0xdb, 0x48, 0xb5, 0xc1, 0xc4, 0xe3, 0xa8, + 0x00, 0xa5, 0x82, 0x70, 0x95, 0x37, 0x9f, 0x69, 0xe3, 0x09, 0x50, 0x2a, 0x10, 0x55, 0xdd, 0x36, + 0x5a, 0x34, 0x3b, 0xbf, 0xc7, 0xd4, 0xda, 0xce, 0x78, 0x90, 0x42, 0x90, 0x71, 0xf6, 0xc3, 0x14, + 0x24, 0xfa, 0x29, 0x51, 0xe9, 0x97, 0xeb, 0x1a, 0x19, 0x2f, 0x6a, 0xef, 0xec, 0xa2, 0xda, 0x60, + 0x42, 0x5c, 0x70, 0xad, 0x9a, 0xf1, 0xa6, 0xcb, 0x75, 0x8d, 0x88, 0xc7, 0xaa, 0x44, 0x92, 0x55, + 0x4a, 0xfc, 0xa4, 0x4e, 0x76, 0xf9, 0x56, 0x1b, 0x4c, 0x38, 0x8d, 0x05, 0xf4, 0x0f, 0x3a, 0x0d, + 0xc9, 0x71, 0x31, 0xd4, 0xde, 0xd4, 0xb3, 0x76, 0xcf, 0x61, 0x4a, 0xef, 0xb6, 0x0d, 0x3b, 0x86, + 0x78, 0xd4, 0xa1, 0x57, 0x2e, 0x24, 0x39, 0x2e, 0x06, 0x00, 0xd5, 0xa4, 0x89, 0xec, 0x5c, 0x95, + 0x68, 0x57, 0x1c, 0x87, 0x64, 0x7c, 0x96, 0x5c, 0xe0, 0xb9, 0xd0, 0x40, 0x42, 0x26, 0x4f, 0xc4, + 0xc7, 0x53, 0x81, 0x20, 0x93, 0xe2, 0x24, 0xe9, 0xc9, 0x49, 0x67, 0x57, 0x37, 0xed, 0xf7, 0x3b, + 0x68, 0x30, 0x18, 0xf1, 0x74, 0x77, 0x23, 0x2e, 0x3a, 0xa2, 0x8f, 0x6f, 0x79, 0x55, 0xfd, 0xe8, + 0x82,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00, 0x00, 0x49, 0x45, 0x4e, + 0x44, 0xae, 0x42, 0x60, 0x82, 0x00 }; +static const char CONTENT_NO_WIFI_PNG_ETAG[] PROGMEM = "ec856c8b3b5f2dd7efc1781437a239a2137f0e9061d280f82b74c8449d265603"; diff --git a/src/lcd_static/lcd_gui.wifi_png.h b/src/lcd_static/lcd_gui.wifi_png.h new file mode 100644 index 00000000..3f56bf2c --- /dev/null +++ b/src/lcd_static/lcd_gui.wifi_png.h @@ -0,0 +1,120 @@ +static const char CONTENT_WIFI_PNG[] PROGMEM = { + 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, + 0x00, 0x00, 0x00, 0x2e, 0x00, 0x00, 0x00, 0x22, 0x08, 0x06, 0x00, 0x00, 0x00, 0x20, 0x7b, 0xeb, + 0x4c, 0x00, 0x00, 0x00, 0x06, 0x62, 0x4b, 0x47, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf9, + 0x43, 0xbb, 0x7f, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00, + 0x00, 0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74, 0x49, 0x4d, 0x45, + 0x07, 0xe8, 0x09, 0x1b, 0x13, 0x26, 0x2c, 0x53, 0xad, 0x73, 0x4e, 0x00, 0x00, 0x06, 0xe2, 0x49, + 0x44, 0x41, 0x54, 0x58, 0xc3, 0xd5, 0x98, 0x5b, 0x6c, 0x14, 0xe7, 0x19, 0x86, 0x9f, 0x7f, 0x66, + 0x76, 0xd7, 0xeb, 0x3d, 0xdb, 0x66, 0xf1, 0xfa, 0xb0, 0xe0, 0xb5, 0xb1, 0x8d, 0x89, 0xb1, 0xa1, + 0x24, 0x01, 0x02, 0x39, 0x08, 0x88, 0x08, 0xa1, 0x49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, + 0xb1, 0xda, 0x57, 0x47, 0x9d, 0xc7, 0x89, 0xd3, 0x66, 0xc5, 0xa4, 0x69, 0x48, 0x20, 0x9d, 0xc9, + 0x92, 0x9c, 0xc9, 0x30, 0x31, 0x35, 0xcd, 0xe0, 0xb5, 0x09, 0x06, 0x6f, 0x4c, 0x31, 0x39, 0x9b, + 0x27, 0x94, 0xc9, 0x13, 0xd3, 0x0d, 0x44, 0x85, 0xef, 0x17, 0x9e, 0xef, 0xff, 0x46, 0xde, 0xeb, + 0xcd, 0x12, 0x10, 0x40, 0x8f, 0xa3, 0x8a, 0x2e, 0xaf, 0x8b, 0xc7, 0xd7, 0x05, 0xd8, 0xd0, 0xd9, + 0x42, 0x53, 0x7d, 0x1d, 0x9a, 0xa6, 0x22, 0x10, 0x08, 0x71, 0xf7, 0x75, 0x48, 0x89, 0x21, 0x25, + 0xc9, 0x99, 0x59, 0x86, 0x46, 0x6e, 0xd0, 0x17, 0x1c, 0xe1, 0xfc, 0xe8, 0x24, 0xc1, 0x78, 0x9a, + 0x9b, 0x25, 0x63, 0xd1, 0x11, 0xbc, 0x67, 0xe2, 0x39, 0x29, 0x69, 0xaf, 0x32, 0xb1, 0xbd, 0x79, + 0x05, 0x4f, 0x6f, 0x6c, 0xe7, 0xd1, 0xf5, 0xed, 0x78, 0x9c, 0x0e, 0x14, 0xa5, 0xb2, 0x98, 0xe5, + 0x0b, 0x05, 0x86, 0xaf, 0x8e, 0xf1, 0xee, 0x7f, 0x86, 0x38, 0x39, 0x74, 0x83, 0xfe, 0xc4, 0xec, + 0x7c, 0x60, 0xee, 0x05, 0xda, 0xbd, 0x44, 0xb9, 0x28, 0xe1, 0x71, 0x8f, 0x9d, 0x17, 0x37, 0xb5, + 0xb3, 0xf3, 0x91, 0x87, 0x68, 0xf2, 0xad, 0x40, 0xb9, 0x2d, 0xb4, 0x62, 0xee, 0xd8, 0x30, 0x0c, + 0x8a, 0x25, 0x1d, 0xa4, 0x04, 0x21, 0x50, 0x15, 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0, 0xf7, 0x81, 0x2b, 0x84, 0x72, 0xc5, 0x25, 0x25, 0x5e, + 0xd1, 0x76, 0xf8, 0x20, 0x40, 0x71, 0x5a, 0x2d, 0xcb, 0x8e, 0x74, 0x73, 0x8d, 0x13, 0x65, 0xdb, + 0x1a, 0xff, 0xb2, 0x23, 0xde, 0xdd, 0xb4, 0x12, 0xe5, 0xe0, 0xbe, 0x1d, 0x2c, 0xa7, 0xa8, 0x3b, + 0xad, 0x16, 0x0e, 0xee, 0xdb, 0x81, 0xb8, 0xf5, 0x63, 0xff, 0xa7, 0x87, 0x4f, 0x32, 0x38, 0x36, + 0xc9, 0x8d, 0xe9, 0xd4, 0x03, 0x2b, 0x8f, 0xee, 0xa6, 0x95, 0x1c, 0xdc, 0x57, 0xfe, 0xb1, 0xff, + 0x5f, 0x69, 0xb0, 0xe0, 0x80, 0x00, 0x36, 0xb9, 0x82, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, + 0x44, 0xae, 0x42, 0x60, 0x82, 0x00 }; +static const char CONTENT_WIFI_PNG_ETAG[] PROGMEM = "06db72259e77f25b74b91740648bd39e6982ef5341b3eaa2cf1033b4d4cda2ea"; diff --git a/src/lcd_static/lcd_gui_static_files.h b/src/lcd_static/lcd_gui_static_files.h index ab0e7b14..d3d90848 100644 --- a/src/lcd_static/lcd_gui_static_files.h +++ b/src/lcd_static/lcd_gui_static_files.h @@ -1,3 +1,6 @@ +#include "lcd_gui.access_point_png.h" +#include "lcd_gui.access_point_connected_png.h" +#include "lcd_gui.blank_png.h" #include "lcd_gui.button_bar_png.h" #include "lcd_gui.car_connected_png.h" #include "lcd_gui.car_disconnected_png.h" @@ -6,10 +9,15 @@ #include "lcd_gui.disabled_png.h" #include "lcd_gui.error_png.h" #include "lcd_gui.logo_png.h" +#include "lcd_gui.no_wifi_png.h" #include "lcd_gui.not_connected_png.h" #include "lcd_gui.sleeping_png.h" #include "lcd_gui.start_png.h" +#include "lcd_gui.wifi_png.h" StaticFile lcd_gui_static_files[] = { + { "/access_point.png", CONTENT_ACCESS_POINT_PNG, sizeof(CONTENT_ACCESS_POINT_PNG) - 1, _CONTENT_TYPE_PNG, CONTENT_ACCESS_POINT_PNG_ETAG, false }, + { "/access_point_connected.png", CONTENT_ACCESS_POINT_CONNECTED_PNG, sizeof(CONTENT_ACCESS_POINT_CONNECTED_PNG) - 1, _CONTENT_TYPE_PNG, CONTENT_ACCESS_POINT_CONNECTED_PNG_ETAG, false }, + { "/blank.png", CONTENT_BLANK_PNG, sizeof(CONTENT_BLANK_PNG) - 1, _CONTENT_TYPE_PNG, CONTENT_BLANK_PNG_ETAG, false }, { "/button_bar.png", CONTENT_BUTTON_BAR_PNG, sizeof(CONTENT_BUTTON_BAR_PNG) - 1, _CONTENT_TYPE_PNG, CONTENT_BUTTON_BAR_PNG_ETAG, false }, { "/car_connected.png", CONTENT_CAR_CONNECTED_PNG, sizeof(CONTENT_CAR_CONNECTED_PNG) - 1, _CONTENT_TYPE_PNG, CONTENT_CAR_CONNECTED_PNG_ETAG, false }, { "/car_disconnected.png", CONTENT_CAR_DISCONNECTED_PNG, sizeof(CONTENT_CAR_DISCONNECTED_PNG) - 1, _CONTENT_TYPE_PNG, CONTENT_CAR_DISCONNECTED_PNG_ETAG, false }, @@ -18,7 +26,9 @@ StaticFile lcd_gui_static_files[] = { { "/disabled.png", CONTENT_DISABLED_PNG, sizeof(CONTENT_DISABLED_PNG) - 1, _CONTENT_TYPE_PNG, CONTENT_DISABLED_PNG_ETAG, false }, { "/error.png", CONTENT_ERROR_PNG, sizeof(CONTENT_ERROR_PNG) - 1, _CONTENT_TYPE_PNG, CONTENT_ERROR_PNG_ETAG, false }, { "/logo.png", CONTENT_LOGO_PNG, sizeof(CONTENT_LOGO_PNG) - 1, _CONTENT_TYPE_PNG, CONTENT_LOGO_PNG_ETAG, false }, + { "/no_wifi.png", CONTENT_NO_WIFI_PNG, sizeof(CONTENT_NO_WIFI_PNG) - 1, _CONTENT_TYPE_PNG, CONTENT_NO_WIFI_PNG_ETAG, false }, { "/not_connected.png", CONTENT_NOT_CONNECTED_PNG, sizeof(CONTENT_NOT_CONNECTED_PNG) - 1, _CONTENT_TYPE_PNG, CONTENT_NOT_CONNECTED_PNG_ETAG, false }, { "/sleeping.png", CONTENT_SLEEPING_PNG, sizeof(CONTENT_SLEEPING_PNG) - 1, _CONTENT_TYPE_PNG, CONTENT_SLEEPING_PNG_ETAG, false }, { "/start.png", CONTENT_START_PNG, sizeof(CONTENT_START_PNG) - 1, _CONTENT_TYPE_PNG, CONTENT_START_PNG_ETAG, false }, + { "/wifi.png", CONTENT_WIFI_PNG, sizeof(CONTENT_WIFI_PNG) - 1, _CONTENT_TYPE_PNG, CONTENT_WIFI_PNG_ETAG, false }, }; diff --git a/src/lcd_tft.cpp b/src/lcd_tft.cpp index 7785c53c..b722b52d 100644 --- a/src/lcd_tft.cpp +++ b/src/lcd_tft.cpp @@ -8,6 +8,7 @@ #define LCD_BACKLIGHT_PIN TFT_BL #endif +#include #include "emonesp.h" #include "lcd.h" #include "RapiSender.h" @@ -18,11 +19,15 @@ #include "embedded_files.h" //#include "fonts/DejaVu_Sans_72.h" +//#define TFT_BACKLIGHT_TIMEOUT_MS 600000 //timeout backlight after 10 minutes +//#define TFT_BACKLIGHT_CHARGING_THRESHOLD 0.1 //stay awake if car is drawing more than this many amps + #define TFT_OPENEVSE_BACK 0x2413 #define TFT_OPENEVSE_GREEN 0x3E92 #define TFT_OPENEVSE_TEXT 0x1BD1 #define TFT_OPENEVSE_INFO_BACK 0x23d1 + // The TFT is natively portrait but we are rendering as landscape #define TFT_SCREEN_WIDTH TFT_HEIGHT #define TFT_SCREEN_HEIGHT TFT_WIDTH @@ -157,6 +162,17 @@ void LcdTask::display(const char *msg, int x, int y, int time, uint32_t flags) display(new Message(msg, x, y, time, flags), flags); } +void LcdTask::setWifiMode(bool client, bool connected) +{ +#ifdef TFT_BACKLIGHT_TIMEOUT_MS + if (client != wifi_client || connected != wifi_connected) { + wakeBacklight(); + } +#endif //TFT_BACKLIGHT_TIMEOUT_MS + wifi_client = client; + wifi_connected = connected; +} + void LcdTask::begin(EvseManager &evse, Scheduler &scheduler, ManualOverride &manual) { _evse = &evse; @@ -195,8 +211,11 @@ unsigned long LcdTask::loop(MicroTasks::WakeReason reason) #endif pinMode(LCD_BACKLIGHT_PIN, OUTPUT); +#ifdef TFT_BACKLIGHT_TIMEOUT_MS + wakeBacklight(); +#else digitalWrite(LCD_BACKLIGHT_PIN, HIGH); - +#endif //TFT_BACKLIGHT_TIMEOUT_MS _initialise = false; } @@ -275,53 +294,82 @@ unsigned long LcdTask::loop(MicroTasks::WakeReason reason) render_image("/button_bar.png", BUTTON_BAR_X, BUTTON_BAR_Y); } - String status_icon = "/car_disconnected.png"; - if(_evse->isVehicleConnected()) + String status_icon = "/disabled.png"; + String car_icon = "/car_disconnected.png"; + String wifi_icon = "/no_wifi.png"; + + if(_evse->isVehicleConnected()) { + car_icon = "/car_connected.png"; + } + + switch (_evse->getEvseState()) { - switch (_evse->getEvseState()) - { - case OPENEVSE_STATE_STARTING: - status_icon = "/start.png"; - break; - case OPENEVSE_STATE_NOT_CONNECTED: - status_icon = "/not_connected.png"; - break; - case OPENEVSE_STATE_CONNECTED: - status_icon = "/connected.png"; - break; - case OPENEVSE_STATE_CHARGING: - status_icon = "/charging.png"; - break; - case OPENEVSE_STATE_VENT_REQUIRED: - case OPENEVSE_STATE_DIODE_CHECK_FAILED: - case OPENEVSE_STATE_GFI_FAULT: - case OPENEVSE_STATE_NO_EARTH_GROUND: - case OPENEVSE_STATE_STUCK_RELAY: - case OPENEVSE_STATE_GFI_SELF_TEST_FAILED: - case OPENEVSE_STATE_OVER_TEMPERATURE: - case OPENEVSE_STATE_OVER_CURRENT: - status_icon = "/error.png"; - break; - case OPENEVSE_STATE_SLEEPING: - status_icon = "/sleeping.png"; - break; - case OPENEVSE_STATE_DISABLED: - status_icon = "/disabled.png"; - break; - default: - break; - } + case OPENEVSE_STATE_STARTING: + status_icon = "/start.png"; + break; + case OPENEVSE_STATE_NOT_CONNECTED: + status_icon = "/not_connected.png"; + break; + case OPENEVSE_STATE_CONNECTED: + status_icon = "/connected.png"; + break; + case OPENEVSE_STATE_CHARGING: + status_icon = "/charging.png"; + break; + case OPENEVSE_STATE_VENT_REQUIRED: + case OPENEVSE_STATE_DIODE_CHECK_FAILED: + case OPENEVSE_STATE_GFI_FAULT: + case OPENEVSE_STATE_NO_EARTH_GROUND: + case OPENEVSE_STATE_STUCK_RELAY: + case OPENEVSE_STATE_GFI_SELF_TEST_FAILED: + case OPENEVSE_STATE_OVER_TEMPERATURE: + case OPENEVSE_STATE_OVER_CURRENT: + status_icon = "/error.png"; + break; + case OPENEVSE_STATE_SLEEPING: + status_icon = "/sleeping.png"; + break; + case OPENEVSE_STATE_DISABLED: + status_icon = "/disabled.png"; + break; + default: + break; } - render_image(status_icon.c_str(), 16, 52); + char buffer[32] = ""; + char buffer2[10]; - char buffer[32]; + if (wifi_client) { + if (wifi_connected) { + wifi_icon = "/wifi.png"; + snprintf(buffer, sizeof(buffer), "%ddB", WiFi.RSSI()); + } + } else { + if (wifi_connected) { + wifi_icon = "/access_point_connected.png"; + snprintf(buffer, sizeof(buffer), "%d", WiFi.softAPgetStationNum()); + } else { + wifi_icon = "/access_point.png"; + } + } + render_right_text_box(buffer, 350, 30, 50, &FreeSans9pt7b, TFT_WHITE, TFT_OPENEVSE_BACK, false, 1); + + render_image(status_icon.c_str(), 16, 52); + render_image(car_icon.c_str(), 16, 92); + render_image(wifi_icon.c_str(), 16, 132); snprintf(buffer, sizeof(buffer), "%d", _evse->getChargeCurrent()); - render_right_text_box(buffer, 66, 220, 154, &FreeSans24pt7b, TFT_BLACK, TFT_WHITE, !_full_update, 3); + render_right_text_box(buffer, 66, 175, 154, &FreeSans24pt7b, TFT_BLACK, TFT_WHITE, !_full_update, 2); if(_full_update) { - render_left_text_box("A", 224, 200, 34, &FreeSans24pt7b, TFT_BLACK, TFT_WHITE, false, 1); + render_left_text_box("A", 224, 165, 34, &FreeSans24pt7b, TFT_BLACK, TFT_WHITE, false, 1); + } + if (_evse->isTemperatureValid(EVSE_MONITOR_TEMP_MONITOR)) { + snprintf(buffer, sizeof(buffer), "%.1fC", _evse->getTemperature(EVSE_MONITOR_TEMP_MONITOR)); + render_right_text_box(buffer, 415, 30, 50, &FreeSans9pt7b, TFT_WHITE, TFT_OPENEVSE_BACK, false, 1); } + snprintf(buffer, sizeof(buffer), "%.1f V %.2f A", _evse->getVoltage(), _evse->getAmps()); + get_scaled_number_value(_evse->getPower(), 2, "W", buffer2, sizeof(buffer2)); + render_data_box(buffer2, buffer, 66, 175, INFO_BOX_WIDTH, INFO_BOX_HEIGHT, _full_update); String line = getLine(0); if(line.length() == 0) { @@ -330,15 +378,6 @@ unsigned long LcdTask::loop(MicroTasks::WakeReason reason) render_centered_text_box(line.c_str(), INFO_BOX_X, 74, INFO_BOX_WIDTH, &FreeSans9pt7b, TFT_OPENEVSE_TEXT, TFT_WHITE, !_full_update); line = getLine(1); - if(line.length() == 0) - { - timeval local_time; - gettimeofday(&local_time, NULL); - struct tm timeinfo; - localtime_r(&local_time.tv_sec, &timeinfo); - strftime(buffer, sizeof(buffer), "%d/%m/%Y, %l:%M %p", &timeinfo); - line = buffer; - } render_centered_text_box(line.c_str(), INFO_BOX_X, 96, INFO_BOX_WIDTH, &FreeSans9pt7b, TFT_OPENEVSE_TEXT, TFT_WHITE, !_full_update); uint32_t elapsed = _evse->getSessionElapsed(); @@ -351,7 +390,16 @@ unsigned long LcdTask::loop(MicroTasks::WakeReason reason) get_scaled_number_value(_evse->getSessionEnergy(), 0, "Wh", buffer, sizeof(buffer)); render_info_box("DELIVERED", buffer, INFO_BOX_X, 175, INFO_BOX_WIDTH, INFO_BOX_HEIGHT, _full_update); - nextUpdate = 1000; + timeval local_time; + gettimeofday(&local_time, NULL); + struct tm timeinfo; + localtime_r(&local_time.tv_sec, &timeinfo); + strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M:%S", &timeinfo); + render_left_text_box(buffer, 12, 30, 175, &FreeSans9pt7b, TFT_WHITE, TFT_OPENEVSE_BACK, false, 1); + + //sleep until next whole second so clock doesn't skip + gettimeofday(&local_time, NULL); + nextUpdate = 1000 - local_time.tv_usec/1000; _full_update = false; } break; @@ -364,6 +412,57 @@ unsigned long LcdTask::loop(MicroTasks::WakeReason reason) _tft.endWrite(); #endif +#ifdef TFT_BACKLIGHT_TIMEOUT_MS + uint8_t evse_state = _evse->getEvseState(); + bool vehicle_state = _evse->isVehicleConnected(); + if (evse_state != _previous_evse_state || vehicle_state != _previous_vehicle_state) { //wake backlight on state change + wakeBacklight(); + _previous_evse_state = evse_state; + _previous_vehicle_state = vehicle_state; + } else { //otherwise timeout backlight in appropriate states + bool timeout = true; + if (_evse->isVehicleConnected()) { + switch (_evse->getEvseState()) { + case OPENEVSE_STATE_STARTING: + case OPENEVSE_STATE_VENT_REQUIRED: + case OPENEVSE_STATE_DIODE_CHECK_FAILED: + case OPENEVSE_STATE_GFI_FAULT: + case OPENEVSE_STATE_NO_EARTH_GROUND: + case OPENEVSE_STATE_STUCK_RELAY: + case OPENEVSE_STATE_GFI_SELF_TEST_FAILED: + case OPENEVSE_STATE_OVER_TEMPERATURE: + case OPENEVSE_STATE_OVER_CURRENT: + timeout = false; + break; + case OPENEVSE_STATE_NOT_CONNECTED: + case OPENEVSE_STATE_CONNECTED: + case OPENEVSE_STATE_SLEEPING: + case OPENEVSE_STATE_DISABLED: + timeout = true; + break; + case OPENEVSE_STATE_CHARGING: +#ifdef TFT_BACKLIGHT_CHARGING_THRESHOLD + if (_evse->getAmps() >= TFT_BACKLIGHT_CHARGING_THRESHOLD) { + //Reset the timer here, so we don't timeout as soon as charging stops. + //This will also wake the backlight if the vehicle starts drawing current again. + wakeBacklight(); + timeout = false; + } +#else + timeout = false; +#endif //TFT_BACKLIGHT_CHARGING_THRESHOLD + break; + default: + timeout = true; + break; + } + } + if (timeout) { + timeoutBacklight(); + } + } +#endif //TFT_BACKLIGHT_TIMEOUT_MS + DBUGVAR(nextUpdate); return nextUpdate; } @@ -389,6 +488,16 @@ void LcdTask::get_scaled_number_value(double value, int precision, const char *u snprintf(buffer, size, "%.*f %s%s", precision, value, mod[index], unit); } +void LcdTask::render_data_box(const char *title, const char *text, int16_t x, int16_t y, int16_t width, int16_t height, bool full_update) +{ + if(full_update) + { + _screen.fillSmoothRoundRect(x, y, width, height, 6, TFT_OPENEVSE_INFO_BACK, TFT_WHITE); + } + render_centered_text_box(title, x, y+24, width, &FreeSans9pt7b, TFT_WHITE, TFT_OPENEVSE_INFO_BACK, !full_update); + render_centered_text_box(text, x, y+(height-4), width, &FreeSans9pt7b, TFT_WHITE, TFT_OPENEVSE_INFO_BACK, !full_update); +} + void LcdTask::render_info_box(const char *title, const char *text, int16_t x, int16_t y, int16_t width, int16_t height, bool full_update) { if(full_update) @@ -497,6 +606,9 @@ unsigned long LcdTask::displayNextMessage() } // Display the message +#ifdef TFT_BACKLIGHT_TIMEOUT_MS + wakeBacklight(); +#endif //TFT_BACKLIGHT_TIMEOUT_MS showText(msg->getX(), msg->getY(), msg->getMsg(), msg->getClear()); _nextMessageTime = millis() + msg->getTime(); @@ -553,6 +665,18 @@ String LcdTask::getLine(int line) return String(start, len); } +#ifdef TFT_BACKLIGHT_TIMEOUT_MS +void LcdTask::wakeBacklight() { + digitalWrite(LCD_BACKLIGHT_PIN, HIGH); + _last_backlight_wakeup = millis(); +} + +void LcdTask::timeoutBacklight() { + if (millis() - _last_backlight_wakeup >= TFT_BACKLIGHT_TIMEOUT_MS) { + digitalWrite(LCD_BACKLIGHT_PIN, LOW); + } +} +#endif //TFT_BACKLIGHT_TIMEOUT_MS LcdTask lcd; diff --git a/src/lcd_tft.h b/src/lcd_tft.h index c246581a..bad21416 100644 --- a/src/lcd_tft.h +++ b/src/lcd_tft.h @@ -95,6 +95,13 @@ class LcdTask : public MicroTasks::Task EvseManager *_evse; Scheduler *_scheduler; ManualOverride *_manual; +#ifdef TFT_BACKLIGHT_TIMEOUT_MS + long _last_backlight_wakeup = 0; + uint8_t _previous_evse_state; + bool _previous_vehicle_state; +#endif //TFT_BACKLIGHT_TIMEOUT_MS + bool wifi_client; + bool wifi_connected; char _msg[LCD_MAX_LINES][LCD_MAX_LEN + 1]; bool _msg_cleared; @@ -108,6 +115,11 @@ class LcdTask : public MicroTasks::Task String getLine(int line); +#ifdef TFT_BACKLIGHT_TIMEOUT_MS + void wakeBacklight(); + void timeoutBacklight(); +#endif //TFT_BACKLIGHT_TIMEOUT_MS + protected: void setup(); unsigned long loop(MicroTasks::WakeReason reason); @@ -117,6 +129,7 @@ class LcdTask : public MicroTasks::Task void render_centered_text_box(const char *text, int16_t x, int16_t y, int16_t width, const GFXfont *font, uint16_t text_colour, uint16_t back_colour, bool fill_back, uint8_t size = 1); void render_right_text_box(const char *text, int16_t x, int16_t y, int16_t width, const GFXfont *font, uint16_t text_colour, uint16_t back_colour, bool fill_back, uint8_t size = 1); void render_left_text_box(const char *text, int16_t x, int16_t y, int16_t width, const GFXfont *font, uint16_t text_colour, uint16_t back_colour, bool fill_back, uint8_t size = 1); + void render_data_box(const char *title, const char *text, int16_t x, int16_t y, int16_t width, int16_t height, bool full_update = true); void render_info_box(const char *title, const char *text, int16_t x, int16_t y, int16_t width, int16_t height, bool full_update = true); void load_font(const char *filename); @@ -130,6 +143,7 @@ class LcdTask : public MicroTasks::Task void display(const __FlashStringHelper *msg, int x, int y, int time, uint32_t flags); void display(String &msg, int x, int y, int time, uint32_t flags); void display(const char *msg, int x, int y, int time, uint32_t flags); + void setWifiMode(bool client, bool connected); void fill_screen(uint16_t color) { _screen.fillScreen(color); diff --git a/src/net_manager.cpp b/src/net_manager.cpp index 311be78b..68a41284 100644 --- a/src/net_manager.cpp +++ b/src/net_manager.cpp @@ -135,7 +135,7 @@ void NetManagerTask::wifiStartAccessPoint() _lcd.display(String(F("Pass: ")) + _softAP_password, 0, 1, 15 * 1000, LCD_CLEAR_LINE); _led.setWifiMode(false, false); - + _lcd.setWifiMode(false, false); _apClients = 0; _state = NetState::AccessPointConnecting; } @@ -155,6 +155,7 @@ void NetManagerTask::wifiStartClient() wifiClientConnect(); _led.setWifiMode(true, false); + _lcd.setWifiMode(true, false); _state = NetState::StationClientConnecting; } @@ -206,6 +207,7 @@ void NetManagerTask::haveNetworkConnection(IPAddress myAddress) Mongoose.ipConfigChanged(); _led.setWifiMode(true, true); + _lcd.setWifiMode(true, true); _time.setHost(sntp_hostname.c_str()); _apAutoApStopTime = millis() + ACCESS_POINT_AUTO_STOP_TIMEOUT; @@ -282,7 +284,7 @@ void NetManagerTask::wifiOnAPModeStationConnected(const WiFiEventSoftAPModeStati _lcd.display(_ipaddress, 0, 1, (0 == _apClients ? 15 : 5) * 1000, LCD_CLEAR_LINE); _led.setWifiMode(false, true); - + _lcd.setWifiMode(false, true); _apClients++; } @@ -292,6 +294,7 @@ void NetManagerTask::wifiOnAPModeStationDisconnected(const WiFiEventSoftAPModeSt if(0 == _apClients && NetState::AccessPointConnecting == _state) { _led.setWifiMode(false, false); + _lcd.setWifiMode(false, false); } }