Skip to content

Commit

Permalink
Merge pull request #44 from lightisfaster/Waveshare2in13d
Browse files Browse the repository at this point in the history
New option for Waveshare 2.13 (D) display
  • Loading branch information
21isenough authored Sep 2, 2021
2 parents a4ac76d + 42697ca commit 378b004
Show file tree
Hide file tree
Showing 3 changed files with 505 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ def create_config(config_file=None):
logger.warning("Papirus display library not installed.")
sys.exit("Exiting...")


# Display - Waveshare 2.13 is 250 * 122 pixels
if "waveshare" in conf["atm"]["display"]:
try:
Expand All @@ -135,6 +134,15 @@ def create_config(config_file=None):
logger.warning("Waveshare display library not installed.")
sys.exit("Exiting...")

# Display - Waveshare 2.13 (D) is 212 * 104 pixels
if "waveshare2in13d" in conf["atm"]["display"]:
try:
from waveshare_epd import epd2in13d
WAVESHARE = epd2in13d.EPD()
except ImportError:
logger.warning("Waveshare display library not installed.")
sys.exit("Exiting...")

# API URL for coingecko
COINGECKO_URL_BASE = "https://api.coingecko.com/api/v3/"

Expand Down
Loading

0 comments on commit 378b004

Please sign in to comment.