Skip to content

schnoog/eInk-micropython

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 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 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) tended to use 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

  • Python 100.0%