Headlight On with Code Car

 
 

Turn on the LED light in the headlight position on your Code Car. Your car should look like the image above when your code is successfully uploaded!

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 below already works and is ready to upload! Upload the code to Code Car and see what happens. Then, you'll 'take apart' the code to learn what each piece of the program does.

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

How many can you complete? Change the code according to the challenges below. 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!