input2.js: show blink working before failure
input2.js: show blink working before failure

With this change, you can see attachInterrupt working to blink USR2
before the failure kicks in.

Output:
root@beaglebone:/var/lib/cloud9# node input2.js
Please connect P8_5 to P8_3 with a 1kohm resistor
Please connect P8_9 to P8_7 with a 1kohm resistor
Adding handler function (x) {
        digitalWrite(ledPin, x.value);
    } to pin P8_5
Adding handler function (x) {
        digitalWrite(ledPin2, x.value);
    } to pin P8_9
Adding loop function () {
        digitalWrite(outputPin2, HIGH);
        delay(mydelay2);
        digitalWrite(outputPin2, LOW);
        delay(mydelay2);
    }
Adding loop function () {
    digitalWrite(outputPin, HIGH);
    delay(mydelay);
    digitalWrite(outputPin, LOW);
    delay(mydelay);
}
Disabling toggle2
Loop with PID 1012 died
Loop with PID 1012 died
Enabling toggle2
Adding loop function () {
        digitalWrite(outputPin2, HIGH);
        delay(mydelay2);
        digitalWrite(outputPin2, LOW);
        delay(mydelay2);
    }
Disabling toggle2
Loop with PID 1017 died
Loop with PID 1017 died
Loop with PID 1017 died
Enabling toggle2
Adding loop function () {
        digitalWrite(outputPin2, HIGH);
        delay(mydelay2);
        digitalWrite(outputPin2, LOW);
        delay(mydelay2);
    }
Disabling toggle2
Loop with PID 1019 died
Loop with PID 1019 died
Loop with PID 1019 died
Loop with PID 1019 died
^C

mwillbanks/octalbonescript,jadonk/bonescript,theoctal/octalbonescript,risebox/bonescript,il9ue/bonesimulator,weboide/antl,il9ue/bonesimulator,beagleboard/bonescript,beagleboard/bonescript,jadonk/bonescript,risebox/bonescript,weboide/antl