Table of contents
- Get and upload the image.py
- [[#upload-the-driver-from-waveshare-with-my-pr-to-get-micropython-implementation][Upload the driver from Waveshare (with my PR to get MicroPython implementation)]]
- Upload the main.py
I wanted to do some proof of concept using a Pycom LoPy4 and a e-paper display (epd2in13V2).
The MicroPython provided by pycom does not have the PIL (or Pillow) package. So to run my test I crafted the "image" to display outside the controller (on my computer) and just imported the generated python code.
Get and upload the image.py
- Run genimage.py with the 2in13-v2.bmp test file from the Waveshare repository.
- Upload image.py in flash
Upload the driver from Waveshare (with my PR to get MicroPython
Following files goest to flash/lib/waveshareepd (to be created before)
Upload the main.py
from waveshare_epd import epd2in13_V2 from image import image epd = epd2in13_V2.EPD() epd.init(epd.FULL_UPDATE) epd.Clear(0xFF) epd.display(image)