martinberlin / cale-idf

CalEPD is an Epaper component driver for the ESP-IDF framework with GFX and font support, optional touch interface, compatible with ESP32 / S2 / S3 / C3
https://fasani.de
Apache License 2.0
270 stars 24 forks source link

Class to send SPI data to T-Con eink dot com/ GD GDEW101C01 #45

Closed martinberlin closed 2 years ago

martinberlin commented 3 years ago

Change of strategy here: First focus is communicating with the existing Waveshare eink dot com T-Con raw epapers. GxEPD 2 has already the right commands: https://github.com/ZinggJM/GxEPD2/tree/master/src/it8951 iC controller is IT8959 that converts SPI to parallel. Needs 4 wire SPI and optimizing existing implementation will be a great way to get familiar with this controllers.

Model: Goodisplay GDEW101C01 10.1 inch epaper display DES full color Resolution: 2232x1680 Buffer is different from other color epapers: 12 bit per pixel Red: 4 bits Green: 4 bits Blue: 4 bits

This will not communicate with the epaper directly. A Waveshare HAT will be in the middle that will act as an SPI to 16 parallel bus converter.

Note due to the big buffer: 22321680 12 bit / 8 (bits per byte): 5624640 bytes it won't fit in PSRAM.

If that is the case then reduce height to a more appropriate number and send and empty buffer for the rest of the data. Ex. 2232*1180: 3950640 bytes buffer

Note: The buffer can be wrongly calculated. Here a new theory after comparing with the Kaleido technology that is similar to DES.

martinberlin commented 2 years ago

Images for the Wiki it8951_einkdotcom

ED078KC2 ED078KC2

martinberlin commented 2 years ago

Additional research:

SPI Preamble before data IT_preamble_before_data

martinberlin commented 2 years ago

It works as expected using @lovyan03 library. Supported him as sponsor!