





Start with the LED
Lesson 1 blinks pin 13 twice: once with
digitalWrite, once through DDRB and PORTB. Then you run both versions in a browser lab that executes the compiled program.
Course map
Three lessons are written. The next two modules are planned and not written yet.
Sources
- Arduino reference: digitalWrite: HIGH sets an output pin to 5 V on 5 V boards
- ArduinoCore-avr, variants/standard/pins_arduino.h: LED_BUILTIN is 13; pin 13 is PB5
- Microchip ATmega328P datasheet DS40002061A: 28-pin PDIP pinout (p12); PORTB (p100)
- Arduino reference: delay
- Arduino reference: analogRead
- Bedillion & Muci-Küchler, ASEE 2018: SDSM&T ME-265, 25 students
- Arduino reference: analogWrite: values 0 to 255