updating slideshow_display.py to work with displayio management of the backlight
This commit is contained in:
parent
271e4a4858
commit
e6fe5c69d2
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue