Go to file
Joe Finney e754ecf3aa microbit: Setting of default BLE transmission power level
Added configuration option in MicroBitConfig to allow the default power level
to be defined. Based on experiments undertaken by the BBC and subsequent policies defined by
the BBC's child protection panel, to is set by default it's lowest level (0),
in order to protect children's privacy.

It should be noted that this is 30dB below the device's default setting, so will
inevitably leave the device more susceptible to interference, and therefore
significantly reduce the reliability of the device. This will likely present
itself through increased packet loss, reduced thorughout, lost data and
connection drop outs. The normal BLE power level on commercial devices
translates to  power level of 6.

The author has witnessed an inability to connect to a micro:bit from a
distance of 40cm under domestic conditions using a Samsung S5 mini
running Android 4.4.2.
2016-01-16 17:29:46 +00:00
docs microbit: Updates to Pairing Mode to improve the user experience 2015-12-11 03:43:18 +00:00
inc microbit: Setting of default BLE transmission power level 2016-01-16 17:29:46 +00:00
source microbit: Setting of default BLE transmission power level 2016-01-16 17:29:46 +00:00
.gitignore Merge branch 'master' into flatstring 2015-11-12 16:13:45 -08:00
CHANGES.md ble_issue_tracker.md now the file to track BLE issues in 2015-09-10 10:06:27 +01:00
README.md Update README.md 2015-09-11 16:50:28 +01:00
module.json version v1.4.4 2016-01-12 17:37:53 +00:00



Building a project for the micro:bit using Yotta

Instead of using the online IDE, Yotta can be used to provide an equivalent offline experience. The current compilers that are available are:

  • GCC

Getting Started

1. Install Yotta

The first step is to get Yotta onto your machine, to do this follow the install guide here

Note: if you are on windows, dependencies will be missed as of 8/8/15, please use the helper script located here.

2. Fetch the example project

If your install has gone correctly, and you have all dependencies installed, the next step is to fetch the example project using the runtime from GitHub.

git clone https://github.com/lancaster-university/microbit

Note: To successfully build this project you will need access to the microbit-dal private repository, if you need access please email me at j.devine@lancaster.ac.uk.

3. Try to build

Building rarely works first time due to dependencies currently not being installed by Yotta, so the next step is to try to build.

The default yotta target you will receive when you pull the aforementioned repo is bbc-microbit-classic-armcc, you can use the following command to print your current target in Yotta:

yt target

bbc-microbit-classic-armcc 0.0.5
mbed-armcc 0.0.8

If you do not have armcc installed (or don't have a license for Keil), then you will need to use GCC. To swap to the GCC target run:

yt target bbc-microbit-classic-gcc

Then you should try to build using the following command:

yt build

NOTE: To build the final hex files for the micro:bit, you will need to install the srec which can be installed via brew (brew install srecord), or you can install it manually from here.

4. Flash your micro:bit

The final step is to check your hex works.

The yotta build command will place files in /build/<TARGET_NAME>/source. The file you will need to flash will be microbit-combined.hex. Simply drag and drop the hex.

The expected result will be that the micro:bit will scroll BELLO! :) on its display.