Home

Awesome

MicroPython Display Driver for WaveShare 2.9inch e-Paper Display (B)

The library supports drawing lines, shapes, text and images. All code is documented and there are demo examples. Tested on WaveShare 2.9inch e-Paper Display (B) 128x296 resolution using Wemos Lolin ESP32 Wrover.

Sample XGLCD fonts are included in the fonts folder. Additional fonts can generated from TTF fonts using a free utility called MikroElektronika GLCD Font Creator.

There are sample images in monocrhome (monoHMSB) and raw format. I’ve included a python app called img2monoHMSB.py in the utils folder to convert images in common formats such as JPEG and PNG to monoHMSB.

demo_images.py example draws monochrome images in black & white and red & white: Images

demo_fonts.py example: Fonts

demo_shapes.py example: Shapes

demo_qr.py example draws a QR code which is readable by phones, tablets and webcams: QR_Code