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.
Dependencies: BLE_API mbed-dev-bin nRF51822
Fork of microbit-dal-eddystone by
README.md@27:2f494ead23de, 2016-07-13 (annotated)
- Committer:
- LancasterUniversity
- Date:
- Wed Jul 13 12:18:05 2016 +0100
- Revision:
- 27:2f494ead23de
- Parent:
- 17:b15c83c64043
Synchronized with git rev 8875dc35
Author: James Devine
microbit-dal: added yotta configuration mappings to DAL specific configuration options.
Yotta can now be used to configure the configuration options for the
dal.
An full config.json looks like:
{
"microbit-dal":{
"bluetooth":{
"enabled": 1,
"pairing_mode": 0,
"private_addressing": 0,
"open": 0,
"whitelist": 1,
"advertising_timeout": 0,
"tx_power": 0,
"dfu_service": 1,
"event_service": 1,
"device_info_service": 1
},
"reuse_sd": 1,
"gatt_table_size": "0x300",
"heap_allocator": 1,
"nested_heap_proportion": 0.75,
"system_tick_period": 6,
"system_components": 10,
"idle_components": 6,
"use_accel_lsb": 0,
"min_display_brightness": 1,
"max_display_brightness": 255,
"display_scroll_speed": 120,
"display_scroll_stride": -1,
"display_print_speed": 400,
"panic_on_heap_full": 1,
"debug": 0,
"heap_debug": 0,
"stack_size":2048,
"sram_base":"0x20000008",
"sram_end":"0x20004000",
"sd_limit":"0x20002000",
"gatt_table_start":"0x20001900"
}
}
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Jonathan Austin |
1:8aa5cdb4ab67 | 1 | # microbit-dal |
| Jonathan Austin |
1:8aa5cdb4ab67 | 2 | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 3 | The core set of drivers, mechanisms and types that make up the micro:bit runtime. |
| Jonathan Austin |
1:8aa5cdb4ab67 | 4 | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 5 | ## Overview |
| Jonathan Austin |
1:8aa5cdb4ab67 | 6 | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 7 | 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:8aa5cdb4ab67 | 8 | |
| LancasterUniversity | 17:b15c83c64043 | 9 | 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 the Microsoft Block Editor, Microsoft Touch Develop, Code Kingdoms JavaScript and Micropython languages. |
| Jonathan Austin |
1:8aa5cdb4ab67 | 10 | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 11 | ## Links |
| Jonathan Austin |
1:8aa5cdb4ab67 | 12 | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 13 | [micro:bit runtime docs](http://lancaster-university.github.io/microbit-docs/) | [uBit](https://github.com/lancaster-university/microbit) | [samples](https://github.com/lancaster-university/microbit-samples) |
| Jonathan Austin |
1:8aa5cdb4ab67 | 14 | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 15 | ## Build Environments |
| Jonathan Austin |
1:8aa5cdb4ab67 | 16 | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 17 | | Build Environment | Documentation | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 18 | | ------------- |-------------| |
| Jonathan Austin |
1:8aa5cdb4ab67 | 19 | | ARM mbed online | http://lancaster-university.github.io/microbit-docs/online-toolchains/#mbed | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 20 | | yotta | http://lancaster-university.github.io/microbit-docs/offline-toolchains/#yotta | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 21 | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 22 | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 23 | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 24 | ## Hello World! |
| Jonathan Austin |
1:8aa5cdb4ab67 | 25 | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 26 | ```cpp |
| Jonathan Austin |
1:8aa5cdb4ab67 | 27 | #include "MicroBitDisplay.h" |
| Jonathan Austin |
1:8aa5cdb4ab67 | 28 | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 29 | MicroBitDisplay display; |
| Jonathan Austin |
1:8aa5cdb4ab67 | 30 | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 31 | int main() |
| Jonathan Austin |
1:8aa5cdb4ab67 | 32 | { |
| Jonathan Austin |
1:8aa5cdb4ab67 | 33 | display.scroll("Hello world!"); |
| Jonathan Austin |
1:8aa5cdb4ab67 | 34 | } |
| Jonathan Austin |
1:8aa5cdb4ab67 | 35 | ``` |
| Jonathan Austin |
1:8aa5cdb4ab67 | 36 | |
| Jonathan Austin |
1:8aa5cdb4ab67 | 37 | ## BBC Community Guidelines |
| Jonathan Austin |
1:8aa5cdb4ab67 | 38 | |
| LancasterUniversity | 17:b15c83c64043 | 39 | [BBC Community Guidelines](https://www.microbit.co.uk/help#sect_cg) |
