Code — remember and decide.
All code is made of what two things?
REMEMBER — Save values in labeled “boxes” — variables.
DECISIONS — If something is true, then do something. Else…
Set a variable vs. check a variable?
REALLY — a = 5; — Set a to 5.
REALLY-REALLY? — a == 5 — Is a equal to 5?
What are the two main Arduino code “blocks”?
INIT — setup() runs once at startup/reset.
RUN — loop() repeats, running its instructions in order.
HOW (?!) do we write code? — Three points
DOCUM — entation. Use // to save notes.
MEANING — Give variables meaningful names.
SIMPLE — Keep loop() in a human-readable form.