-
Notifications
You must be signed in to change notification settings - Fork 10
Fixed Travis Errors and Disabled no-member #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import board | ||
from adafruit_slideshow import PlayBackOrder, SlideShow | ||
import pulseio | ||
from adafruit_slideshow import PlayBackOrder, SlideShow | ||
|
||
# Create the slideshow object that plays through once alphabetically. | ||
#pylint: disable=no-member | ||
slideshow = SlideShow(board.DISPLAY, pulseio.PWMOut(board.TFT_BACKLIGHT), folder="/", | ||
loop=False, order=PlayBackOrder.ALPHABETICAL) | ||
#pylint: enable=no-member | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove this. |
||
|
||
while slideshow.update(): | ||
pass |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import board | ||
from adafruit_slideshow import SlideShow, PlayBackDirection | ||
import touchio | ||
import pulseio | ||
import touchio | ||
from adafruit_slideshow import SlideShow, PlayBackDirection | ||
|
||
forward_button = touchio.TouchIn(board.TOUCH4) | ||
back_button = touchio.TouchIn(board.TOUCH1) | ||
|
||
brightness_up = touchio.TouchIn(board.TOUCH3) | ||
brightness_down = touchio.TouchIn(board.TOUCH2) | ||
|
||
#pylint: disable=no-member | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above. |
||
slideshow = SlideShow(board.DISPLAY, pulseio.PWMOut(board.TFT_BACKLIGHT), folder="/", | ||
auto_advance=False, dwell=0) | ||
#pylint: enable=no-member | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above. |
||
|
||
while True: | ||
if forward_button.value: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please place this below the imports.