feat:MagiClick-2p5增加硬件版本识别,增加对新屏幕的支持 (#1797)
* 增加硬件版本识别,开机自动切换不同的显示驱动 1、增加PCB版本识别 2、增加对ST7735屏幕的支持 3、删除sdk多余配置 4、增加电池均值次数 * fix lcd info
This commit is contained in:
@ -37,9 +37,10 @@
|
||||
|
||||
#define DISPLAY_WIDTH 128
|
||||
#define DISPLAY_HEIGHT 128
|
||||
#define DISPLAY_MIRROR_X false
|
||||
#define DISPLAY_MIRROR_Y false
|
||||
#define DISPLAY_SWAP_XY false
|
||||
|
||||
// 根据PCB版本动态选择屏幕类型和配置
|
||||
#define PCB_VERSION_2_5A 1 // 使用GC9107
|
||||
#define PCB_VERSION_2_5A1 2 // 使用ST7735
|
||||
|
||||
#define DISPLAY_OFFSET_X 0
|
||||
#define DISPLAY_OFFSET_Y 0
|
||||
|
||||
Reference in New Issue
Block a user