Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of microbit by
README.md@1:af427e419320, 2016-04-07 (annotated)
- Committer:
- Jonathan Austin
- Date:
- Thu Apr 07 01:30:13 2016 +0100
- Revision:
- 1:af427e419320
Synchronized with git rev 5de0824717
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jonathan Austin |
1:af427e419320 | 1 | # microbit |
Jonathan Austin |
1:af427e419320 | 2 | |
Jonathan Austin |
1:af427e419320 | 3 | A collection of the commonly used components of the micro:bit runtime with a |
Jonathan Austin |
1:af427e419320 | 4 | standard configuration, to provide an easy to use interface for programming the micro:bit in C/C++. |
Jonathan Austin |
1:af427e419320 | 5 | |
Jonathan Austin |
1:af427e419320 | 6 | ## Overview |
Jonathan Austin |
1:af427e419320 | 7 | |
Jonathan Austin |
1:af427e419320 | 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. |
Jonathan Austin |
1:af427e419320 | 9 | |
Jonathan Austin |
1:af427e419320 | 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. |
Jonathan Austin |
1:af427e419320 | 11 | |
Jonathan Austin |
1:af427e419320 | 12 | ## Links |
Jonathan Austin |
1:af427e419320 | 13 | |
Jonathan Austin |
1:af427e419320 | 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) |
Jonathan Austin |
1:af427e419320 | 15 | |
Jonathan Austin |
1:af427e419320 | 16 | ## Build Environments |
Jonathan Austin |
1:af427e419320 | 17 | |
Jonathan Austin |
1:af427e419320 | 18 | | Build Environment | Documentation | |
Jonathan Austin |
1:af427e419320 | 19 | | ------------- |-------------| |
Jonathan Austin |
1:af427e419320 | 20 | | ARM mbed online | http://lancaster-university.github.io/microbit-docs/online-toolchains/#mbed | |
Jonathan Austin |
1:af427e419320 | 21 | | yotta | http://lancaster-university.github.io/microbit-docs/offline-toolchains/#yotta | |
Jonathan Austin |
1:af427e419320 | 22 | |
Jonathan Austin |
1:af427e419320 | 23 | |
Jonathan Austin |
1:af427e419320 | 24 | |
Jonathan Austin |
1:af427e419320 | 25 | ## Hello World! |
Jonathan Austin |
1:af427e419320 | 26 | |
Jonathan Austin |
1:af427e419320 | 27 | ```cpp |
Jonathan Austin |
1:af427e419320 | 28 | #include "MicroBit.h" |
Jonathan Austin |
1:af427e419320 | 29 | |
Jonathan Austin |
1:af427e419320 | 30 | MicroBit uBit; |
Jonathan Austin |
1:af427e419320 | 31 | |
Jonathan Austin |
1:af427e419320 | 32 | int main() |
Jonathan Austin |
1:af427e419320 | 33 | { |
Jonathan Austin |
1:af427e419320 | 34 | uBit.init(); |
Jonathan Austin |
1:af427e419320 | 35 | |
Jonathan Austin |
1:af427e419320 | 36 | uBit.display.scroll("Hello world!"); |
Jonathan Austin |
1:af427e419320 | 37 | } |
Jonathan Austin |
1:af427e419320 | 38 | ``` |
Jonathan Austin |
1:af427e419320 | 39 | |
Jonathan Austin |
1:af427e419320 | 40 | ## BBC Community Guidelines |
Jonathan Austin |
1:af427e419320 | 41 | |
Jonathan Austin |
1:af427e419320 | 42 | [BBC Community Guidelines](https://www.microbit.co.uk/help#sect_cg) |