From d7c96e94119ae7343510d0a8bc7e73689c8fd6ce Mon Sep 17 00:00:00 2001 From: tpu Date: Sun, 20 Jul 2025 22:36:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=AF=86=E5=88=ABFLASH?= =?UTF-8?q?=E4=B8=AD=E4=BF=9D=E5=AD=98=E7=9A=84=E5=88=86=E8=BE=A8=E7=8E=87?= =?UTF-8?q?=E7=AD=89=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Readme.txt | 6 ++++-- src/epd/epd.c | 5 +++++ src/epd/epd.h | 8 ++++++++ src/epd/epd_gui.c | 2 +- src/epd/spi_flash.c | 28 ++++++++++++++++++++++++++++ src/user_peripheral.c | 7 ++++--- 6 files changed, 50 insertions(+), 6 deletions(-) diff --git a/Readme.txt b/Readme.txt index 20bb9b3..dc5f250 100644 --- a/Readme.txt +++ b/Readme.txt @@ -70,10 +70,12 @@ Flash的0x39000处存放有墨水屏所使用的IO的信息: Flash的0x3a000处存放有墨水屏的分辨率等信息: + 00 25 00 00 92 fa a8 fe 00 01 80 00 28 01 04 00 + 0080 0128 128x296 BWR 40 1f 00 00 f0 70 18 01 00 01 7a 00 fa 00 fc 07 - 007a 00fa 122x250 + 007a 00fa 122x250 BWR c4 0a 00 00 1a 4f ae 5a 00 00 68 00 d4 00 04 00 - 0068 00d4 104x212 + 0068 00d4 104x212 BW 原版的固件,不知道什么原因,无法用蓝牙搜索到。否则可以无损更新固件了(但大多数价签的电池都是没电的,还是得拆开)。 diff --git a/src/epd/epd.c b/src/epd/epd.c index ec3de90..7f3ed7f 100644 --- a/src/epd/epd.c +++ b/src/epd/epd.c @@ -14,6 +14,10 @@ int scr_padding; int update_mode; int lut_size; +int detect_w = 104; +int detect_h = 212; +int detect_mode = EPD_BW; + // 窗口参数 int win_w; @@ -356,6 +360,7 @@ void epd_screen_update(void) for(i=0; i