mirror of
https://github.com/skoelle/wt32sc01-dashboard.git
synced 2026-09-17 17:30:25 +00:00
- Replace m5stack-core-esp32 env with wt32-sc01-plus (freenove_esp32_s3_wroom board as closest N8R8 PSRAM match; WT32-SC01 Plus has no built-in board ID) - 8MB partition table, USB CDC, PSRAM build flags - lib_deps: LovyanGFX, lvgl@^9.2, ArduinoJson - Add LV_CONF_INCLUDE_SIMPLE + project root include path so LVGL finds lv_conf.h - lv_conf.h from lvgl 9.5 template, enabled (0 -> 1) - include/board_pins.h: WT32-SC01 Plus reference pinout (ST7796 8-bit parallel + FT6336U I2C touch), to be verified against concrete board revision
35 lines
956 B
C++
35 lines
956 B
C++
#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.
|
|
|
|
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_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_BACKLIGHT = 2;
|
|
|
|
// --- FT6336U capacitive touch (I2C) ---
|
|
constexpr int TOUCH_SDA = 14;
|
|
constexpr int TOUCH_SCL = 12;
|
|
constexpr int TOUCH_INT = 13;
|
|
|
|
} // namespace BoardPins
|