From 6c5ec3cbb47cdc1c46dc793a9d4b993ccc6295e5 Mon Sep 17 00:00:00 2001 From: helios Date: Sat, 1 Aug 2026 18:29:57 +0000 Subject: [PATCH] Add Tab5 touch dashboard project --- .gitignore | 5 +++++ README.md | 38 ++++++++++++++++++++++++++++++++++++++ platformio.ini | 16 ++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 platformio.ini diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a2bdb4e --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.pio/ +.vscode/.browse.c_cpp.db* +.vscode/c_cpp_properties.json +.vscode/launch.json +.vscode/ipch/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..1f6c081 --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# M5Stack Tab5 Touch Dashboard + +PlatformIO starter for the M5Stack Tab5. It demonstrates the 1280x720 display, +touch buttons, a brightness slider, touch coordinates, memory, battery, Wi-Fi, +and accelerometer status. + +## Build and upload + +```powershell +pio run +pio run --target upload +pio device monitor --baud 115200 +``` + +If needed, append the port: `--upload-port COM29`. + +## Controls + +- **RED**, **GREEN**, and **BLUE** change the central panel. +- **RESET** restores the default and clears the counter. +- Drag the bottom slider to change brightness. +- Touching the colour panel draws a white marker. + +Current M5Unified and M5GFX versions support the different display/touch +controller variants shipped in Tab5 units. + +## Next steps + +1. Connect Wi-Fi and show the IP address. +2. Add an SD-card browser. +3. Add camera and audio tests. +4. Recreate the dashboard with LVGL widgets. + +## References + +- [Tab5 documentation](https://docs.m5stack.com/en/core/Tab5) +- [M5Unified](https://github.com/M5Stack/M5Unified) +- [M5GFX](https://github.com/M5Stack/M5GFX) diff --git a/platformio.ini b/platformio.ini new file mode 100644 index 0000000..31e24b0 --- /dev/null +++ b/platformio.ini @@ -0,0 +1,16 @@ +[env:tab5] +platform = https://github.com/pioarduino/platform-espressif32.git#54.03.21 +board = esp32-p4-evboard +framework = arduino +monitor_speed = 115200 +upload_speed = 1500000 +board_build.mcu = esp32p4 +board_build.flash_mode = qio +build_flags = + -DBOARD_HAS_PSRAM + -DCORE_DEBUG_LEVEL=3 + -DARDUINO_USB_CDC_ON_BOOT=1 + -DARDUINO_USB_MODE=1 +lib_deps = + https://github.com/M5Stack/M5Unified.git + https://github.com/M5Stack/M5GFX.git