Rocket Morse Code: Part One

Start combining LED blinks into something useful - a message asking for help in case the astronauts on Code Rocket get into trouble!

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 challenges? Check the box next to the challenge to 'mark it off' once it's complete!


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: 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 throughout this program. Remember that the computer doesn’t need 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 not overwhelming if you come back to it later.

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. Which of the following affects how the computer reads your program?