Files
smdky009ledtest/include/pins.h
DESKTOP-PUHFO60\dsx2016 53c57f1cfd 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>
2026-10-23 11:17:31 +08:00

22 lines
513 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 / 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