Jump to content

microbit.io.setServoValue

From Compy Docs

Set Servo Value.

Function

Synopsis

microbit.io.setServoValue(pin, number [, number [, number]])

Arguments

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

Returns

A boolean value.

See Also