Jump to content

planetx.getDigitalPin

From Compy Docs

Returns the PlanetX digital pin corresponding to the specified RJ11 connector. The analog pin number is the same as the RJ11 connector number and can be obtained by microbit.io.getPin.

Function

Synopsis

planetx.getDigitalPin(number)

Arguments

  • `number` — The RJ11 connector number between 1 and 4.

Returns

A pin.

See Also