This project is a very basic demonstration of how to compile and flash an
Arduino Uno program utilising the avr-*
tooling in the context
of a Nix flake.
- Configure nix (this is an exercise left to the reader)
- Install with the nix-installer
- Configure nix-direnv
direnv allow
in project repository- Plug in an Arduino & find its port
- Change
ARDUINO_PORT
in.env
file (e.g.ARDUINO_PORT=/dev/ttyACM0
) make program
Programming Arduino Uno in pure C