7/23/22, 9:41 PM
Grove - Chainable RGB LED - Seeed Wiki
https://wiki.seeedstudio.com/Grove-Chainable_RGB_LED/
12/29
109
# test pattern 5 magenta
110
grovepi
.chainableRgbLed_test(pin, numleds, t
111
time
.sleep(
1
)
112
113
114
"Test 2g) Test Patterns - yellow"
115
116
# test pattern 6 yellow
117
grovepi
.chainableRgbLed_test(pin, numleds, t
118
time
.sleep(
1
)
119
120
121
"Test 2h) Test Patterns - white"
122
123
# test pattern 7 white
124
grovepi
.chainableRgbLed_test(pin, numleds, t
125
time
.sleep(
1
)
126
127
128
# pause so you can see what happened
129
time
.sleep(
2
)
130
131
# reset (all off)
132
grovepi
.chainableRgbLed_test(pin, numleds, t
133
time
.sleep(.
5
)
134
135
136
"Test 3a) Set using pattern - this led
137
138
# change color to red
139
grovepi
.storeColor(
255
,
0
,
0
)
140
time
.sleep(.
5
)
141
142
# set led 3 to red
143
grovepi
.chainableRgbLed_pattern(pin, thisLed
144
time
.sleep(.
5
)
145
146
# pause so you can see what happened
147
time
.sleep(
2
)
148
149
# reset (all off)