Repository navigation
Conversation
|
do not touch the cypher and passwords in this PR.. if you want to change it, make a separate PR explaining why you are changing it |
|
Done — split as requested. This PR is now board-only: the port plus the touch fix, no changes to The WiFi credential changes are in #481: "Fix WiFi password corruption when a stored value cannot be decrypted". It does not change the cipher, the key, the IV or the stored format; it fixes a bug where Current state of this branch:
I can close #481 if you prefer to handle the WiFi topic differently. |
720x1280 HX8394 MIPI-DSI panel (2 lanes) with Waveshare's own init sequence, GT911 capacitive touch, 4-bit SD_MMC microSD, ESP32-C6 WiFi over SDIO2 (ESP-Hosted) and the CH343 UART console. Adds a 32 MB factory-partition layout for the P4 (custom_32Mb_p4.csv), since the shared P4 JSON defaults to 16 MB. GT911 RST is driven through reset_cb so the driver's per-read reset() no longer re-latches a held finger (on-screen keyboard used to type every key twice); InputHandler applies touches on the press edge with a 500 ms hold-repeat. Verified on hardware: display, touch, microSD and WiFi scan. Env registered in default_envs and the CI matrix.
The GT911 occasionally drops a sample mid-press and the input task clears touchPoint every pass, so the old code re-applied the contact as if it were a fresh tap; menus and the keyboard fired far faster than intended. Accept a new press only after the panel has reported "up" for 60 ms, then repeat a held contact after 800 ms and every 400 ms after that. The long-press detector still sees the contact re-asserted while LongPress is set.
Adds a board port for the Waveshare ESP32-P4-WIFI6-Touch-LCD-5: ESP32-P4 main SoC + ESP32-C6 co-processor bridged over SDIO, 720x1280 HX8394 MIPI-DSI panel (2 lanes), GT911 I2C capacitive touch, microSD on SDMMC0 (4-bit), 32 MB NOR flash.
Bench-tested on a P4 rev v1.3 unit:
factoryNot implemented: ES8311/ES7210 audio, no user buttons, no battery reading.
Files
boards/waveshare-esp32-p4-wifi6-touch-lcd-5/—platformio.ini,interface.cpp,connections.md(pinout, SDIO/ESP-Hosted notes, flashing notes).support_files/custom_32Mb_p4.csv— 32 MB P4 layout:app0subtype factory at0x10000(size0x210000), coredump at0x220000. It iscustom_32Mb.csvwithapp0as factory, the same pair the repo already has for 16 MB (custom_16Mb.csv/custom_16Mb_p4.csv, which the other P4 boards use). The Launcher stays in factory and apps are created in the free space fromOTA_0(app_registry.cpp), so a bad app can never overwrite the Launcher.default_envsline, following the other Waveshare envs.Second commit: board touch fix
Board touch: edge-trigger with a release debounceThe GT911 occasionally drops a sample mid-press, and the previous code read that dropout as a fresh tap, so menus and the keyboard fired far too fast. Touch is now edge-triggered with a 60 ms release debounce; a held finger repeats after 800 ms, then every 400 ms. The long-press detector still sees the contact re-asserted while
LongPressis set.The WiFi credential changes that were in this PR have been moved out to #481.
LauncherHub catalog
OTA_TAG="waveshare-esp32-p4-wifi6-touch-lcd-5". The catalog has no entry for it yet:while
elecrow-esp32p4-7inandt-display-p4return entries, so OTA currently shows an empty list on this board. The UI has no "install from URL" path (only catalog favorites), so SD install is the only route until the category exists. Could you add the category (and the Launcher build for it) once this is merged? Downloads send the WiFi MAC in theHWIDheader, same as the other boards.