12个重大版本更新
0.13.1 | 2023年7月15日 |
---|---|
0.13.0 | 2022年2月18日 |
0.12.0 | 2022年1月11日 |
0.11.0 | 2021年9月27日 |
0.1.0 | 2018年11月18日 |
#2190 in 嵌入式开发
1.5MB
24K SLoC
Adafruit ItsyBitsy M0开发板支持包
此包提供了一种类型安全的API,用于与Adafruit ItsyBitsy M0板进行交互。
先决条件
- 安装交叉编译工具链
rustup target add thumbv6m-none-eabi
- 安装 cargo-hf2 hf2引导加载程序闪存工具,具体取决于您的平台要求
上传示例
查看仓库中的示例
https://github.com/atsamd-rs/atsamd/tree/master/boards/itsybitsy_m0/examples
- 确保您在以下目录中
cd boards/itsybitsy_m0
- 将您的设备置于引导加载程序模式,通常通过连续按两次复位按钮。
- 一步构建和上传
$ 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/itsybitsy_m0/target/thumbv7em-none-eabihf/release/examples/blinky_basic"
Finished in 0.079s
$
依赖关系
~5.5MB
~117K SLoC