Course link: https://docs.rust-embedded.org/discovery/microbit/index.html
Status: π§ (WIP)
- Get a USB cable that is suitable not only for charging but also for data transfer. No, seriously, otherwise you will have to spend 2 hours debugging like me π
- To exclude problems with
$ probe-rs info
, it is better to update firmware beforehand. - If you get errors like:
β 05-led-roulette git:(main) β cargo embed
Compiling chapter-05-led-roulette v0.1.0 (<REPO_PATH>/rust-embedded-discover-microbit-book/05-led-roulette)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.06s
Config default
Target <REPO_PATH>/target/thumbv7em-none-eabihf/debug/chapter-05-led-roulette
WARN probe_rs::flashing::loader: No loadable segments were found in the ELF file.
Error No loadable segments were found in the ELF file.
In that case, make sure that the files memory.x, build.rs,
and Embed.toml are present inside the chapter folder (e.g. 05-led-roulette
)
and .cargo/config.toml relative to the
root of the repository.
- In Cargo.toml for chapters, the
microbit
(v1) dependency is deliberately commented out andmicrobit-v2
is left so that RustRover IDE can understand which crate to take imports from. If you have the first version, you should do the opposite.
- π - a link to a book page
- βοΈ - a link to an
.rs
file (code) - π§ - not finished
- π 0. Introduction
- π 1. Background
- π 2. Hardware/knowledge requirements
- π 3. Setting up a development environment
- π 4. Meet your hardware
- π 5. LED roulette
- π 6. Serial communication
- π 7. UART
- π 8. I2C
- π§ 9. LED compass
- π§ 10. Punch-o-meter
- π§ 11. Snake game
- π§ 12. What's left for you to explore