Files
tftest/include/pins.h
DESKTOP-PUHFO60\dsx2016 1381c221d9 Align touch and draw in one 320x240 space like CYD LVGL9.
Drop LVGL ROTATION_270 double-transform; SoftSPI rot3 maps directly to screen pixels.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 18:14:26 +08:00

29 lines
767 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 引脚
// TFT (HSPI / TFT_eSPI 已在 platformio.ini 配置)
#define TFT_BL_PIN 21
// TF / microSD (独立 VSPI)
#define SD_MISO 19
#define SD_MOSI 23
#define SD_SCK 18
#define SD_CS 5
// 板载 SC8002B 功放 → P4 喇叭座(DAC2)
#define SPEAKER_PIN 26
// 触摸 XPT2046(SoftSPI 专用脚,VSPI 留给 SD;勿用 TOUCH_CS,会与 TFT_eSPI 冲突)
#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
// 横屏 UI(与 witnessmenow CYD LVGL9 官方例程一致:直接 320x240,不用 LVGL 二次旋转)
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
#define UI_HOR_RES SCREEN_WIDTH
#define UI_VER_RES SCREEN_HEIGHT