Connect to BBC micro:bit hardware
connects to the BBC micro:bit
board. If there is more than one board connected to the computer, this command connects to
the first board detected by the operating system.obj
= microbit
connects to the BBC micro:bit board on the specified serial port.obj
= microbit(port
)
While creating the microbit object, MATLAB connects to a server running on the BBC micro:bit through serial port. A server needs to be loaded only once in a BBC micro:bit. Multiple BBC micro:bits, with server loaded, can be connected to the host computer and the corresponding objects can be created by specifying the serial port numbers.