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
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'); |