This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var five = require("johnny-five"); | |
| var Tessel = require("tessel-io"); | |
| var board = new five.Board({ | |
| io: new Tessel() | |
| }); | |
| board.on("ready", function() { | |
| var register = new five.ShiftRegister({ | |
| pins: [ "a3", "a5", "a4" ], | |
| isAnode: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var five = require("johnny-five"); | |
| var Tessel = require("tessel-io"); | |
| var board = new five.Board({ | |
| io: new Tessel() | |
| }); | |
| board.on("ready", function() { | |
| var register = new five.ShiftRegister([ "a3", "a5", "a4" ]); | |
| var output = 0b00000000; | |
| this.loop(100, () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var five = require("johnny-five"); | |
| var Tessel = require("tessel-io"); | |
| var board = new five.Board({ | |
| io: new Tessel() | |
| }); | |
| board.on("ready", function() { | |
| var register = new five.ShiftRegister({ | |
| pins: { | |
| clock: "a5", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var five = require("johnny-five"); | |
| var Tessel = require("tessel-io"); | |
| var board = new five.Board({ | |
| io: new Tessel() | |
| }); | |
| board.on("ready", function() { | |
| var lcd = new five.LCD({ | |
| // RS EN D4 D5 D6 D7 | |
| pins: ["a2", "a3", "a4", "a5", "a6", "a7"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var five = require("johnny-five"); | |
| var Tessel = require("tessel-io"); | |
| var board = new five.Board({ | |
| io: new Tessel() | |
| }); | |
| board.on("ready", function() { | |
| var lcd = new five.LCD({ | |
| // LCD pin: | |
| // RS EN D4 D5 D6 D7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Tessel = require("tessel-io"); | |
| var five = require("johnny-five"); | |
| var board = new five.Board({ | |
| io: new Tessel() | |
| }); | |
| board.on("ready", function() { | |
| var dry = new five.Led("b0"); | |
| var wet = new five.Led("b1"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Tessel = require("tessel-io"); | |
| var five = require("johnny-five"); | |
| var board = new five.Board({ | |
| io: new Tessel() | |
| }); | |
| board.on("ready", function() { | |
| var multi = new five.Multi({ | |
| controller: "BME280" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var five = require("johnny-five"); | |
| var Tessel = require("tessel-io"); | |
| var board = new five.Board({ | |
| io: new Tessel() | |
| }); | |
| board.on("ready", function() { | |
| var spdt = new five.Switch("a0"); | |
| var throttle = new five.Sensor("b0"); | |
| var motors = new five.Motors([ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var five = require("johnny-five"); | |
| var Tessel = require("tessel-io"); | |
| var board = new five.Board({ | |
| io: new Tessel() | |
| }); | |
| board.on("ready", function() { | |
| var spdt = new five.Switch("a0"); | |
| var throttle = new five.Sensor("b0"); | |
| var motor = new five.Motor([ "a5", "a4", "a3" ]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var five = require("johnny-five"); | |
| var Tessel = require("tessel-io"); | |
| var board = new five.Board({ | |
| io: new Tessel() | |
| }); | |
| board.on("ready", function() { | |
| var motor = new five.Motor([ "a5", "a4", "a3" ]); | |
| motor.forward(128); |
NewerOlder