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
SD/Imgs/Init.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
SD/Imgs/Init.xcf Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -20,32 +20,9 @@ lib_deps =
bblanchon/ArduinoJson
paulstoffregen/XPT2046_Touchscreen
WiFi
me-no-dev/AsyncTCP@1.1.1
; me-no-dev/AsyncTCP@1.1.1
SD
esp32async/ESPAsyncWebServer@3.10.0
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

View File

@@ -3,7 +3,7 @@
# Usage: ./run_pio_docker.sh <ESP_PORT> [additional docker args]
# Example: ./run_pio_docker.sh /dev/ttyUSB0
ESP_PORT="$1"
ESP_PORT="/dev/ttyUSB0"
shift
# if [ -z "$ESP_PORT" ]; then
@@ -11,10 +11,11 @@ shift
# exit 1
# fi
IMAGE="easylinux/platformio-dev:1.0"
IMAGE="easylinux/platformio-dev:1.1"
CONTAINER="pio-dev"
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
# --device allows direct access to the ESP serial port

14
src/gui.old Normal file
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);

View File

@@ -47,7 +47,7 @@ void setup()
DEBUG_MSG("Rotation set");
// Print hello world on tft
tft.fillScreen(COLOR_BLACK);
tft.fillScreen(COLOR_RED);
tft.setTextColor(COLOR_WHITE);
tft.setTextSize(1);
tft.setCursor(10, 10);