Crates.io | pygamer |
lib.rs | pygamer |
version | |
source | src |
created_at | 2019-08-26 23:42:37.58049 |
updated_at | 2024-12-11 14:04:50.777703 |
description | Board Support crate for the Adafruit PyGamer |
homepage | |
repository | https://github.com/atsamd-rs/atsamd |
max_upload_size | |
id | 159934 |
Cargo.toml error: | TOML parse error at line 22, column 1 | 22 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
This crate provides a type-safe API for working with the Adafruit PyGamer board.
Check out the repository for examples: https://github.com/atsamd-rs/atsamd/tree/master/boards/pygamer/examples
rustup target add thumbv7em-none-eabihf
cd boards/pygamer
The .cargo/config
in this bsp is preset with hf2-cli
as a runner
. This means you can use cargo run to both cargo build and attempt to upload:
$ cargo run --release --example blinky_basic
Or even better just your ide's "run" button or hotkey and cargo run will build and upload.
Note some examples will tell you they need more features enabled
$ cargo run --release --example neopixel_easing
error: target `neopixel_easing` in package `pygamer` requires the features: `math`
Consider enabling them by passing, e.g., `--features="math"`
Just follow the instructions to add --features like
cargo run --release --example neopixel_easing --features="math"
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("PyGamer"))
Flashing "/Users/User/atsamd/boards/pygamer/target/thumbv7em-none-eabihf/release/examples/neopixel_easing"
Finished in 0.167s
$