Skip to content

Instantly share code, notes, and snippets.

@rwaldron
Last active June 20, 2016 17:19
Show Gist options
  • Save rwaldron/2ef30fab2fc9e65189ba32123dea40ad to your computer and use it in GitHub Desktop.
Save rwaldron/2ef30fab2fc9e65189ba32123dea40ad to your computer and use it in GitHub Desktop.
Gistorial: Grove RGB LCD with Tessel 2
var Tessel = require("tessel-io");
var five = require("johnny-five");
var board = new five.Board({
io: new Tessel()
});
board.on("ready", function() {
var lcd = new five.LCD({
controller: "JHD1313M1"
});
lcd.bgColor("ff0000");
lcd.cursor(0, 0).print("Hello!").cursor(1, 0).print("I'm a Tessel 2");
});
mkdir lcd-rgb; cd lcd-rgb;
t2 init;
npm install johnny-five tessel-io;

Then either edit index.js by hand, or run:

rm index.js;
wget https://gist.githubusercontent.com/rwaldron/2ef30fab2fc9e65189ba32123dea40ad/raw/index.js

Now you can deploy to Tessel 2:

t2 run index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment