Read a text from the serial port until a delimiter is found.
Learn how to write a string to the serial port without starting a new line afterward.
Learn how to send name:value pairs to the serial port using the write Value function in Microsoft MakeCode.
Learn how to write a number to the serial port using Microsoft MakeCode.
Write a string to the serial port and start a new line of text by writing \r\n.
Read and write data over a serial connection.
Set the Serial Peripheral Interface (SPI) clock frequency for micro:bit.
Set the Serial Peripheral Interface (SPI) format for data transmission.
Set the Serial Peripheral Interface (SPI) signalling pins for micro:bit.
Write a data value to the SPI slave device and return its response.
Write a number to a device at an I2C address using a specified number format.
Read a number from an I2C address using a specified number format.