set mpr121 thresholds

This commit is contained in:
Todd Treece 2016-06-07 12:30:24 -04:00
parent 1323f7ea75
commit 8f2878aade

View file

@ -40,6 +40,8 @@ class UI extends EventEmitter {
const MPR121 = require('mpr121'),
mpr121 = new MPR121(0x5A, 1);
mpr121.setThresholds(16, 12);
mpr121.on('touch', (pin) => {
if(pin === 0) this.skip();
if(pin === 1) this.pause();;