// FREE MINI-COURSE · C++

Arduino C++ Series

Arduino Coding in 20 Seconds — The C++ you actually need for Arduino, one idea per reel.

8 of 9 lessons out · next: millis() vs delay()

▶ Start lesson 1
  1. 01 5 lines of C++ → a real LED turns ONThe two functions every Arduino sketch has, and pinMode / digitalWrite to drive a pin. EP.03 · 20 s also in LED Series
  2. 02 Make it BLINKHow delay(ms) controls timing, and why very short delays look like dimming. EP.05 · 20 s also in LED Series
  3. 03 Make it FADE (PWM)Count a variable from 0 to 255 with a for loop and feed it to analogWrite. EP.06 · 20 s also in LED Series
  4. 04 Control it with a BUTTONpinMode(INPUT_PULLUP), digitalRead a button, and decide with if / else. EP.10 · 20 s also in LED Series
  5. 05 Make it a TOGGLEStore a true/false state in a bool and flip it on each button press. EP.11 · 20 s also in LED Series
  6. 06 Serial.print: see your knob's numberPrint values to the Serial Monitor to debug a sketch. EP.61 · 24 s also in LED Series
  7. 08 LED chaser (running light)An array keeps a list of values in one name; leds[i] picks one by its index, starting at 0. EP.18 · 20 s also in LED Series
  8. 09 Speed knob: potentiometer + analogReadanalogRead(A0) turns 0–5 V on an analog pin into a number 0–1023 (10-bit) you can use in your code. EP.22 · 20 s also in LED Series