You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Simon Frei 0a90d5455c change configuration of Gpio (pull up/down) when condition is met 3 years ago
..
BLE_beacon added ADA microbit sample code 3 years ago
accelerometer added ADA microbit sample code 3 years ago
analog_in added ADA microbit sample code 3 years ago
analog_out added ADA microbit sample code 3 years ago
buttons added ADA microbit sample code 3 years ago
digital_in added ADA microbit sample code 3 years ago
digital_out added ADA microbit sample code 3 years ago
doc/fritzing_sketches added ADA microbit sample code 3 years ago
follower added ADA microbit sample code 3 years ago
jumper change configuration of Gpio (pull up/down) when condition is met 3 years ago
music added ADA microbit sample code 3 years ago
neopixel added ADA microbit sample code 3 years ago
servos added ADA microbit sample code 3 years ago
text_scrolling added ADA microbit sample code 3 years ago
README.md added ADA microbit sample code 3 years ago

README.md

The Micro:Bit is a very small ARM Cortex-M0 board designed by the BBC for computer education. It's fitted with a Nordic nRF51 Bluetooth enabled microcontroller and an embedded programmer. You can get it at:

How to setup the Ada development environment for the Micro:Bit

GNAT Community now comes with micro:bit and pyOCD support built-in. So you only need to download the ARM ELF and the native package from here

pyOCD programmer

The Micro:Bit comes with an embedded programming/debugging probe implementing the CMSIS-DAP protocol defined by ARM.

To use it on Linux, you might need privileges to access the USB ports without which the flash program will say "No connected boards".

On Ubuntu, you can do it by creating (as administrator) the file /etc/udev/rules.d/mbed.rules and add the line:

SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", ATTR{idProduct}=="0204", MODE="0666"

then restarting the service by doing

$ sudo udevadm trigger

Open one of example projects and build it

Start GNAT Programming studio (GPS) and open the micro:bit example project:

Press F4 and then press Enter to build the project.

Program the board

Plug your micro:bit board with a USB cable, and wait for the system to recognize it. This can take a few seconds

In the GPS toolbar, click on the "flash to board" button to program the micro:bit.

After a few seconds, you should see a text scrolling on the LED matrix.

That's it, you are ready to hack the micro:bit with Ada!