Fix tactile switch wiring: GPIO22 to GND, show live pin level.
Clarify 4-pin foot pairing and debounce for bare pushbutton. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -8,3 +8,5 @@ bool button_poll_press();
|
||||
uint32_t button_count();
|
||||
void button_reset_count();
|
||||
bool button_is_down();
|
||||
/** 原始电平:1=HIGH,0=LOW(便于接线排查) */
|
||||
int button_raw_level();
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#define CYD_TOUCH_CLK 25
|
||||
#define CYD_TOUCH_CS 33
|
||||
|
||||
// 按钮传感器 SIG → GPIO22(内部上拉,按下为 LOW)
|
||||
// 轻触开关:一脚 → GPIO22,另一脚 → GND(内部上拉,按下为 LOW)
|
||||
#define BTN_PIN 22
|
||||
|
||||
#define SCREEN_WIDTH 240
|
||||
|
||||
Reference in New Issue
Block a user