File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ def brightness_cycle():
64
64
65
65
brightness = brightness_cycle ()
66
66
67
- cycle_speed_initial = 0.3
67
+ CYCLE_SPEED_INITIAL = 0.3
68
68
cycle_speed_start = time .monotonic ()
69
- cycle_speed = cycle_speed_start + cycle_speed_initial
69
+ cycle_speed = cycle_speed_start + CYCLE_SPEED_INITIAL
70
70
71
71
rainbow = None
72
72
touch_A0_state = None
@@ -85,14 +85,14 @@ def brightness_cycle():
85
85
if now >= cycle_speed :
86
86
next (rainbow )
87
87
cycle_speed_start = now
88
- cycle_speed = cycle_speed_start + cycle_speed_initial
88
+ cycle_speed = cycle_speed_start + CYCLE_SPEED_INITIAL
89
89
90
90
if not touch_A1 .value and touch_A1_state is None :
91
91
touch_A1_state = "ready"
92
92
if touch_A1 .value and touch_A1_state == "ready" :
93
- cycle_speed_initial = next (cycle_speeds )
93
+ CYCLE_SPEED_INITIAL = next (cycle_speeds )
94
94
cycle_speed_start = now
95
- cycle_speed = cycle_speed_start + cycle_speed_initial
95
+ cycle_speed = cycle_speed_start + CYCLE_SPEED_INITIAL
96
96
touch_A1_state = None
97
97
98
98
if not touch_A2 .value and touch_A2_state is None :
You can’t perform that action at this time.
0 commit comments