增加LCD动态翻转的函数

This commit is contained in:
不吃油炸鸡
2025-10-09 19:55:18 +08:00
parent 9527dd21ce
commit 92db314c84
4 changed files with 36 additions and 25 deletions

View File

@@ -3,19 +3,13 @@
#include "sys.h"
#define USE_HORIZONTAL 1 //设置横屏或者竖屏显示 0或1为竖屏 2或3为横屏
extern uint8_t LCD_ROTATION;
extern uint8_t OFFSET_X;
extern uint8_t OFFSET_Y;
#if USE_HORIZONTAL==0||USE_HORIZONTAL==1
#define LCD_W 240
#define LCD_H 240
#else
#define LCD_W 240
#define LCD_H 240
#endif
//-----------------LCD端口定义----------------
#define SCLK_PORT GPIOB
#define SCLK_PIN GPIO_PIN_13