chanbennet
Member
Hi all,
Seem to be having issues utilizing software serial to write on pins 3 and 4 on a teensy 4.0. Checked connections (RX to TX and vice versa), shared grounds, etc. Here is the code. I know hardware serial is better but project will require usage of those for other things. Any help or insights are much appreciated.
Seem to be having issues utilizing software serial to write on pins 3 and 4 on a teensy 4.0. Checked connections (RX to TX and vice versa), shared grounds, etc. Here is the code. I know hardware serial is better but project will require usage of those for other things. Any help or insights are much appreciated.
Code:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(4, 3); // RX is pin 4 (not used), TX is pin 3
void setup() {
mySerial.begin(9600);
Serial.begin(9600);
while (!Serial);
Serial.println("Starting communication on SoftwareSerial TX pin 3...");
}
void loop() {
mySerial.println("Hello from Teensy");
Serial.println("Debug: Hello from Teensy");
delay(1000);
}