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:
#include <Sparki.h> // include the sparki library
The Setup function happens exactly once, at the beginning of Sparki’s code:
#include <Sparki.h> // include the sparki library void setup() { }
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:
#include <Sparki.h> // include the sparki library void setup() { } void loop() { //code here repeats }
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!