Skip to content

Commit

Permalink
fix(proximity): configure Gpio as both
Browse files Browse the repository at this point in the history
  • Loading branch information
ovaar committed Jun 26, 2019
1 parent 6b38dc8 commit 1e88cd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
@@ -1,7 +1,7 @@
const Gpio = require("onoff").Gpio;
const proximity = new Gpio(4, "in", "rising");

try {
const Gpio = require("onoff").Gpio;
const proximity = new Gpio(4, "in", "both");

var timer = startTimer();

function restartTimer(timeout) {
Expand Down

0 comments on commit 1e88cd0

Please sign in to comment.