Skip to content

Instantly share code, notes, and snippets.

View afonsomota's full-sized avatar

Afonso Oliveira afonsomota

  • IST - Instituto Superior Técnico
  • Lisbon, Portugal
View GitHub Profile
@afonsomota
afonsomota / main.js
Last active August 29, 2015 14:04
Johnny-Five Analog HTTP Plottter
var http = require('http'),
five = require('johnny-five'),
board = new five.Board(),
server = http.createServer().listen(8000), //I donnot serve the file (YET), run the HTML file directly
io = require('socket.io')(server);
var values = [];
board.on('ready',function(){
console.log('ready');