Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add waveshare 2in9d display #73

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,16 @@ def create_config(config_file=None):
print("Waveshare2in7 library not installed.")
sys.exit("Exiting...")

# Display - Waveshare 2.9 (D) is 296 * 128 pixels
elif "waveshare2in9d" in conf["atm"]["display"]:
try:
from waveshare_epd import epd2in9d
WAVESHARE = epd2in9d.EPD()
except ImportError:
logger.warning("Waveshare display library not installed.")
print("Waveshare2in9d library not installed.")
sys.exit("Exiting...")

# Display - Inky pHAT
elif "inkyphat" in conf["atm"]["display"]:
try:
Expand Down
Loading