Arduino LED Hello World

Beginner to P5js and Arduinos.

Trying to setup a LED on the Arduino (windows machine + dont have a rgb LED) to blink on arrow key press for the Hello World setup. Using the example files I have commented in the LED on and off section within the quicktest.js file so as to avoid the rgb LED example in the diagrams.

Launched the p5js-server example file using the command line example in the hello world “bots-go -d”. Cant get past an error saying: “sp is not defined”

C:\Users\username>bots-go -d D:\Username\Projects\Processing\p5js\helloWorld
server starting
    sp.list(function (err, ports) {

ReferenceError: sp is not defined
    at Socket.<anonymous> (C:\Users\usernmae\AppData\Roaming\npm\node_modules\p5bots-server\lib\serial.js:50:5)
    at emitNone (events.js:106:13)
    at Socket.emit (events.js:208:7)
    at C:\Users\username\AppData\Roaming\npm\node_modules\p5bots-server\node_modules\\lib\socket.js:503:12
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)

not sure how it relates as I have not changed anything there?
Thanks for your time :sunny:

1 Like