Discrete Inputs
print( string( io.ch1 ) );
/*
{
"runtime": 0, // total time (seconds) spent in the 'true' state
"state": false, // current state
"err":0 // IO subsystem status (0 = no error)
}
*/
while(run()){
if(io.ch1.state ){
print("True");
} else {
print("False");
}
waitMS(100);
}