diff --git a/firmware/cyd/VERSION.txt b/firmware/cyd/VERSION.txt index 44dd075..3684e55 100644 --- a/firmware/cyd/VERSION.txt +++ b/firmware/cyd/VERSION.txt @@ -1,5 +1,5 @@ name: CYD TF card + touch speaker (cyd) -git: 8705827 +git: f2b14eb date: 2026-10-17 board: ESP32-2432S028R (ILI9341) features: TF/SD info, SoftSPI touch, GPIO26 speaker @@ -12,5 +12,5 @@ offsets: sha256: bootloader.bin 3D234A7471F67B013686DABD4DEE7C1FA915C9928463616A94BC9297ACF1ABF8 boot_app0.bin F94C5D786A7A8FAB06AC5D10E33BF37711A6697636DC037559EA19CC410A17F0 - firmware.bin DB8EEBFEF7FF0995BBF7AF3D525CDE2560060CC008C2656094CF28C6DD7FEEAB + firmware.bin 6A14D85F7466922C021B3288B7246987FD57DEC850741991C6E7671EA1BF7785 partitions.bin 148B959CBFF1C38AA8E1D5C0BA9D612C54997B945E56A63F41223EEF650653A1 diff --git a/firmware/cyd/firmware.bin b/firmware/cyd/firmware.bin index b0bc9a1..73d21b7 100644 Binary files a/firmware/cyd/firmware.bin and b/firmware/cyd/firmware.bin differ diff --git a/src/touch.cpp b/src/touch.cpp index 6cb0295..87002f6 100644 --- a/src/touch.cpp +++ b/src/touch.cpp @@ -95,6 +95,10 @@ void touch_read_cb(lv_indev_t * /*indev*/, lv_indev_data_t *data) { y = SCREEN_HEIGHT - 1; } + // BL↔TR 对角反了:物理坐标整体旋转 180° + x = (int16_t)((SCREEN_WIDTH - 1) - x); + y = (int16_t)((SCREEN_HEIGHT - 1) - y); + // LVGL 270 → UI g_dbg_phys_x = x; g_dbg_phys_y = y;