Timing Problem xxx

The link in my referenced post is no longer valid…

I came across this:

I also watch the status LEDs on the Arduino to observe this.

My hardware is a W10 PC and a USB connection (serial over USB) to to an Arduino MEGA 2560 R3.

Just adding this at end of setup worked on my end:
delay(1000);

Your code is sending serial data 60 fps:

With your code the Rx LED is ON all the time.

Try this on the Processing side:

Processing only Tx when there is a state change (see code) and I see the RX light turn on and off only during this change.

:)