0PricingLogin
Arduino & IoT Academy · Lesson

setup() Runs Once

The startup block where you prepare pins and serial.

Two Blocks, Every Sketch

Every Arduino program is built from two functions. The first one is setup(), and getting it right makes everything else click. 🙂

Runs Exactly Once

The big idea: setup() runs a single time, right after your board powers on or resets. It never repeats on its own.

All lessons in this course

  1. setup() Runs Once
  2. loop() Runs Forever
  3. Comments & Clean Sketches
  4. Compile Errors & How to Read Them
← Back to Arduino & IoT Academy