Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ayoy/micropython-waveshare-epd
Waveshare E-Paper Display driver for devices running Pycom-flavored MicroPython
https://github.com/ayoy/micropython-waveshare-epd
Last synced: about 2 months ago
JSON representation
Waveshare E-Paper Display driver for devices running Pycom-flavored MicroPython
- Host: GitHub
- URL: https://github.com/ayoy/micropython-waveshare-epd
- Owner: ayoy
- License: mit
- Created: 2018-03-30T08:00:17.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-03T12:53:38.000Z (almost 7 years ago)
- Last Synced: 2024-04-22T12:33:37.035Z (9 months ago)
- Language: Python
- Homepage:
- Size: 43 KB
- Stars: 49
- Watchers: 5
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - micropython-waveshare-epd - Waveshare ePaper Display driver for devices running Pycom-flavored MicroPython. (Libraries / Display)
README
# Waveshare E-Paper Display library for Pycom MicroPython
This library is based on the original Waveshare library for Raspberry Pi, available [here](https://www.waveshare.com/wiki/1.54inch_e-Paper_Module_(B)).
At the moment it supports 1.54" Waveshare two-color E-Paper Display only.
## Features
* Drawing lines (horizontal, vertical and between two arbitrary points)
* Drawing rectangles and circles, both regular and filled
* Drawing images from raw data (`list` or `bytes` object)
* Drawing images from BMP files (Windows-style 1-color bitmap)
* Adjusting screen orientation
* Power saving mode (~30uA)![demo](https://kapustacc.files.wordpress.com/2018/03/epd-goinvent.gif)
## Usage
### Initializing
The e-paper display uses 6 data lines for communication:
reset = Pin('P19')
dc = Pin('P20')
busy = Pin('P18')
cs = Pin('P4')
clk = Pin('P21')
mosi = Pin('P22')epd = epd1in54b.EPD(reset, dc, busy, cs, clk, mosi)
### Displaying data
Consult `main.py` for an example usage.
In order to use fonts, copy them to `epd/lib` directory, or (recommended) freeze them in firmware. See [this blog post](https://kapusta.cc/2018/03/31/epd/) for more info on how to do it.