- device.on('connect', function() {
- console.log('Connected: ', +new Date());
- const watchButtonPressEverySecond = _.debounce(watchButtonPress, config.DEBOUNCE_MS);
- rpio.open(config.BUTTON_PIN, rpio.INPUT, rpio.PULL_UP);
- rpio.poll(config.BUTTON_PIN, watchButtonPressEverySecond, rpio.POLL_LOW);
- });
Author: Not specified | Language: text |
Description: Not specified | Timestamp: 2017-08-31 23:53:10 +0000 |
View raw paste | Reply |
View raw paste | Reply |