From e8dd70edcbb5a24430efd8422bc11ce9eaee0bca 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, 22 Sep 2025 21:41:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0LCD=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E5=81=8F=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Power_Pico/BSP/LCD/lcd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Power_Pico/BSP/LCD/lcd.c b/Power_Pico/BSP/LCD/lcd.c index 2a04194..d2b4426 100644 --- a/Power_Pico/BSP/LCD/lcd.c +++ b/Power_Pico/BSP/LCD/lcd.c @@ -4,9 +4,12 @@ #include "spi.h" #include "cmsis_os.h" -#if USE_HORIZONTAL == 0 || USE_HORIZONTAL == 1 +#if USE_HORIZONTAL == 0 #define OFFSET_Y 0 #define OFFSET_X 0 +#elif USE_HORIZONTAL == 1 + #define OFFSET_Y 80 + #define OFFSET_X 0 #else #define OFFSET_Y 0 #define OFFSET_X 0