Jump to content

microbit.io.getPulseUs

From Compy Docs

Get Pulse Us.

Function

Synopsis

microbit.io.getPulseUs(pin, number)

Arguments

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

Returns

A number, or nil if no value is available.

See Also