UNPKG

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, Raspberry Pi, Spark Core, TI Launchpad and more!

22 lines (16 loc) 391 B
var five = require("../lib/johnny-five"), board, lcd; 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"); });