pyportal

Crates.iopyportal
lib.rspyportal
version0.10.2
sourcesrc
created_at2019-05-04 22:49:11.414367
updated_at2024-10-18 20:15:29.329955
descriptionBoard Support crate for the Adafruit PyPortal
homepage
repositoryhttps://github.com/atsamd-rs/atsamd
max_upload_size
id132153
size44,790
owners (github:atsamd-rs:owners)

documentation

README

Adafruit PyPortal Board Support Crate

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

Check out the repository for examples: https://github.com/atsamd-rs/atsamd/tree/master/boards/pyportal/examples

Prerequisites

  • Install the cross compile toolchain rustup target add thumbv7em-none-eabihf

  • Install hf2-cli the uf2 bootloader flasher tool however your platform requires

  • Be in this directory cd boards/pyportal

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

Uploading an example: cargo run

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.

Commit count: 827

cargo fmt