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.
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.
Learn how to read analog signals from pins on the micro:bit using the Analog Read Pin function.
Learn how to write digital signals to pins on the micro:bit board for various applications.