Programming Patterns
Serial, millis() timing, arrays, loops, interrupts and I²C.
- Talking to the Serial Monitor
Print values, read typed commands, and avoid the baud-rate and line-ending traps.BeginnerSerial - Non-Blocking Timing with millis()
Blink two LEDs at independent rates without delay(), using rollover-safe elapsed-time checks.IntermediateLEDResistor - Arrays for Pins and Patterns
Store pin numbers and timing in arrays to drive five LEDs with a few lines of code.BeginnerLEDResistor - For Loops: Fades and Repeats
Use for loops to fade an LED in and out and to repeat a blink a set number of times.BeginnerLEDResistor - Hardware Interrupts
Catch button presses the instant they happen on pins 2 and 3, with safe ISR and shared-variable rules.AdvancedPushbuttonSerial - I²C Basics and a Bus Scanner
Wire an I²C module to A4/A5 and find its address with a scanner sketch before writing any driver code.IntermediateI2C deviceSerial