Blink Both Rocket Blasters

Blink the rocket’s blaster LEDs in unison, like if you were blasting up a piece of space debris.

Code

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.

Walkthrough Videos

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!

Challenges

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!

Concepts

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, block by block. 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.

Quiz

If you're having trouble, try to run an experimental program or look at the example code to help you find the answer.

1. What will change if you move the delay(1000); from the last line of the loop to the first line of the loop?