This repository contains an embassy example for the arduino UNO. It uses the avr-hal implementation of embedded-hal abstractions.
The repository contains a single somewhat big example with:
- timer
- gpio interrupts
- joins/selects
- adc interrupts
- pwm
-
You need to install the nix package manager (works best on linux): https://nixos.org/download/
-
You need to enable flakes for nix:
experimental-features = nix-command flakesin
~/.config/nix/nix.conf -
Setup the environment:
Run:
nix developto download the dependencies and setup the environment (it will take some time the first time).
-
Run the programs on your arduino: Run the program with cargo, the rust build tool, e.g.:
cargo run --releasecargo will compile + flash the arduino.
You may need to put your user (if not already done) in the
plugdevgroup to flash the arduino.