A soft blink effect for the onboard LED on the Adafruit Feather M0 Basic Proto written in Rust.
-
First, clone the repository.
git clone https://github.com/jwillikers/soft-blink.git
-
Change to the project’s directory.
cd soft-blink
-
Install rustup and Rust.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Add Cargo’s directory to your
PATH
.fish_add_path ~/.cargo/bin
-
Install the Rust toolchain for the ATSAMD21G18 microcontroller, an Arm Cortex-M0.
rustup target add thumbv6m-none-eabi
-
Build with the eponymous command.
cargo build
-
Double-click the onboard reset button on the Feather M0 Basic Proto.
-
Flash the board by running
cargo-hf2
.cargo hf2 --release
-
Improve power consumption by using sleep modes and disabling unused peripherals.
-
Use RTIC making it easier to create other tasks.
Contributions in the form of issues, feedback, and even pull requests are welcome. Make sure to adhere to the project’s Code of Conduct.
Refer to the project’s Code of Conduct for details.
This repository is licensed under the GPLv3, a copy of which is provided in the license file.
© 2021 Jordan Williams