Direct the serial input and output to use the USB connection for micro:bit.
Learn how to configure the serial port on micro:bit to use pins instead of USB for data transmission.
Read a line of text from the serial port using the serial.readLine() function.
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.
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.
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.
Read a number from an I2C address using a specified number format.