Skip to content

e-Ink library for Waveshare 4.3inch device on MicroPython

License

Notifications You must be signed in to change notification settings

dhallgb/eInk-micropython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MicroPython e-Ink library for Waveshare 4.3inch display.

This is a simple library for displaying information on a Waveshare 4.3 e-ink display from a device running Micropython. These are boards like the Pyboard, WiPy, or those based around the ESP8266 chip such as the Adafruit Feather Huzzah. As an alternative if you are running this on a full CPython implementation such as a Odroid or Raspberry Pi, see https://github.com/yy502/ePaperDisplay as that library has many more functions.

Conversion

It takes as its base a pure conversion from the Waveshare code. I used a few things to start the conversion from C code into Python:

...but mostly just hand-cranked the Python code whilst browsing the C routines.

Adaption to MicroPython and embedded devices

The original (and derivations) used excessive string concatenation which consumes memory space. In the constrained memory environment of the embedded systems on which MicroPython runs, memory is at a premium so I adapted the library for the following:

  • no extraneous operations, just the raw commands
  • constant binary strings for complete commands (eg. clear, update) where possible so not to use string concatenation
  • precalculated parity bytes

About

e-Ink library for Waveshare 4.3inch device on MicroPython

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages