Exercises from my two-week embedded C bootcamp by 42chips at 42 Paris, targeting a custom board based on the ATmega328P.
/
├─ 00-basics/ # GPIO, LED, button, debouncing
├─ 01-timers/ # Timers, delays, PWM intro
├─ 02-uart/ # UART init/tx/rx (+ ISR)
├─ 03-rgb-pwm/ # RGB control, color wheel
├─ 04-interrupts/ # External + timer interrupts
├─ 05-analog/ # ADC (8/10-bit), sensors
├─ 06-i2c/ # I2C master, AHT20 example
├─ 07-eeprom/ # EEPROM dump + tiny CLI
├─ 08-spi/ # SPI master, LED patterns
└─ 09-7segment/ # IO expander + 7-seg multiplex
- Compiler:
avr-gcc
- Obj copy:
avr-objcopy
→.hex
- Flashing:
avrdude
# Build ELF + HEX
make hex
# Flash to board
make flash PORT=/dev/ttyUSB0 BAUD=115200
# Clean
make clean