Let's start! Step by step
Blink, blink!
Let's get down to business!
Before doing anything, you need to connect your CircuitPet to your computer's USB port and turn it on.
![random image](https://api.circuitmess.com/1664363303629-studio_87_1280x853.jpg)
Let's play with the LED!
The first thing we'll learn is how to code CircuitPet's LED to blink in different colors!
The first block that we need to find says "loop forever". This particular block ensures your code is executed all the time.
You can find the block in the "Loops" block section.
Drag and drop it onto the drawing area.
![](https://cdn.shopify.com/s/files/1/0552/3269/2430/files/Screenshot_2023-06-28_135856.png?v=1687956899)
Look for the "LED set color" block in the I/O block section.
Because the LED will light up first in red, set the value of red to 255 (the maximum) and the values of the other colors to 0.
![](https://cdn.shopify.com/s/files/1/0552/3269/2430/files/Screenshot_2023-06-28_140026.png?v=1687957037)
Between red and the other color that will light up, we'll make a pause of 1 second.
![](https://cdn.shopify.com/s/files/1/0552/3269/2430/files/Screenshot_2023-06-28_140150.png?v=1687957086)
Duplicate the I/O block and place it underneath the time block.
Because the LED will light up green this time, set the value of red to 0 and the value of green to 255.
![](https://cdn.shopify.com/s/files/1/0552/3269/2430/files/Screenshot_2023-06-28_140249.png?v=1687957133)
Don't forget the time block.
![](https://cdn.shopify.com/s/files/1/0552/3269/2430/files/Screenshot_2023-06-28_140348.png?v=1687957188)
Repeat the process once again, this time for blue.
![](https://cdn.shopify.com/s/files/1/0552/3269/2430/files/Screenshot_2023-06-28_140425.png?v=1687957246)
Now, hit the big red "Run" button and watch the LED change its color.