edgebadge
cargo install edgebadge

edgebadge

Target atsamd microcontrollers using Rust

by atsamd-rs

0.6.0 (see all)License:MIT OR Apache-2.0
cargo install edgebadge
Readme

Adafruit EdgeBadge Board Support Crate

This crate provides a type-safe API for working with the Adafruit EdgeBadge board.

Prerequisites

Uploading an example

Check out the repository for examples:

https://github.com/atsamd-rs/atsamd/tree/master/boards/edgebadge/examples

  • Be in this directory cd boards/edgebadge

  • Put your device in bootloader mode usually by hitting the reset button twice.

  • Build and upload in one step

    $ cargo hf2 --release --example blinky_basic Finished release [optimized + debuginfo] target(s) in 0.19s Searching for a connected device with known vid/pid pair. Trying Ok(Some("Adafruit Industries")) Ok(Some("PyBadge")) Flashing "/Users/User/atsamd/boards/edgebadge/target/thumbv7em-none-eabihf/release/examples/blinky_basic" Finished in 0.079s $

Note some examples will tell you they need more features enabled

$ cargo hf2 --release --example neopixel_button
error: target `neopixel_button` in package `edgebadge` requires the features: `unproven`
Consider enabling them by passing, e.g., `--features="unproven"`

Just follow the instructions to add --features like

cargo hf2 --release --example neopixel_button --features="unproven"
    Finished release [optimized + debuginfo] target(s) in 0.09s
    Searching for a connected device with known vid/pid pair.
    Trying  Ok(Some("Adafruit Industries")) Ok(Some("PyBadge"))
    Flashing "/Users/User/atsamd/boards/edgebadge/target/thumbv7em-none-eabihf/release/examples/neopixel_button"
    Finished in 0.167s
$

GitHub Stars

383

LAST COMMIT

2mos ago

MAINTAINERS

2

CONTRIBUTORS

87

OPEN ISSUES

30

OPEN PRs

22
VersionTagPublished
0.6.0
2yrs ago
0.5.1
2yrs ago
0.5.0
2yrs ago
0.4.0
2yrs ago
No alternatives found
No tutorials found
Add a tutorial