Files
voicechecktest/include/pins.h
DESKTOP-PUHFO60\dsx2016 b2052a7771 Add 3-pin whistle sound sensor digital H/L detect on GPIO22.
Touch+LVGL UI shows QUIET/SOUND, pin level, hit count; no dB (digital only).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 13:47:52 +08:00

22 lines
522 B
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#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 高低电平(常见:有声=HIGH)
#define SOUND_PIN 22
// 1 = 高电平表示检测到声音;若模块相反改成 0
#define SOUND_ACTIVE_HIGH 1
#define SCREEN_WIDTH 240
#define SCREEN_HEIGHT 320
#define UI_HOR_RES 320
#define UI_VER_RES 240