Hi I'm using two teensy 4.1s plugged into two different ports on my computer. I'm trying to sync their start times up before they enter the void loop. I was thinking that in the setup I have them both wait until I press enter and then they should both start the loop at the same time. I put this at the end of both of the void setups
while (Serial.available()) {Serial.read();}
Serial.println("PRESS ENTER TO START");
while (!Serial.available()) {;}
but when I press enter it only sends through one port and not the other. Is there a way to send it through both ports at the same time?
You read a byte from the port - so what? Where do you use it?
Why do you expect that you will send a signal through two ports if you did not send anything to this port?