Blink the rocket’s blaster LEDs in unison, like if you were blasting up a piece of space debris.
The code in the editor below already works Just plug in your Code Rocket and press upload to see what it does! Tinker with it and make changes to see what each line of code controls.
Watch the videos for line-by-line explanation of how the example program works. Then you'll be ready to make some changes of your own!
Can you complete the challenge? Make edits to the code and upload them to see if your code experiment works! Don't get discouraged if you don't get it at first - thing of the challenge as a puzzle to solve!
These are the new code concepts covered in this example program. To become a great coder, read through these concepts to learn new vocabulary.
New Concept: Speedy Commands
If you watch the example program run, the lights appear to turn on and off in perfect unison. They actually don’t. Your program is ‘executed’, or run, from the top of the loop to the bottom of the loop, line by line. It’s just that the processor on your Code Rocket has the ability to execute thousands of lines of code per second, so it appears that things happen simultaneously.