Add human IR (PIR) module test on GPIO22 with SoftSPI touch and LVGL.

Motion-start count, hold bar, auto polarity, and flashable firmware/cyd package.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-23 14:46:56 +08:00
commit bab93d0e36
23 changed files with 1982 additions and 0 deletions

19
include/pins.h Normal file
View File

@@ -0,0 +1,19 @@
#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
// 人体红外感应模块 OUT → GPIO22(VCC→3.3V 或 5V 视模块,GND→GND)
#define PIR_PIN 22
#define SCREEN_WIDTH 240
#define SCREEN_HEIGHT 320
#define UI_HOR_RES 320
#define UI_VER_RES 240