p5bots
p5bots copied to clipboard
cant get RGB to work
Trying to connect to my arduino through the RGB example. Im having difficulty confirming that the board is connecting, in fact If I console.log
p5.board = function (port, type){ utils.board = new Board(port, type);
// also emit board object & listen for return utils.boardInit(port, type); utils.socket.on('board ready', function(data) { utils.board.ready = true; console.log(utils.board.ready); // utils.board.analogPins = data.analogArr; utils.board.eventQ.forEach(function(el){ el.func.apply(null, el.args); }); });
return utils.board;
it returns false. I am trying to determine if this is all because of outdated code with sockets.io bieng version 2.0 now or if I am doing something incorrect.