Code Monkey home page Code Monkey logo

microbit's Introduction

microbit

microbit contains everything required to get started using Rust to create firmwares for the fabulous BBC micro:bit microcontroller board. This little board has everything and a kitchen sink built-in, even a capable debugging interface.

Getting started

All you need to start programming this device is:

  • A BBC micro:bit board
  • A computer (macOS and Linux work perfectly, Windows tested as well)
  • A bit of open source software

Know your version

The micro:bit comes in different versions. There is a separate crate for each major board version. See the table below to identify which crate you need to use.

Crate Board version Board image Docs crates.io target
microbit V1 docs.rs crates.io thumbv6m-none-eabi
microbit-v2 V2 docs.rs crates.io thumbv7em-none-eabihf

Install dependencies

The examples make use of some of the fantastic tooling from the knurling project. In order to run the examples you need to install probe-run and flip-link.

> cargo install probe-run flip-link

Run an example

The first thing to try is one of the examples in this repository. Plug in your micro:bit and run one of the commands below.

For micro:bit V1

> cargo run --release --manifest-path ./examples/display-blocking/Cargo.toml --features v1 --target thumbv6m-none-eabi

For micro:bit V2

> cargo run --release --manifest-path ./examples/display-blocking/Cargo.toml --features v2 --target thumbv7em-none-eabihf

You should see a lot of build output, the orange LED on the back of the micro:bit should flash quickly and a message should appear on the LED display.

Congratulations! You've flashed your first rust program onto your micro:bit!

Further reading

A guide to embedded development with Rust on the microbit using this crate can be found in the MicroRust book.

Other useful resources:

License

0-clause BSD license.

microbit's People

Contributors

achary avatar blueluna avatar bors[bot] avatar caemor avatar cathiele avatar clueninja avatar droogmic avatar edneville avatar elwerene avatar hargonix avatar imp avatar jeremystucki avatar kalkyl avatar mattheww avatar peacememories avatar robyoung avatar therealprof avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.