Teaching A Pi Pico E-Ink Panel New Tricks

We’ve noticed that adding electronic paper displays to projects is getting easier. [NerdCave] picked up a 4.2-inch E-ink panel but found its documentation a bit lacking when it came to using the display under MicroPython. Eventually he worked it out, and was kind enough to share with the rest of the class.

These paper-like displays draw little power and can hold static images. There were examples from the vendor of how to draw some simple objects and text, but [NerdCave] wanted to do graphics. There was C code to do it, but it wasn’t clear how to port it to Python.

The key was to use the image2cpp website (we’ve used it before, but you can also use GIMP). Instead of C code, though, you get the raw bytes out and place them in your Python code. Once you know the workflow, it isn’t that hard, and this is an inexpensive way to add a different kind of display to your projects. The same image conversion will help you work with other displays, too.

We aren’t sure what driver chip this particular display uses, but if you have one with the UC8151/IL0373, you can find some amazing MicroPython drivers for those chips.

13 thoughts on “Teaching A Pi Pico E-Ink Panel New Tricks

  1. I bought an epaper display 5 years ago and used it for something with a WiFi SoC. To this date, it still says “Got IP 192.168.1.4” as it lays in my drawer

    I really gotta find a good project for it. Its too cool to leave it in the drawer

  2. I am surprised how complicate he is doing the grafik. I just load any picture I like in my favorite graphic software (xv) dither it to black and wite and store it in xbm fileformat because this format is C code.

    Olaf

  3. If you have a bunch of images, you can use python’s PIL (pillow) to convert images to binary using “image. convert” and save as bmp.
    bmp is a quite easy format to read (see wiki description of format).

    Dithering can also be used in image.convert to create some pseudo – grayscale as well.

    However, because bmp has no compression, you won’t be able to save many images without a SD card module as well.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.