From 36b58f99c99a9d59a914a7db8f4a075ea154cc9f Mon Sep 17 00:00:00 2001 From: Stefan Koelle Date: Sun, 2 Aug 2026 12:51:44 +0200 Subject: [PATCH] correct pins --- include/board_pins.h | 34 +++++++++++++++------------------- src/display/display_setup.cpp | 2 +- 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/include/board_pins.h b/include/board_pins.h index c22546d..7da3b74 100644 --- a/include/board_pins.h +++ b/include/board_pins.h @@ -1,29 +1,25 @@ #pragma once -// WT32-SC01 Plus pin assignments. -// Reference values per WT32-SC01 Plus documentation (ESP32-S3-WROVER, -// ST7796 8-bit parallel + FT6336U capacitive touch). Verify against the -// concrete board revision before production use (see SPEC.md section 11). -// -// These constants are consumed by src/display/display_setup.cpp only. +// WT32-SC01 Plus pin assignments (ESP32-S3, ST7796 8-bit parallel, FT6336U touch). +// Verified against WT32-SC01 Plus schematic. namespace BoardPins { // --- ST7796 8-bit parallel RGB/8080 interface --- -constexpr int LCD_D0 = 8; -constexpr int LCD_D1 = 3; -constexpr int LCD_D2 = 46; -constexpr int LCD_D3 = 9; -constexpr int LCD_D4 = 1; -constexpr int LCD_D5 = 5; -constexpr int LCD_D6 = 6; -constexpr int LCD_D7 = 7; +constexpr int LCD_D0 = 9; +constexpr int LCD_D1 = 46; +constexpr int LCD_D2 = 3; +constexpr int LCD_D3 = 8; +constexpr int LCD_D4 = 18; +constexpr int LCD_D5 = 17; +constexpr int LCD_D6 = 16; +constexpr int LCD_D7 = 15; -constexpr int LCD_WR = 39; -constexpr int LCD_RD = 38; -constexpr int LCD_DC = 40; -constexpr int LCD_CS = 41; -constexpr int LCD_RST = 42; +constexpr int LCD_WR = 47; +constexpr int LCD_RD = -1; // not wired +constexpr int LCD_DC = 0; // RS/DC +constexpr int LCD_CS = -1; // not wired +constexpr int LCD_RST = 4; constexpr int LCD_BACKLIGHT = 2; // --- FT6336U capacitive touch (I2C) --- diff --git a/src/display/display_setup.cpp b/src/display/display_setup.cpp index f2fd906..86af777 100644 --- a/src/display/display_setup.cpp +++ b/src/display/display_setup.cpp @@ -23,7 +23,7 @@ public: // 8-bit parallel i80/8080 bus (ESP32-S3 variant). { auto cfg = _bus_instance.config(); - cfg.freq_write = 16000000; + cfg.freq_write = 20000000; cfg.freq_read = 8000000; cfg.pin_wr = BoardPins::LCD_WR; cfg.pin_rd = BoardPins::LCD_RD;