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.
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.
Configure servo pulse width for micro:bit pins with specified values.
Control servo motors by writing values to specified pins on the micro:bit.
Get the duration of a pulse from one of the pins in microseconds.
Get the duration of the last pulse in microseconds using MakeCode.
Set a pin to use as a digital input and run code when the pin pulses high or low.
Remaps a value from one range to another, useful in programming for scaling inputs.