developer.mbed.org branch of Lancaster University's microbit library. The real home for this is https://github.com/lancaster-university/microbit

Dependencies:   microbit-dal

Dependents:   MB02 asteroid_shooting

Committer:
ikkeje
Date:
Mon Dec 23 10:31:28 2019 +0000
Revision:
0:ee31ccbe9919
1.1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ikkeje 0:ee31ccbe9919 1 # microbit
ikkeje 0:ee31ccbe9919 2
ikkeje 0:ee31ccbe9919 3 A collection of the commonly used components of the micro:bit runtime with a
ikkeje 0:ee31ccbe9919 4 standard configuration, to provide an easy to use interface for programming the micro:bit in C/C++.
ikkeje 0:ee31ccbe9919 5
ikkeje 0:ee31ccbe9919 6 ## Overview
ikkeje 0:ee31ccbe9919 7
ikkeje 0:ee31ccbe9919 8 The micro:bit runtime provides an easy to use environment for programming the BBC micro:bit in the C/C++ language, written by Lancaster University. It contains device drivers for all the hardware capabilities of the micro:bit, and also a suite of runtime mechanisms to make programming the micro:bit easier and more flexible. These range from control of the LED matrix display to peer-to-peer radio communication and secure Bluetooth Low Energy services. The micro:bit runtime is proudly built on the ARM mbed and Nordic nrf51 platforms.
ikkeje 0:ee31ccbe9919 9
ikkeje 0:ee31ccbe9919 10 In addition to supporting development in C/C++, the runtime is also designed specifically to support higher level languages provided by our partners that target the micro:bit. It is currently used as a support library for all the languages on the BBC www.microbit.co.uk website, including Microsoft Block, Microsoft TouchDevelop, Code Kingdoms JavaScript and Micropython languages.
ikkeje 0:ee31ccbe9919 11
ikkeje 0:ee31ccbe9919 12 ## Links
ikkeje 0:ee31ccbe9919 13
ikkeje 0:ee31ccbe9919 14 [micro:bit runtime docs](http://lancaster-university.github.io/microbit-docs/) | [microbit-dal](https://github.com/lancaster-university/microbit-dal) | [samples](https://github.com/lancaster-university/microbit-samples)
ikkeje 0:ee31ccbe9919 15
ikkeje 0:ee31ccbe9919 16 ## Build Environments
ikkeje 0:ee31ccbe9919 17
ikkeje 0:ee31ccbe9919 18 | Build Environment | Documentation |
ikkeje 0:ee31ccbe9919 19 | ------------- |-------------|
ikkeje 0:ee31ccbe9919 20 | ARM mbed online | http://lancaster-university.github.io/microbit-docs/online-toolchains/#mbed |
ikkeje 0:ee31ccbe9919 21 | yotta | http://lancaster-university.github.io/microbit-docs/offline-toolchains/#yotta |
ikkeje 0:ee31ccbe9919 22
ikkeje 0:ee31ccbe9919 23
ikkeje 0:ee31ccbe9919 24
ikkeje 0:ee31ccbe9919 25 ## Hello World!
ikkeje 0:ee31ccbe9919 26
ikkeje 0:ee31ccbe9919 27 ```cpp
ikkeje 0:ee31ccbe9919 28 #include "MicroBit.h"
ikkeje 0:ee31ccbe9919 29
ikkeje 0:ee31ccbe9919 30 MicroBit uBit;
ikkeje 0:ee31ccbe9919 31
ikkeje 0:ee31ccbe9919 32 int main()
ikkeje 0:ee31ccbe9919 33 {
ikkeje 0:ee31ccbe9919 34 uBit.init();
ikkeje 0:ee31ccbe9919 35
ikkeje 0:ee31ccbe9919 36 uBit.display.scroll("Hello world!");
ikkeje 0:ee31ccbe9919 37 }
ikkeje 0:ee31ccbe9919 38 ```
ikkeje 0:ee31ccbe9919 39
ikkeje 0:ee31ccbe9919 40 ## BBC Community Guidelines
ikkeje 0:ee31ccbe9919 41
ikkeje 0:ee31ccbe9919 42 [BBC Community Guidelines](https://www.microbit.co.uk/help#sect_cg)