Skip to content

Commit e4255c9

Browse files
Merge branch 'master' into mqtt_microtask
2 parents ac13f79 + bb2de63 commit e4255c9

14 files changed

+960
-542
lines changed

platformio.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ build_partitions = min_spiffs.csv
124124
build_partitions_debug = min_spiffs_debug.csv
125125
build_partitions_16mb = openevse_16mb.csv
126126

127-
neopixel_lib = adafruit/Adafruit NeoPixel@1.14.0
127+
neopixel_lib = adafruit/Adafruit NeoPixel@1.15.1
128128
ws2812fx_lib = kitesurfer1404/[email protected]
129129

130130
gfx_display_libs =
131-
131+
# lvgl/lvgl@^8.3.9
132132
bodmer/TFT_eSPI@^2.5.31
133133
bitbank2/PNGdec@^1.0.1
134134
SPI
@@ -173,7 +173,7 @@ gfx_display_build_flags =
173173
#platform = https://github.com/platformio/platform-espressif32.git#feature/stage
174174
#platform = https://github.com/platformio/platform-espressif32.git#develop
175175
#platform = [email protected]
176-
platform = espressif32@6.10.0
176+
platform = espressif32@6.11.0
177177
#framework = arduino, espidf
178178
framework = arduino
179179
lib_deps = ${common.lib_deps}

src/lcd_common.h

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#ifndef __LCD_COMMON_H
2+
#define __LCD_COMMON_H
3+
4+
#include <TFT_eSPI.h>
5+
//#include <Fonts/FreeSans9pt7b.h>
6+
//#include <Fonts/FreeSans24pt7b.h>
7+
8+
// LCD colour definitions
9+
#define TFT_OPENEVSE_BACK 0x2413
10+
#define TFT_OPENEVSE_GREEN 0x3E92
11+
#define TFT_OPENEVSE_TEXT 0x1BD1
12+
#define TFT_OPENEVSE_INFO_BACK 0x23d1
13+
14+
// Message definitions
15+
#define LCD_MAX_LEN 16
16+
#define LCD_MAX_LINES 2
17+
18+
#define LCD_CLEAR_LINE (1 << 0)
19+
#define LCD_DISPLAY_NOW (1 << 1)
20+
21+
#ifndef LCD_BACKLIGHT_PIN
22+
#define LCD_BACKLIGHT_PIN TFT_BL
23+
#endif
24+
25+
// Helper macro
26+
#ifndef ARRAY_ITEMS
27+
#define ARRAY_ITEMS(a) (sizeof(a) / sizeof(a[0]))
28+
#endif
29+
30+
// Message line buffer - shared across screens
31+
extern char _msg[LCD_MAX_LINES][LCD_MAX_LEN + 1];
32+
33+
#endif // __LCD_COMMON_H

0 commit comments

Comments
 (0)