Linted via pylint

This commit is contained in:
Alec Delaney 2022-01-14 20:40:24 -05:00
parent 2a2df3403b
commit dbfacc913d

View file

@ -155,9 +155,9 @@ while True:
last_read = time.monotonic()
if latest_event.pressed and latest_event.key_number != last_event.key_number:
# Respond to the buttons
if (latest_event.key_number == BUTTON_RIGHT):
if latest_event.key_number == BUTTON_RIGHT:
direction = -1
elif (latest_event.key_number == BUTTON_LEFT):
elif latest_event.key_number == BUTTON_LEFT:
direction = 1
elif (latest_event.key_number == BUTTON_UP) and speed < 10:
speed += 1
@ -168,4 +168,5 @@ while True:
elif (latest_event.key_number == BUTTON_B) and brightness > 0.025:
brightness -= 0.025
last_event = latest_event
latest_event = Event(key_number=8) # An imaginary key number that doesn't exist!
latest_event = Event(key_number=8) # An imaginary key number that doesn't exist!