Hello,
You should know this.
You must connect to the correct COM port with Processing.
Your BAUD rates are not matched; they should be the same.
It is not good practice to have a delay()
in draw().
Look up the reference for delay() in Processing.
I get something:
And later:
I did not scrutinize your code any further.
It is always a good practice to write separate simple working code to:
- communicate between Arduino and Processing
- control, animate or data visualize
Once you have each of these working then integrate the two.
:)