int64 getPortIOStates()

Gets the input/output state of all ports/pins, each represented by one bit

Security

Trust Level Required: Full Trust

Return

The current input/output states, where each bit is either 0 = output or 1 = input

Examples


var pin = 3;
KioGPIOBoard.setPortIOStates(1 << (pin - 1)); // Set pin 3 as an input, and all other pins as outputs
console.log(KioGPIOBoard.getPortIOStates());

Requirements

KioWare OS (Linux®) version 1.0 or greater.


Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.