Built-in Examples Create a Graph with Processing

Hello Arduino Community,

I was trying to copy paste some examples from here (https://docs.arduino.cc/built-in-examples), and concretely in the Section "Communication" - Create a Graph with Processing (https://docs.arduino.cc/built-in-examples/communication/Graph), the code does not seem to work for me. My poor level of knowledge on the topic doesnt allow me to understand the error, so any help and clarification will be awesome.

the consol messages me that the function
void serialEvent (Serial myPort) {
...
}
should not be void (I have not change a single thing in the code, so coming from an offitial tutorial surprises me).
My guess however, if it helps to solve it, is around the serial port used? The code creator notes he used "the first port in the serial list on the mac, so he opens Serial.list()[0]".

I am truly lost to start tweaking code, so again, help to discuss is appreciated.
David

Your post doesn't really have the flavor of a tutorial, for me.  Click on the flag icon and have a mod move it to a more appropriate section.  And, if you haven't already, read the posting guidelines.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.