Polling working, remove vistgial stuff
This commit is contained in:
parent
4d6e058afb
commit
02b2f77d4d
@ -8,7 +8,7 @@ setInterval(() => {
|
|||||||
if (pin.mode === 'IN') {
|
if (pin.mode === 'IN') {
|
||||||
gpio.readPin(pin.board, (err, state) => {
|
gpio.readPin(pin.board, (err, state) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
console.log(`${pin.key}: ${state} [def: ${pin.defaultState}]`);
|
console.log(`${pin.key}: ${state}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user