191
192 # change color to green
193 grovepi.storeColor(0,255,0)
194 time.sleep(.5)
195
196 # set leds 7-10 to green
197 grovepi.chainableRgbLed_pattern(pin, thisLed
198 time.sleep(.5)
199
200 # pause so you can see what happened
201 time.sleep(2)
202
203 # reset (all off)
204 grovepi.chainableRgbLed_test(pin, numleds, t
205 time.sleep(.5)
206
207
208 print "Test 4a) Set using modulo - all leds
209
210 # change color to black (fully off)
211 grovepi.storeColor(0,0,0)
212 time.sleep(.5)
213
214 # set all leds black
215 # offset 0 means start at first led
216 # divisor 1 means every led
217 grovepi.chainableRgbLed_modulo(pin, 0, 1)
218 time.sleep(.5)
219
220 # change color to white (fully on)
221 grovepi.storeColor(255,255,255)
222 time.sleep(.5)
223
224 # set all leds white
225 grovepi.chainableRgbLed_modulo(pin, 0, 1)
226 time.sleep(.5)
227
228 # pause so you can see what happened
229 time.sleep(2)
230
231 # reset (all off)