A Python emulator for E-Paper Display (EPD) screens. Renders the display output in a Tkinter window or a Flask web server so you can develop and test EPD code without the physical hardware.
- Tkinter (GUI window) or Flask (browser) rendering, switchable per session.
- Color and monochrome display support.
- Configurable via JSON files for different EPD models.
- Normal and reverse orientation modes.
- Configurable refresh interval.
epd2in13, epd2in9, epd4in2, epd5in83, epd6in2, epd7in5, epd9in7, epd10in3, epd11in6, epd12in48
git clone https://github.com/infinition/EPD-Emulator.git
cd EPD-Emulator
pip install -r requirements.txtRequirements: Pillow, Flask, tk.
The emulator is called from your own script, not run directly. A demo is included:
python "waveshare_emulator demo.py"In your script, initialize the emulator:
import epdemulator
epd = epdemulator.EPD(
config_file="epd2in13",
use_tkinter=True,
use_color=False,
update_interval=0.5,
reverse_orientation=False
)Parameters:
| Parameter | Description |
|---|---|
config_file |
EPD model name (no extension) |
use_tkinter |
True for GUI window, False for Flask |
use_color |
True for color display, False for monochrome |
update_interval |
Screen refresh delay in seconds |
reverse_orientation |
True to flip the display |
MIT. See LICENSE.