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.
Specify which pin (P0, P1, P2) is used to generate tones in micro:bit projects.
Sends a PWM signal to pin P0 for audio applications.
Configure the electrical pull of the specified pin on micro:bit.