Align touch with temperature XPT2046 driver and LVGL inverse map.

Mux VSPI between SD and touch; map like climate UI then undo ROTATION_270 so buttons hit.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-17 18:07:18 +08:00
parent d874cb192c
commit 156d9cf583
9 changed files with 99 additions and 94 deletions

8
include/bus_vspi.h Normal file
View File

@@ -0,0 +1,8 @@
#pragma once
#include <SPI.h>
// CYD:触摸与 SD 共用 VSPI,按需切换引脚
SPIClass &cyd_vspi();
void cyd_vspi_select_touch();
void cyd_vspi_select_sd();