Processing quiz

Hello @Rayenblue,

If you are in fact connecting you need a shape to fill() !
Your code is missing one.

You could also add:

val = myPort.read();
println(val);

This will show all the extra characters you are sending; you are sending '0' or else… the else is all the extra characters from your Serial.print() statements.

What does this (below) display on your console?

My Arduino is on “COM6” so I would use:

  String portName = Serial.list()[1];
  myPort = new Serial(this, portName, 9600);

Have fun!

References:

:)

1 Like