examples/javascript/ttp223.js
function readSensorValue() {
    if ( touch.isPressed() ) {
        console.log(touch.name() + " is pressed");
    } else {
        console.log(touch.name() + " is not pressed");
    }
}
function readSensorValue() {
    if ( touch.isPressed() ) {
        console.log(touch.name() + " is pressed");
    } else {
        console.log(touch.name() + " is not pressed");
    }
}
function readSensorValue ( ) { if ( touch . isPressed ( ) ) { console . log ( touch . name ( ) + " is pressed" ) ; } else { console . log ( touch . name ( ) + " is not pressed" ) ; } }
Check whether or not a finger is near the touch sensor and print accordingly, waiting one second between readings
Check whether or not a finger is near the touch sensor and print accordingly waiting one second between readings