/soft-blink

A soft blink effect on the built-in LED on the Adafruit Feather M0 Proto written in Rust

Primary LanguageRustOtherNOASSERTION

Soft Blink

A soft blink effect for the onboard LED on the Adafruit Feather M0 Basic Proto written in Rust.

Setup

  1. First, clone the repository.

    git clone https://github.com/jwillikers/soft-blink.git
  2. Change to the project’s directory.

    cd soft-blink

Rust

  1. Install rustup and Rust.

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. Add Cargo’s directory to your PATH.

    fish_add_path ~/.cargo/bin
  3. Install the Rust toolchain for the ATSAMD21G18 microcontroller, an Arm Cortex-M0.

    rustup target add thumbv6m-none-eabi

hf2

Install the cargo-hf2 utility for flashing the board.

cargo install cargo-hf2

Development

  1. Build with the eponymous command.

    cargo build
  2. Double-click the onboard reset button on the Feather M0 Basic Proto.

  3. Flash the board by running cargo-hf2.

    cargo hf2 --release

Todo

  • Improve power consumption by using sleep modes and disabling unused peripherals.

  • Use RTIC making it easier to create other tasks.

Contributing

Contributions in the form of issues, feedback, and even pull requests are welcome. Make sure to adhere to the project’s Code of Conduct.

Open Source Software

This project is built on the hard work of countless open source contributors. Several of these projects are enumerated below.

Code of Conduct

Refer to the project’s Code of Conduct for details.

License

This repository is licensed under the GPLv3, a copy of which is provided in the license file.

© 2021 Jordan Williams

Authors