A library for working with the micro:bit.
This crate currently provides:
- Support for the 5×5 LED display (see
- A library for working with 5×5 images (see
- Support for the hardware buttons (see
See How to use rmicrobit.
There are a number of example programs in the
examples directory. You
can run an example as follows:
cargo run --example scroll_text -- -x microbit.gdb
examples/demo demonstrates all the features of this crate, using
the cortex-m-rtfm framework.
There are a few tests which can be run on the host machine. Run them as
follows (from a checked-out working copy of
cargo test --lib --target x86_64-unknown-linux-gnu
(or substitute your development machine's native target)
The following dependencies are re-exported under
rmicrobit::, so that crates using this library can be sure
to be using consistent versions:
nrf51(register-level access to the SoC peripherals)
nrf51_hal(higher-level access to the SoC peripherals)
embedded_hal(traits used by some
In particular, if you use cortex-m-rtfm, use
rmicrobit::nrf51 as the
device parameter to
How to use rmicrobit.
Support for hardware buttons.
Support for the 5×5 LED display.
Support for the GPIO peripheral.
Graphics for rendering on the 5×5 LED display.
Traits intended to be globally imported.