File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -155,9 +155,9 @@ def rotate(degrees):
155
155
last_read = time .monotonic ()
156
156
if latest_event .pressed and latest_event .key_number != last_event .key_number :
157
157
# Respond to the buttons
158
- if ( latest_event .key_number == BUTTON_RIGHT ) :
158
+ if latest_event .key_number == BUTTON_RIGHT :
159
159
direction = - 1
160
- elif ( latest_event .key_number == BUTTON_LEFT ) :
160
+ elif latest_event .key_number == BUTTON_LEFT :
161
161
direction = 1
162
162
elif (latest_event .key_number == BUTTON_UP ) and speed < 10 :
163
163
speed += 1
@@ -168,4 +168,5 @@ def rotate(degrees):
168
168
elif (latest_event .key_number == BUTTON_B ) and brightness > 0.025 :
169
169
brightness -= 0.025
170
170
last_event = latest_event
171
- latest_event = Event (key_number = 8 ) # An imaginary key number that doesn't exist!
171
+ latest_event = Event (key_number = 8 ) # An imaginary key number that doesn't exist!
172
+
You can’t perform that action at this time.
0 commit comments