This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Simulink Coder Support Package for BBC micro:bit

Generate and deploy code for BBC micro:bit

The Simulink® Coder™ Support Package for BBC micro:bit enables you to create Simulink models and automatically generate and deploy code on BBC micro:bit. The support package includes a library of Simulink blocks for on-chip and on-board peripherals, and it offers deployment support using a built-in scheduler.

The Simulink Coder Support Package for BBC micro:bit also supports MATLAB® functions for BBC micro:bit. These functions enable you to communicate with BBC micro:bit from a host computer running MATLAB. The MATLAB command line interface can be used to access BBC micro:bit's sensors and communication interfaces. Using MATLAB functions, you can collect data from the sensors on BBC micro:bit and actuate devices attached to BBC micro:bit.

Setup and Configuration

Use the following examples to get started with this support package


Prepare model for hardware connection, add blocks to support hardware protocols

Working with MATLAB Functions

Use MATLAB functions to program BBC micro:bit