Skip to content

Commit

Permalink
Keypad examples, test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed May 5, 2015
1 parent 22a92b0 commit 485181a
Show file tree
Hide file tree
Showing 3 changed files with 319 additions and 19 deletions.
6 changes: 3 additions & 3 deletions eg/keypad-MPR121.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ board.on("ready", function() {
keypad.on(event, function(data) {
// console.log("Event: %s, Which: %s", event, data);

// if (event === "press") {
// exec("say " + data);
// }
if (event === "press") {
exec("say " + data);
}
});
});
});
8 changes: 4 additions & 4 deletions eg/keypad-MPR121QR2.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ board.on("ready", function() {

["change", "press", "hold", "release"].forEach(function(event) {
keypad.on(event, function(data) {
console.log("Event: %s, Which: %s", event, data);
// console.log("Event: %s, Which: %s", event, data);

// if (event === "press") {
// exec("say " + data);
// }
if (event === "press") {
exec("say " + data);
}
});
});
});
Loading

0 comments on commit 485181a

Please sign in to comment.