File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
# several copies of the functions 'blink', 'input_poll', or 'state'
7
7
# should be straightforward with changes to names and objects.
8
8
9
+ import asyncio
9
10
import board
10
- import time
11
11
import adafruit_ticks
12
12
import digitalio
13
13
from adafruit_debouncer import Debouncer
14
14
import neopixel
15
- import asyncio
15
+
16
16
17
17
# Import library modules, as is tradition
18
18
34
34
# Define the various colors according to preference and set them into
35
35
# a dictionary for later retrieval. (Blue is not used in this code.)
36
36
37
- class color :
37
+ class Color :
38
38
def __init__ (self , initial_value ):
39
39
self .value = initial_value
40
40
@@ -86,7 +86,7 @@ async def state(swapper, color):
86
86
87
87
async def main ():
88
88
89
- color . value = 1
89
+ color = Color ( 1 )
90
90
COLORS .get (color )
91
91
92
92
# Sets the color the led will first show on start
You can’t perform that action at this time.
0 commit comments