Clarify 4-pin foot pairing and debounce for bare pushbutton. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
441 B
C
20 lines
441 B
C
#pragma once
|
||
|
||
// CYD ESP32-2432S028R — 触控/屏脚与 tftest 一致
|
||
|
||
#define TFT_BL_PIN 21
|
||
|
||
#define CYD_TOUCH_IRQ 36
|
||
#define CYD_TOUCH_MOSI 32
|
||
#define CYD_TOUCH_MISO 39
|
||
#define CYD_TOUCH_CLK 25
|
||
#define CYD_TOUCH_CS 33
|
||
|
||
// 轻触开关:一脚 → GPIO22,另一脚 → GND(内部上拉,按下为 LOW)
|
||
#define BTN_PIN 22
|
||
|
||
#define SCREEN_WIDTH 240
|
||
#define SCREEN_HEIGHT 320
|
||
#define UI_HOR_RES 320
|
||
#define UI_VER_RES 240
|