/ examples / slideshow_simpletest.py
slideshow_simpletest.py
 1  import board
 2  import pulseio
 3  from adafruit_slideshow import PlayBackOrder, SlideShow
 4  
 5  # pylint: disable=no-member
 6  
 7  # Create the slideshow object that plays through once alphabetically.
 8  slideshow = SlideShow(
 9      board.DISPLAY,
10      pulseio.PWMOut(board.TFT_BACKLIGHT),
11      folder="/",
12      loop=False,
13      order=PlayBackOrder.ALPHABETICAL,
14  )
15  
16  while slideshow.update():
17      pass