Skip to content

Commit

Permalink
eg: updates
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information
rwaldron committed Jun 23, 2017
1 parent 690088d commit 34e0fe5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions eg/digital-write.js
@@ -1,17 +1,17 @@
// process.env.IS_TEST_MODE = true;
"use strict";

const Tessel = require("../lib/");
const board = new Tessel();
const {
HIGH, LOW
} = board;

board.on("ready", () => {
console.log("Ready");

board.pinMode("b0", board.MODES.OUTPUT);
board.digitalWrite("b0", board.HIGH);
board.digitalWrite("b0", HIGH);

setTimeout(() => {
board.digitalWrite("b0", board.LOW);
board.digitalWrite("b0", LOW);
process.exit(0);
}, 1000);
});
2 changes: 1 addition & 1 deletion eg/onboard-led.js
Expand Up @@ -16,5 +16,5 @@ board.on("ready", () => {
setInterval(() => {
state ^= 1;
leds.forEach(led => board.digitalWrite(led, state));
}, 1000);
}, 100);
});

0 comments on commit 34e0fe5

Please sign in to comment.