Add KY-009 RGB LED test with SoftSPI touch and LVGL.
R/G/B color switch (GPIO22/27/4), PWM brightness, and flashable firmware/cyd package. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
21
include/pins.h
Normal file
21
include/pins.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user