Skip to content

infinition/EPD-Emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EPD-Emulator

License Python Buy Me a Coffee

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.

EPD-Emulator demo


Features

  • 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.

Supported models (excerpt)

epd2in13, epd2in9, epd4in2, epd5in83, epd6in2, epd7in5, epd9in7, epd10in3, epd11in6, epd12in48


Installation

git clone https://github.com/infinition/EPD-Emulator.git
cd EPD-Emulator
pip install -r requirements.txt

Requirements: Pillow, Flask, tk.


Usage

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

Star History

Star History Chart

License

MIT. See LICENSE.

About

EPD Emulator for simulating EPD (E-Paper Display) screens, useful for development and testing purposes. It supports both Tkinter and Flask for display rendering, and it can emulate color as well as monochrome displays.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages