Turn on a Rocket LED

Before any mission, it’s important to test each component of a space ship and ensure it’s working correctly. In these first few projects, you’ll learn how each component on Code Rocket works and how you can control them with code.

To upload your code, click the Upload button with your board plugged in, then select the “FT230….” option from the popup and click “Connect”.

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? Change the code in your code editor above. Upload your code to see the effect when you're finished. Complete a challenge? Check it off the list!

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: Getting Used to the Code Editor

When you're writing code, you need a program to do that, just like you need a program to write an essay. The code editor has the basic tools you need to write and upload your code.

You can always hit the “Refresh” button of your web browser to reload the page and bring back the example code. Beware! Once you refresh, any custom code or changes you made will be gone.

In the middle of the code editor top bar, you have the "Upload" button. This button will send your code from the editor to your board. Make sure you press this button after each update to your code, or your code won't be running!