Support 3-pin button module (VCC/GND/OUT) with auto polarity.

Sample idle level at boot; OUT on GPIO22, no internal pull fight.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-23 12:48:45 +08:00
parent 280c5ea97c
commit 7459f9bde1
9 changed files with 62 additions and 48 deletions

View File

@@ -1,8 +1,8 @@
name: CYD Button (cyd)
git: 2d1d49c
git: 280c5ea
date: 2026-10-23
board: ESP32-2432S028R (ILI9341)
features: SoftSPI touch, LVGL, button SIG on GPIO22 count+1
features: SoftSPI touch, LVGL, 3-pin button OUT on GPIO22 count+1
flash_size: 4MB
offsets:
0x1000 bootloader.bin
@@ -12,5 +12,5 @@ offsets:
sha256:
bootloader.bin 3D234A7471F67B013686DABD4DEE7C1FA915C9928463616A94BC9297ACF1ABF8
boot_app0.bin F94C5D786A7A8FAB06AC5D10E33BF37711A6697636DC037559EA19CC410A17F0
firmware.bin B57118B1598F34B9737625C04E1EEB6C88395C639017288D69A6AB1BEC0C633C
firmware.bin BFCAD59431009CF5930B228CA7D6E3DE24C5FD2587690D131F770070EC8C604D
partitions.bin 148B959CBFF1C38AA8E1D5C0BA9D612C54997B945E56A63F41223EEF650653A1

Binary file not shown.

View File

@@ -1,7 +1,7 @@
{
"boardId": "esp32-2432s028",
"name": "CYD Button",
"summary": "Button on GPIO22: each press increments on-screen count",
"description": "SoftSPI touch + LVGL. SIG->GPIO22 INPUT_PULLUP. Press +1, touch Reset clears.",
"summary": "3-pin button module on GPIO22: each press increments count",
"description": "SoftSPI touch + LVGL. VCC/GND/OUT->GPIO22. Auto polarity. Press +1, touch Reset clears.",
"tags": ["button", "gpio22", "touch", "lvgl", "counter"]
}

View File

@@ -41,7 +41,7 @@ $lines = @(
"git: $git",
"date: $date",
"board: ESP32-2432S028R (ILI9341)",
"features: SoftSPI touch, LVGL, button SIG on GPIO22 count+1",
"features: SoftSPI touch, LVGL, 3-pin button OUT on GPIO22 count+1",
"flash_size: 4MB",
"offsets:",
" 0x1000 bootloader.bin",