void setPortStates(Int64)
Sets the output value on all ports at once.
Parameters
Name | Description |
ioMask |
Int64 The value for setting all ports at once. For each bit, 0 is off, 1 is on. |
Remarks
Input pins are ignored.
Examples
var GPIOdeviceInfo;
function setAllPinsOn() {
KioGPIOBoard.setPortStates(0xFFFFFFFF);
}
function onNumatoGPIOOpened(success) {
if(success) {
GPIOdeviceInfo = JSON.parse(KioGPIOBoard.getDeviceInfo());
KioWareUtils.LogInfo('Firmware Version: ' + GPIOdeviceInfo.version + 'Device Id: ' + GPIOdeviceInfo.id);
setAllPinsOn();
}
else KioWareUtils.LogErr('GPIO device failed to open');
}
Requirements
KioWare for Android version 3.22 or greater.