Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chevdor/eink
E-Ink, E-Paper display driver for Micropython and ESP32
https://github.com/chevdor/eink
Last synced: 24 days ago
JSON representation
E-Ink, E-Paper display driver for Micropython and ESP32
- Host: GitHub
- URL: https://github.com/chevdor/eink
- Owner: chevdor
- Created: 2018-05-20T17:10:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-09T10:29:29.000Z (almost 3 years ago)
- Last Synced: 2024-08-05T00:07:04.053Z (3 months ago)
- Language: Python
- Size: 5.72 MB
- Stars: 14
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
- awesome-micropython - eink - An eInk, ePaper display driver for MicroPython and ESP32. (Libraries / Display)
README
= E-INK for micropython
== Intro
This repo mainly focuses on the Waveshare 2.9inch Black/white/Red Paper display over an SPI bus. It fixes some issues from the original repo and mainly splits the E-Paper display part and the Framebuffer goodies.
Although it should work with an ESP8266, my initial tests showed issues due to the limited amount of memory. Most of my tests are based on the ESP32.
== Acknowledge
Many thanks to the authors of the following:
- https://github.com/mcauser/micropython-waveshare-epaper
- https://github.com/adafruit/micropython-adafruit-bitmap-font/releases== Usage
I recommend using ampy: https://github.com/adafruit/ampy
You will probably want to add the following to your `.bash_profile`:
echo "export AMPY_PORT=/dev/cu.SLAB_USBtoUART" >> ~/.bash_profile
echo "export AMPY_BAUD=115200" >> ~/.bash_profile
source ~/.bash_profileFirst you need to bring the modules to your ESP32:
ampy put fbdrawing.py
ampy put waveshare2in9b.pyThis will copy the files on your microcontroller. You can check:
ampy ls
$ ampy ls
waveshare2in9b.py
fbdrawing.pyIf something goes wrong, check your port and baudrate. You may also try to reboot your board. That helps in some cases.
Now using `minicom` or your tool of choice, you may copy/paste (CTRL+E with minicom to switch to paste mode, then CTRL+V to paste and CTRL+D to exit paste mode) one of the samples. Once the sample is loaded, run one of the tests:
test1()
You can now observe your display.
include::doc/ws2in9b.adoc[]