Crates.io | calliope-mini |
lib.rs | calliope-mini |
version | 0.3.0 |
source | src |
created_at | 2024-03-30 17:34:57.559857+00 |
updated_at | 2025-01-24 05:16:37.155329+00 |
description | Board support crate for the Calliope mini |
homepage | https://gitlab.com/alaarmann/calliope-mini |
repository | https://gitlab.com/alaarmann/calliope-mini |
max_upload_size | |
id | 1191221 |
size | 75,031 |
calliope-mini contains everything required getting started using Rust to create firmwares for the Calliope mini microcontroller board. This little board has a lot built-in, even a capable debugging interface.
This Board Support Package (BSP) for the Calliope mini pursues the goal of making most features of the board easily available while still supporting advanced applications to exploit the full capabilities of the hardware. It should enable learners to make first steps in programming with confidence and at the same time experienced programmers to delve into the world of microcontrollers.
v1
For determining the version of your board see the product page.
Calliope mini V1 and V2 are almost identical (apart from the coprocessor, its firmware and its flash memory), so this crate's v2
feature is currently an alias for v1
.
Compared to the BBC micro:bit's versions, Calliope v1 and V2 are similar to micro:bit V1, while Calliope mini V3 is similar to micro:bit V2.
All you need to start programming this device is:
On Linux you have the options to use cargo install
or nix-shell
.
In order to run the examples you need to install flip-link
and probe-rs
.
> cargo install probe-rs-tools flip-link
Install the Nix package manager and start a Nix shell in the project's base directory
> nix-shell
The first thing to try is one of the examples in this repository. Plug in your Calliope mini and run one of the commands below.
For Calliope mini V1
> cargo run --release --manifest-path ./examples/display-blocking/Cargo.toml --features v1 --target thumbv6m-none-eabi
For Calliope mini V2
> cargo run --release --manifest-path ./examples/display-blocking/Cargo.toml --features v2 --target thumbv6m-none-eabi
For Calliope mini V3
> cargo run --release --manifest-path ./examples/display-blocking/Cargo.toml --features v3 --target thumbv7em-none-eabihf
You should see a lot of build output, the orange LED on the back of the Calliope mini should flash quickly, and a message should appear on the LED display.
Congratulations! You've flashed your first Rust program onto your Calliope mini!
Feature | Board version 1.x and 2.x | Board version 3.x |
---|---|---|
LED matrix | Supported | Supported |
RGB LED | Example given | Example given |
Beeper | Example given | Example given |
Buttons | Supported | Supported |
Accelerometer | No example yet | No example yet |
Gyroscope | No example yet | n/a |
Magnetometer | Example given | Example given |
Sound sensor | Example given | Example given |
Temperature sensor | No example yet | No example yet |
Light sensor | No example yet | No example yet |
Motor driver | No example yet | No example yet |