From 8f2878aade51ba2c40a6e7e09fdcc5b5269da3d2 Mon Sep 17 00:00:00 2001 From: Todd Treece Date: Tue, 7 Jun 2016 12:30:24 -0400 Subject: [PATCH] set mpr121 thresholds --- lib/ui.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ui.js b/lib/ui.js index 4a21f74..d02e2bf 100644 --- a/lib/ui.js +++ b/lib/ui.js @@ -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();;