Rocket Morse Code: Part Two

Send out soundwaves with the ‘Save Our Ship’ Morse code message through the speaker on your rocket in case there is trouble when landing on a new planet.

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? Change the code in the editor above, then upload it to your Code Rocket and see if you got the result. Check the box next to the challenge to 'mark it off' once it's complete. Don't stop here, keep experimenting with the code!


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: One challenge, many solutions

In programming, there are many approaches to one challenge or problem. Here, you’re sending the same Morse code message as you did in the last project, but using different capabilities on Code Rocket to do it. As you building your coding skills, you may think of new ways to solve a problem that you didn’t think of before. There isn’t just one ‘right’ way to solve a challenge, so get creative! Who knows, you may find a way nobody has thought of before.

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. How would you double the speed of your Morse code message?