johnny-five
Version:
The JavaScript Robotics and Hardware Programming Framework. Use with: Arduino (all models), Electric Imp, Beagle Bone, Intel Galileo & Edison, Linino One, Pinoccio, pcDuino3, Raspberry Pi, Particle/Spark Core & Photon, Tessel 2, TI Launchpad and more!
18 lines (15 loc) • 378 B
JavaScript
var five = require("../lib/johnny-five");
var board = new five.Board();
board.on("ready", function() {
var l = new five.LCD({
controller: "PCF8574T",
rows: 4,
cols: 20
});
l.useChar("heart");
l.cursor(0, 0).print("hello :heart:");
l.blink();
l.cursor(1, 0).print("Blinking? ");
l.cursor(2, 0).print("3rd row");
l.cursor(3, 0).print("4th row");
});