678 B
678 B
Analog Write Pin
Write to the specified pin (P0, P1, P2) as analog.
pins.analogWritePin(AnalogPin.P0, 400)
Parameters
The following code writes 1023
to the P0
pin:
pins.analogWritePin(AnalogPin.P0, 1023)
See also
micro:bit pins, on pin pressed, analog read pin, digital read pin, digital write pin