for now requires nightly rust 2021-01-07 to build:
rustup override set nightly-2021-01-07
you can cargo r
with an arduino uno connected and it should automatically flash to it
in Cargo.toml:
# Workaround to fix compiler panics
# Rahix/avr-hal#131
[profile.dev.package.compiler_builtins]
overflow-checks = false
can't %
with >=32bit integers because of rust-lang/rust#82242
so I guess we just use u16/i16
if avrdude can't find the arduino serial port change $SERIAL
in uno-runner.sh
to either /dev/ttyACM0
or /dev/ttyACM1