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:
1 |
#include <Sparki.h> // include the sparki library |
The Setup function happens exactly once, at the beginning of Sparki’s code:
1 2 3 4 5 6 |
#include <Sparki.h> // include the sparki library void setup() { } |
Code in the Loop function happens after setup over and over again as long as Sparki is on:
1 2 3 4 5 6 7 8 9 10 11 |
#include <Sparki.h> // include the sparki library void setup() { } void loop() { //code here repeats } |