Skip to content

Commit

Permalink
New option for Waveshare 2.66 display
Browse files Browse the repository at this point in the history
ADD: Display: Waveshare 2.66
BUG: Fix unknown FULL_UPDATE and PART_UPDATE
BUG: Fix unknown displayPartBaseImage and displayPartial
CHG: Adjusting the text alignment and text size
  • Loading branch information
lightisfaster authored Nov 19, 2021
1 parent 919c757 commit bc6ec85
Show file tree
Hide file tree
Showing 3 changed files with 509 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,15 @@ def create_config(config_file=None):
except ImportError:
logger.warning("Waveshare display library not installed.")
sys.exit("Exiting...")

# Display - Waveshare 2.66 is 296 * 152 pixels
elif "waveshare2in66" in conf["atm"]["display"]:
try:
from waveshare_epd import epd2in66
WAVESHARE = epd2in66.EPD()
except ImportError:
logger.warning("Waveshare display library not installed.")
sys.exit("Exiting...")

# Display - No configuration match
else:
Expand Down
Loading

0 comments on commit bc6ec85

Please sign in to comment.