From 70edade57779de06102234bc5231b8e32d86babb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=90=83=E6=B2=B9=E7=82=B8=E9=B8=A1?= <1425962791@qq.com> Date: Mon, 16 Mar 2026 09:23:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E7=AD=89=E5=BE=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- software/Power_Pico/BSP/LCD/lcd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/software/Power_Pico/BSP/LCD/lcd.c b/software/Power_Pico/BSP/LCD/lcd.c index 9c10cbf..50fb138 100644 --- a/software/Power_Pico/BSP/LCD/lcd.c +++ b/software/Power_Pico/BSP/LCD/lcd.c @@ -71,6 +71,8 @@ void HAL_SPI_TxCpltCallback(SPI_HandleTypeDef *hspi) { if (hspi->Instance == SPI2) { + // 确保最后一位数据离开 STM32 的移位寄存器 + while (hspi->Instance->SR & SPI_FLAG_BSY); // 通知 LVGL 渲染结束,执行回调函数 if (lcd_ready_cb) { LCD_CallbackFunc_t func = (LCD_CallbackFunc_t)lcd_ready_cb;