From 5406ec3bf76c1fb26696c432b8ea71d731e5be7e Mon Sep 17 00:00:00 2001 From: ZinggJM Date: Thu, 9 Jul 2020 13:12:17 +0200 Subject: [PATCH] Version 1.0.2 - fixed controller buffer partial overwrite issue with GDE060F3 or GDEW080T5 (higher buffer base address) --- README.md | 4 +++- library.properties | 2 +- src/GxDESP32T/AVT6203A.h | 4 +++- src/GxDESP32T_BP/AVT6203A_BP.h | 4 +++- src/GxDESTM32T/AVT6203A.cpp | 5 +++++ src/GxDESTM32T/AVT6203A.h | 4 +++- 6 files changed, 18 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7c51cf8..6ad0979 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,9 @@ E-Paper display library for Arduino for HD parallel interface displays from Dali - CPU Speed(MHz): "72MHz (Normal)" - Upload method: "STLink" -### Version 1.0.1 +### Version 1.0.2 +- fixed controller buffer partial overwrite issue with GDE060F3 or GDEW080T5 (higher buffer base address) +#### Version 1.0.1 - added GxGDE060F3 for panel GDE060F3 6" 1024x758 - uses my Adafruit_GFX clone GFX from my library GFX_Root, available by Library Manager - search for GFX_Root in Library Manager to install GFX_Root diff --git a/library.properties b/library.properties index 106f516..0d61fbf 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=GxEPD_HD -version=1.0.1 +version=1.0.2 author=Jean-Marc Zingg maintainer=Jean-Marc Zingg sentence=Display Library for HD e-paper panels and boards from Dalian Good Display. diff --git a/src/GxDESP32T/AVT6203A.h b/src/GxDESP32T/AVT6203A.h index bc072dd..21f6a41 100644 --- a/src/GxDESP32T/AVT6203A.h +++ b/src/GxDESP32T/AVT6203A.h @@ -15,7 +15,9 @@ #include "MCP23S17.h" #define EPD_WF_ADDR (0x3000) -#define EPD_IMG_ADDR (0x200000) +//#define EPD_IMG_ADDR (0x200000) // original, @2MB, midlle of RAM, gets partly overwritten for GxGDE060F3, GxGDEW080T5 +//#define EPD_IMG_ADDR (0x240000) // @2.25MB, minimum for GxGDE060F3, GxGDEW080T5 +#define EPD_IMG_ADDR (0x280000) // @2.5MB, ok for GxGDE060F3, GxGDEW080T5 #define EPD_MODE_INIT 0 #define EPD_MODE_DU 1 diff --git a/src/GxDESP32T_BP/AVT6203A_BP.h b/src/GxDESP32T_BP/AVT6203A_BP.h index 7d31fab..a3bfcbb 100644 --- a/src/GxDESP32T_BP/AVT6203A_BP.h +++ b/src/GxDESP32T_BP/AVT6203A_BP.h @@ -15,7 +15,9 @@ #include "STM32F103C8T6_IO.h" #define EPD_WF_ADDR (0x3000) -#define EPD_IMG_ADDR (0x200000) +//#define EPD_IMG_ADDR (0x200000) // original, @2MB, midlle of RAM, gets partly overwritten for GxGDE060F3, GxGDEW080T5 +//#define EPD_IMG_ADDR (0x240000) // @2.25MB, minimum for GxGDE060F3, GxGDEW080T5 +#define EPD_IMG_ADDR (0x280000) // @2.5MB, ok for GxGDE060F3, GxGDEW080T5 #define EPD_MODE_INIT 0 #define EPD_MODE_DU 1 diff --git a/src/GxDESTM32T/AVT6203A.cpp b/src/GxDESTM32T/AVT6203A.cpp index 54de7da..fba3600 100644 --- a/src/GxDESTM32T/AVT6203A.cpp +++ b/src/GxDESTM32T/AVT6203A.cpp @@ -885,6 +885,11 @@ void AVT6203A::avt_init() avt_info_str("\r\nCheck Register MA[31:16] updated by UPD_SET_SETADR: addr 0x0312, value "); avt_info_hex(avt_rd_reg(0x0312)); + avt_info_str("\r\nCheck Register MA[15:0] addr 0x0314, value "); + avt_info_hex(avt_rd_reg(0x0314)); + avt_info_str("\r\nCheck Register MA[31:16] addr 0x0316, value "); + avt_info_hex(avt_rd_reg(0x0316)); + avt_ld_img(EPD_DATA_8BPP); avt_info_str("\r\nLD_IMG is sent!"); avt_info_str("\r\nCheck Register ARG[15:0] updated by LD_IMG: addr 0x0140, value "); diff --git a/src/GxDESTM32T/AVT6203A.h b/src/GxDESTM32T/AVT6203A.h index e4ca3db..7a9722c 100644 --- a/src/GxDESTM32T/AVT6203A.h +++ b/src/GxDESTM32T/AVT6203A.h @@ -21,7 +21,9 @@ //#define GDE060F3 // GDE060F3 6.0" 1024*758 #define EPD_WF_ADDR (0x3000) //����ֽģ�����������ļ���SPI_FLASH����ʼ��ַ -#define EPD_IMG_ADDR (0x200000) //����ͼƬ������RAM����ʼ��ַ +//#define EPD_IMG_ADDR (0x200000) // original, @2MB, midlle of RAM, gets partly overwritten for GxGDE060F3, GxGDEW080T5 +//#define EPD_IMG_ADDR (0x240000) // @2.25MB, minimum for GxGDE060F3, GxGDEW080T5 +#define EPD_IMG_ADDR (0x280000) // @2.5MB, ok for GxGDE060F3, GxGDEW080T5 #define EPD_MODE_INIT 0 #define EPD_MODE_DU 1