Addressable RGB LED strips are available in many shapes and sizes to add color and illumination to Arduino projects.
Strips of a few to hundreds of LEDs
Shorter "sticks," "rings," and other shapes of 8 to 20 LEDs
With only one data connection per strip, each LED "pixel" can be controlled in 256 levels of red, green, and blue. (Plus power and ground connections.)
The software that generates the data signal to control addressable LEDs is complex, but Codecraft and Arduino make this very easy to use!
Optional: Review Adafruit's "The Magic of NeoPixels"
Use the Codecraft "RGB LED Strip pin" block to control the RGB LED strip.
Create a Codescraft program to turn on and off each of the RGB LEDs on the strip following this example:
The "count with" block is in the "Control" menu. It increments a variable ("i") in this case from 0 to 7 and we use "i" as the argument in the "RGB LED Strip" block to select each of the 8 LEDs in turn.
The "RGB LED Strip pin" block is in the "Grove Digital" menu. Be sure to select the block that ends with "Number."
Use the "Variable" menu to drag the "i" variable into the "Number" argument on the RGB LED Strip pin block.
Things to try:
Change the program to use different colors and sequences.
There are several Arduino libraries you can consider to use to control the RGB LED strip.
Codecraft uses the popular Adafruit "NeoPixel" library to implement the "RGB LED Strip" blocks.
Review the Sparkfun Addressable LED Strip Hookup Guide.
Experiment with one of the NeoPixel example sketches such as "strandtest."
(File ... Examples ... Adafruit NeoPixel ... strandtest)
Modify this code to match our LED and connection:
#define LED_PIN 2
#define LED_COUNT 8
Create an Arduino sketch that uses the RGB LED strip