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.
Set a pin to use as a digital input and run code when the pin pulses high or low.
Configure the PWM period on specified analog pins in micro:bit.
Learn how to write an analog signal to a pin using the Analog Write Pin function in Microsoft MakeCode.