R/G/B color switch (GPIO22/27/4), PWM brightness, and flashable firmware/cyd package. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
513 B
C
22 lines
513 B
C
#pragma once
|
||
|
||
// CYD ESP32-2432S028R — 触控/屏脚与 tftest / hw269test 一致
|
||
|
||
#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
|
||
|
||
// KY-009 SMD RGB LED(26 留给喇叭,B 用 4)
|
||
#define KY009_R_PIN 22 // R -> GPIO22
|
||
#define KY009_G_PIN 27 // G -> GPIO27
|
||
#define KY009_B_PIN 4 // B -> GPIO4
|
||
|
||
#define SCREEN_WIDTH 240
|
||
#define SCREEN_HEIGHT 320
|
||
#define UI_HOR_RES 320
|
||
#define UI_VER_RES 240
|