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