Hello! I'm trying to setup the hello world example but the Arduino is not interacting with the browser, also I can not install the p5bots-server, instead of it I'm using http-server of node.
var b = p5.board('/dev/cu.usbmodemFA131', 'arduino');
var led;
function setup() {
led = b.pin(13, 'LED');
}
function keyPressed() {
if (keyCode === LEFT_ARROW){
led.on();
} else if (keyCode === RIGHT_ARROW) {
led.off();
} else if (keyCode === UP_ARROW){
led.blink();
console.log('Hello, World!');
} else if (keyCode === DOWN_ARROW) {
led.noBlink();
}
}
Hello! I'm trying to setup the hello world example but the Arduino is not interacting with the browser, also I can not install the p5bots-server, instead of it I'm using http-server of node.
index.html:
sketch.js: