관련정보
RELATED INFORMATION
연락처
CONTACT US
-
0086-411-84619565
E-mail:sales.kr@good-display.com
Add:랴오닝성 대련시 간정자구 중화서로 18호
4.2 인치 전자종이 Model GDEW042T2 CALE IDF에세 구동 성공됨, (흑백 모드와 4 계조 모드) ESP32S2, DESPI-C02
- 분류 :뉴스센터
- 작성자 :
- 출처 :
- 등록시간 :2022-10-23
- 방문수 :0
【개요 설명】
4.2 인치 전자종이 Model GDEW042T2 CALE IDF에세 구동 성공됨, (흑백 모드와 4 계조 모드) ESP32S2, DESPI-C02
【개요 설명】
- 분류 :뉴스센터
- 작성자 :
- 출처 :
- 등록시간 :2022-10-23
- 방문수 :0
4.2 인치 전자종이 Model GDEW042T2 CALE IDF에세 구동 성공됨, (흑백 모드와 4 계조 모드) ESP32S2, DESPI-C02
Cale-IDF by Martin Fasani (Fasani Corp)
https://github.com/martinberlin/cale-idf/wiki/Model-gdew042t2.h
크기: 400*300 4.2"
컨트롤러: IL0398
상태: 정상
새 클래스: gdew042t2Rays.h는 4그레이스케일 모드를 지원하지만 30Kb의 D램을 추가해야 한다.
ESP32/ESP32S2에서 테스트
상태
EP32S2에서 ms 단위의 시간을 테스트했는데 v1.0은 최적화되지 않았고 SPI를 사용하여 매번 바이트를 보내고 칩 선택(SS) 상태를 전환했다.v1 원본 GxEPD 스타일
3210 _wakeUp settings+send Buffer
2006 _powerOn
5217 total time in millis
gdew042t2 v2 using SPI optimization
2569 _wakeUp settings+send Buffer
2007 _powerOn
4577 total time in ms (640 milliseconds optimized)
gdew042t2Grays.h class
90 ms _wakeUp settings+send Buffer
About the gdew042t2Grays class you need to be aware that it keeps 3 buffers:
_buffer (monochrome) _buffer1 is SPI1 buffer (0x10 command) _buffer2 is SPI2 buffer (0x13 command)
Each of them 15 K that is the result of doing 400/8*300 (1-bit per pixel) summing 45Kb of DRAM in total (about 30Kb more than the monochrome version).
Be aware that you cannot use updateWindow partial update method if you are in 4 Grays mode.
Or you can, but it will show the contents of _buffer (monochrome) since the controller does not support partial upgrade in 4 gray mode.
In order to achieve both modes in the same class it has a new method called: setMonoMode(bool mode) on true it use monochrome mode and _buffer.
In setMonoMode(false) you can draw using the 3 levels of gray plus white. There are 4 constants defined for that:
// The only 4 grays supported by Good display/Waveshare #define EPD_BLACK 0 #define EPD_DARKGREY 64 #define EPD_LIGHTGREY 128 #define EPD_WHITE 255 Implementation demo
#include <gdew042t2Grays.h>
EpdSpi io;
Gdew042t2Grays display(io);
void app_main() {
// Test Epd class. true to enable debug
display.init(false);
// Note that is in 4 Gray mode as default this is just to make it more explicit:
display.setMonoMode(false); // 4 gray mode.
// Draw something
display.setTextColor(EPD_DARKGREY);
display.setCursor(20,40);
display.print("Hello world");
display.fillCircle(60 , 200, 40, EPD_LIGHTGREY);
display.fillCircle(160, 200, 40, EPD_DARKGREY);
display.fillCircle(260, 200, 40, EPD_BLACK);
display.drawCircle(360, 200, 40, EPD_BLACK);
display.update();
// Wait some seconds with some delay()
display.setMonoMode(true); // Now it's in MONO mode
// Draw something in the _buffer
display.update();
}
For the record this is the first iteration of the monochrome mode Class
요구 사항
분기 개발 중인 esp32 또는 esp32S2/C3
Espressif IDF 프레임워크>=4.2(4.3->4.4, 최신 S3 지원)
epaper 표시(지원되는 모델은 Wiki 참조)
Cale-idf는 웹 서비스 Cale의 공식 ESP-idf 펌웨어입니다.그리고 CalEPD epaper 구성 요소가
개발된 저장소입니다.기본 클래스는 Adafruit GFX를 확장하므로 라이브러리에는 완전한 형상
기능이 있으며 독일어/스페인어/프랑스어 특수 문자를 포함한 글꼴도 지원됩니다.
QR코드를 스캔하여 휴대폰으로 보기
佳显电子
연락처
제품 문의 sales.kr@good-display.com
기술 지원 service@good-display.com
불만 제안 complaint@good-display.com
©2021-2024 DALIAN GOOD DISPLAY CO., LTD. All Rights Reserved. 辽ICP备08000578号-1 power by:300.cn Dalian