This commit is contained in:
2026-02-15 16:57:55 +00:00
parent eb13bb7bf4
commit 435dbe67d9
8 changed files with 27 additions and 403 deletions
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
View File
Binary file not shown.
-185
View File
File diff suppressed because one or more lines are too long
+6 -189
View File
File diff suppressed because one or more lines are too long
+3 -26
View File
@@ -20,32 +20,9 @@ lib_deps =
bblanchon/ArduinoJson bblanchon/ArduinoJson
paulstoffregen/XPT2046_Touchscreen paulstoffregen/XPT2046_Touchscreen
WiFi WiFi
me-no-dev/AsyncTCP@1.1.1 ; me-no-dev/AsyncTCP@1.1.1
SD SD
esp32async/ESPAsyncWebServer@3.10.0
build_flags = build_flags =
-DYELLOW_DISPLAY
-DUSER_SETUP_LOADED
-DILI9341_2_DRIVER
-DTFT_WIDTH=240
-DTFT_HEIGHT=320
-DTFT_MISO=12
-DTFT_MOSI=13
-DTFT_SCLK=14
-DTFT_CS=15
-DTFT_DC=2
-DTFT_RST=-1
-DTFT_BL=21
-DTFT_BACKLIGHT_ON=HIGH
-DTFT_BACKLIGHT_OFF=LOW
-DLOAD_GLCD
-DSPI_FREQUENCY=55000000
-DSPI_READ_FREQUENCY=20000000
-DSPI_TOUCH_FREQUENCY=2500000
-DLOAD_FONT2
-DLOAD_FONT4
-DLOAD_FONT6
-DLOAD_FONT7
-DLOAD_FONT8
-DLOAD_GFXFF
-DUSE_HSPI_PORT
-DTFT_RGB_ORDER=TFT_BGR -DTFT_RGB_ORDER=TFT_BGR
+3 -2
View File
@@ -3,7 +3,7 @@
# Usage: ./run_pio_docker.sh <ESP_PORT> [additional docker args] # Usage: ./run_pio_docker.sh <ESP_PORT> [additional docker args]
# Example: ./run_pio_docker.sh /dev/ttyUSB0 # Example: ./run_pio_docker.sh /dev/ttyUSB0
ESP_PORT="$1" ESP_PORT="/dev/ttyUSB0"
shift shift
# if [ -z "$ESP_PORT" ]; then # if [ -z "$ESP_PORT" ]; then
@@ -11,10 +11,11 @@ shift
# exit 1 # exit 1
# fi # fi
IMAGE="easylinux/platformio-dev:1.0" IMAGE="easylinux/platformio-dev:1.1"
CONTAINER="pio-dev" CONTAINER="pio-dev"
PROJECT_DIR="$(pwd)" PROJECT_DIR="$(pwd)"
socat TCP-LISTEN:12345,reuseaddr,fork FILE:/dev/ttyUSB0,raw,echo=0 &
# Run Docker container with ESP port and project directory mounted # Run Docker container with ESP port and project directory mounted
# --device allows direct access to the ESP serial port # --device allows direct access to the ESP serial port
+14
View File
@@ -0,0 +1,14 @@
tft.drawBitmap(189, 9, image_battery_empty_bits, 24, 16, 0xFFFF);
tft.pushImage(20, 36, 190, 40, image__1000_pixels);
tft.pushImage(13, 77, 200, 200, image_Compteur_pixels);
tft.drawBitmap(16, 8, image_device_power_button_bits, 15, 16, 0xFFFF);
tft.drawBitmap(53, 13, image_Pin_arrow_right_bits, 9, 7, 0xFFFF);
tft.setTextColor(0xFFFF);
tft.setTextSize(1);
tft.setFreeFont();
tft.drawString("Text", 13, 289);
tft.drawString("Text", 141, 13);
tft.drawString("Text", 69, 291);
tft.drawString("Text", 128, 291);
tft.drawString("Text", 183, 292);
+1 -1
View File
@@ -47,7 +47,7 @@ void setup()
DEBUG_MSG("Rotation set"); DEBUG_MSG("Rotation set");
// Print hello world on tft // Print hello world on tft
tft.fillScreen(COLOR_BLACK); tft.fillScreen(COLOR_RED);
tft.setTextColor(COLOR_WHITE); tft.setTextColor(COLOR_WHITE);
tft.setTextSize(1); tft.setTextSize(1);
tft.setCursor(10, 10); tft.setCursor(10, 10);