Rust project for the SparkFun ProMini 5v that implements i2c slave. Master complementary repo is here.
I'm flashing it via USB programmer and serial interface for it works for me with 4800 baud in serial monitor and 9600 on arduino board.
RAVEDUDE_PORT
is configure with direnv .envrc
file
-
Specify
RAVEDUDE_PORT
in.envrc
ifdirenv
is used. If you on linux with nix, change env var inflake.nix
. -
Install prerequisites as described in the
avr-hal
README (avr-gcc
,avr-libc
,avrdude
,ravedude
). -
Run
cargo build
to build the firmware. -
Run
cargo run
to flash the firmware to a connected board. Ifravedude
fails to detect your board, check its documentation at https://crates.io/crates/ravedude. -
ravedude
will open a console session after flashing where you can interact with the UART console of your board.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.