Display text about the state of the LED jumper.
This commit is contained in:
@@ -34,6 +34,8 @@ function readLedJumper() {
|
||||
process.exit(2);
|
||||
}
|
||||
console.log('Received', util.bufferToString(receivedBuffer));
|
||||
var isLedJumperOn = receivedBuffer[1] === 0;
|
||||
console.log('This means that the LED jumper is ' + (isLedJumperOn ? 'on' : 'off'))
|
||||
setTimeout(readLedJumper, 500)
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user