Jump to content

microbit.io.getAnalogValue

From Compy Docs

Get Analog Value.

Function

Synopsis

microbit.io.getAnalogValue(pin)

Arguments

  • `pin` — A pin value returned by an I/O or board pin function.

Returns

A number, or nil if no value is available.

See Also