Hi all,
I recently bought an Arduino Uno and would like to pair it with P5.JS, but I keep getting the same error in my P5.JS sketch: ws://localhost:8081
Something went wrong with the serial port. undefined
I have a MacBook and use the default P5.JS editor, I follow this tutorial: Tutorial: Serial Communication with Arduino and p5.js | by Irene Ye Yuan | Medium
and use the p5.serialcontrol as suggested in the tutorial. and here comes my guess as to where the error lies:
In the Arduino Editor, the board is shown to me under the port: /dev/cu.usbserial-14620 and in the p5.serialcontroll the board is shown to me under the port: /dev/tty.usbserial-14620. I can't find a way to get the two ports to match.
In the Arduino Editor all ports are displayed with /cu. and in the Serial Controller all only with /tty.. Can someone help me, or at least tell me if this could really be the error why I always get this error message?
Kind regards MrSweezy