Skip to content

vquintin/embassy-uno

Repository files navigation

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

How to run the example

  • 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 flakes
    

    in ~/.config/nix/nix.conf

    (See https://nixos.wiki/wiki/Flakes)

  • Setup the environment:

    Run:

    nix develop
    

    to 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 --release
    

    cargo will compile + flash the arduino.

    You may need to put your user (if not already done) in the plugdev group to flash the arduino.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors