Start combining LED blinks into something useful - a message asking for help in case the astronauts on Code Rocket get into trouble!
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!
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: Complexity and organization
This example program uses simple concepts you’ve seen before, but it’s a much longer program! Don’t get overwhelmed by the number of lines of code; try to break down the concepts into pieces and understand each piece. Once you understand the pieces, it’s easier to ‘zoom out’ and look at the program as a whole.
Notice the use of comments and line breaks throughout this program. Remember that the computer doesn’t need line breaks, blank lines, or comments for the program to work - those are tools for humans. When you are tinkering with code, remember to leave yourself notes and comments so the code is overwhelming if you come back to it later.