Recap of Basic Code


What We’ve Covered So Far

All Sparki sketches need a Sparki library. Here’s how you include Sparki’s library:

The Setup function happens exactly once, at the beginning of Sparki’s code:

Every single Sparki sketch needs a setup function.

Code in the Loop function happens after setup over and over again as long as Sparki is on:

The loop function is where you will spend most of your time writing code.  

Next Step:

Now that you’ve learned about the basic parts to Sparki’s code we’ll go into a little more detail about the weird symbols you see everywhere in the code. They all mean something, I promise!

Next Lesson – Comments and Syntax