devsaurus wrote:This is an amazing display, for sure!
I would think about adding this as a display in u8g(2)lib https://github.com/olikraus/u8g2. You'd get graphic primitives for free
u8g2 looks like a good and small graphics library. Would be useful to integrate my code to it, then it would be available for other microcontrollers as well. Do you plan to integrate it in NodeMCU? Currently there is only u8g.
Note, there is a newer version of the original code for the EPD display:
https://github.com/embeddedartists/grat ... n/epd_v2.c
This doesn't work with my display, because I have the revision C hardware with a now obsolete version of the actual ePaper. Currently they sell revision D, with newer ePaper with even higher contrast. And looks like they changed the update sequence for it: in the original Raspberry Pi code for my display, they required to send the inverse version of the old image first, before sending the new display, with additional steps for inverse version of the new display and full black and white stages. This is bad for microcontrollers with low memory. The new code (with the new hardware) does only the reverse version of the new image, then two other stages, possibly full black and full white, then the new image. The code looks also much cleaner than their original Raspberry Pi code (which I already cleaned up a bit in my version).
I think I should base my code on the new version of their code and buy the new version of the display. I can buy it from Digikey with other parts I need for my project. I can buy one display for you, too, and send it to you, to save shipping costs. If you want to port their code, I'll send you the display for free
Another really useful feature would be partial updates of the display, which is currently not possible with the original code or my port, but the hardware should allow it, because you can update individual lines and you can specify for each pixel if the hardware driver should turn it on, turn it off or do nothing for it (the line format needs 2 bits per pixel).
Does your library support bit blits? Once I wrote a Lua graphics library for my http://luaplayer.org where I could create offscreen images and blit it to the screen, and with support for loading and printing True Type fonts. But of course, this is not possible for many small microcontrollers. But I really would like to have a fast method to blit a whole display content with a string as the input, as with my only function of my current code.