Strange readings on serial1 with teensy3

Status
Not open for further replies.

lollotek

New member
with an easy program like this:

Code:
void setup() {
	Serial1.begin(57600);
}

void loop() {
        int incomingByte;
        
	if (Serial1.available() > 0) {
		incomingByte = Serial1.read();
		Serial1.write(incomingByte);
	}
        Serial1.println("12345");
}

I recivie this loop response:
Code:
12345
112345
212345
312345
412345
512345

12345

12345
112345
212345
312345
412345
512345

12345

The RX of serial is not connected and i read the TX through an arduino.

Seems like that I get on serial with "Serial1.read()" is what I previusly sent, how is possible ?
and I see this problem on all of my ports..
I broke somethink?
 
Status
Not open for further replies.
Back
Top