Created
July 25, 2015 07:37
-
-
Save CaptEmulation/7f52843b0404fb636618 to your computer and use it in GitHub Desktop.
This file contains 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
// For interfacing with Arduino | |
var five = require("johnny-five"); | |
// Initialize a new Johnny-Five board | |
var board = new five.Board({ | |
port: 'COM11' | |
}); | |
board.on("ready", function() { | |
var lcd = new five.LCD({ | |
rows: 4, | |
cols: 20, | |
controller: 'PCF8574' | |
}); | |
lcd.setCursor(5, 0); | |
lcd.print("Hello from"); | |
lcd.setCursor(3, 1); | |
lcd.print("CaptEmulation"); | |
lcd.setCursor(1, 2); | |
lcd.print("johnny-five/issues"); | |
lcd.setCursor(8, 3); | |
lcd.print("326"); | |
this.repl.inject({ | |
lcd: lcd | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment