2024-10-18 12:38:17 +02:00
|
|
|
|
.. zephyr:board:: bbc_microbit_v2
|
2020-12-24 23:04:39 -08:00
|
|
|
|
|
|
|
|
|
Overview
|
|
|
|
|
********
|
|
|
|
|
|
|
|
|
|
The Micro Bit (also referred to as BBC Micro Bit, stylized as micro:bit) is an
|
|
|
|
|
ARM-based embedded system designed by the BBC for use in computer education in
|
|
|
|
|
the UK.
|
|
|
|
|
|
|
|
|
|
The board is 4 cm × 5 cm and has an ARM Cortex-M4F processor, accelerometer and
|
|
|
|
|
magnetometer sensors, Bluetooth and USB connectivity, a display consisting of
|
|
|
|
|
25 LEDs, a microphone, two programmable buttons, and can be powered by either
|
|
|
|
|
USB or an external battery pack. The device inputs and outputs are through five
|
|
|
|
|
ring connectors that are part of the 23-pin edge connector.
|
|
|
|
|
|
|
|
|
|
More information about the board can be found at the `microbit website`_.
|
|
|
|
|
|
|
|
|
|
Hardware
|
|
|
|
|
********
|
|
|
|
|
|
|
|
|
|
The micro:bit-v2 has the following physical features:
|
|
|
|
|
|
|
|
|
|
* 25 individually-programmable LEDs
|
|
|
|
|
* 2 programmable buttons
|
|
|
|
|
* Microphone sensors
|
|
|
|
|
* Physical connection pins
|
|
|
|
|
* Light and temperature sensors
|
|
|
|
|
* Motion sensors (accelerometer and compass)
|
|
|
|
|
* Wireless Communication, via Radio and Bluetooth 5
|
|
|
|
|
* USB interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Supported Features
|
|
|
|
|
==================
|
|
|
|
|
|
2025-02-12 16:50:03 +01:00
|
|
|
|
.. zephyr:board-supported-hw::
|
2020-12-24 23:04:39 -08:00
|
|
|
|
|
|
|
|
|
Programming and Debugging
|
|
|
|
|
*************************
|
|
|
|
|
|
2025-03-31 18:36:14 +02:00
|
|
|
|
.. zephyr:board-supported-runners::
|
|
|
|
|
|
2020-12-24 23:04:39 -08:00
|
|
|
|
Flashing
|
|
|
|
|
========
|
|
|
|
|
|
|
|
|
|
Build and flash applications as usual (see :ref:`build_an_application` and
|
|
|
|
|
:ref:`application_run` for more details).
|
|
|
|
|
|
2024-09-11 22:26:10 +02:00
|
|
|
|
Here is an example for the :zephyr:code-sample:`hello_world` application.
|
2020-12-24 23:04:39 -08:00
|
|
|
|
|
|
|
|
|
First, run your favorite terminal program to listen for output.
|
|
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
|
|
|
|
|
$ minicom -D <tty_device> -b 115200
|
|
|
|
|
|
|
|
|
|
Replace :code:`<tty_device>` with the port where the micro:bit board
|
|
|
|
|
can be found. For example, under Linux, :code:`/dev/ttyACM0`.
|
|
|
|
|
|
|
|
|
|
Then build and flash the application in the usual way.
|
|
|
|
|
|
|
|
|
|
.. zephyr-app-commands::
|
|
|
|
|
:zephyr-app: samples/hello_world
|
2021-03-16 16:45:49 -05:00
|
|
|
|
:board: bbc_microbit_v2
|
2020-12-24 23:04:39 -08:00
|
|
|
|
:goals: build flash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
References
|
|
|
|
|
**********
|
|
|
|
|
|
|
|
|
|
.. target-notes::
|
|
|
|
|
|
|
|
|
|
.. _microbit website: http://www.microbit.org/
|