Jump to content

microbit.io.getDigitalValue

From Compy Docs

Get Digital Value.

Function

Synopsis

microbit.io.getDigitalValue(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