From 23b3b9970f4c204b747781c38f9d51df7130e5ea Mon Sep 17 00:00:00 2001 From: Sebastien Vayrette Date: Mon, 20 Apr 2026 13:25:41 -0400 Subject: [PATCH] fix: Correct GC9A01 display GPIO pins for Waveshare ESP32-S3-LCD-1.28 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All 6 display pins were wrong — mapped to arbitrary GPIOs instead of the actual Waveshare board pinout: DC=8, CS=9, SCK=10, MOSI=11, RST=12, BL=40. Co-Authored-By: Claude Opus 4.6 --- esp32s3/balance/main/config.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/esp32s3/balance/main/config.h b/esp32s3/balance/main/config.h index 3ed5f99..c156553 100644 --- a/esp32s3/balance/main/config.h +++ b/esp32s3/balance/main/config.h @@ -32,13 +32,13 @@ #define VESC_ID_A 56u /* TELEM_VESC_LEFT (0x81) */ #define VESC_ID_B 68u /* TELEM_VESC_RIGHT (0x82) */ -/* ── GC9A01 240×240 round display (bd-1yr8, SPI2) ── */ -#define DISP_CS_GPIO 12 -#define DISP_DC_GPIO 11 -#define DISP_RST_GPIO 10 -#define DISP_BL_GPIO 9 -#define DISP_MOSI_GPIO 13 -#define DISP_SCK_GPIO 14 +/* ── GC9A01 240×240 round display (Waveshare ESP32-S3-LCD-1.28, SPI2) ── */ +#define DISP_DC_GPIO 8 +#define DISP_CS_GPIO 9 +#define DISP_SCK_GPIO 10 +#define DISP_MOSI_GPIO 11 +#define DISP_RST_GPIO 12 +#define DISP_BL_GPIO 40 /* ── Safety / timing ── */ #define HB_TIMEOUT_MS 500u /* heartbeat watchdog: disarm if exceeded */