Skip to content

savosaicic/piscine-embedded

Repository files navigation

42Chips — Piscine Embedded

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

Toolchain

  • Compiler: avr-gcc
  • Obj copy: avr-objcopy.hex
  • Flashing: avrdude

Build and flash

# Build ELF + HEX
make hex

# Flash to board
make flash PORT=/dev/ttyUSB0 BAUD=115200

# Clean
make clean

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published