1
SKILL
LEVEL
Ringo Educational Guide Rev04.1 ~ Plum Geek
Using Ringo’s Color Lights
Now that you’ve mastered controlling Ringo’s color lights, go ahead and experiment.
Here are some suggestions and challenges.
1) What happens if you play with the argument inside the
delay();
function? What
happens if you make the delays different values?
2) What happens if you use the
SetPixelRGB()
function to control pixels at different
addresses? Can you make Ringo’s bottom lights work without any further hints from
me?
3) Good job! You made the bottom lights work! What happens if you now take
Ringo into a dark room and place him on different surfaces while the bottom lights
are lit up? (Hint, look for something semi-opaque, a clear table top, and a white
surface and see what happens).
4) What color do you get if you make all three Red, Green, and Blue values the
same?
5) What happens if you run this code:
Experiments & Challenges:
void loop(){
SetPixelRGB( 4, 255, 255, 255); //set pixel 4 (Right eye)
SetPixelRGB( 5, 255, 255, 255); //set pixel 5 (Left eye)
RefreshPixels();
}
Woah! That’s BRIGHT!!! Now take Ringo into a dark room. What do you see
projected on the walls of the room? Why is this happening?
6) Remember the example where we made Ringo’s eyes flash between two colors?
Can you make his eyes flash between three different colors now? What about ten
colors? Twenty? Try lots of different mixes of color and different delays.
7) Write the code on your own to turn on any NeoPixel then wait a
short delay. How do you now make it turn back off? Can you make
a certain NeoPixel blink on and off repeatedly?
the code contained within its curley braces. Once it reaches the end, it “loops” and
does it all again. This loop function is where you’ll be writing most of your code
for a while (you’ll eventually start writing your own stand-alone functions). Forget
about the word “
void
” at the start of the line for now. Just know that it needs to be
there and you don’t need to know why at this point.