updating slideshow_display.py to work with displayio management of the backlight

This commit is contained in:
siddacious 2019-07-03 09:58:35 -07:00
parent 271e4a4858
commit e6fe5c69d2

View file

@ -1,12 +1,10 @@
import board
from adafruit_slideshow import PlayBackOrder, SlideShow, PlayBackDirection
import audioio
import pulseio
import touchio
# Create the slideshow object that plays through once alphabetically.
slideshow = SlideShow(board.DISPLAY, pulseio.PWMOut(board.TFT_BACKLIGHT), folder="/",
loop=True, order=PlayBackOrder.ALPHABETICAL)
slideshow = SlideShow(board.DISPLAY)
# Create the touch objects on the first and last teeth
back_button = touchio.TouchIn(board.TOUCH1)