I have the FDTI connected via usb to my mac and the arduino programming port connected via usb to my mac to a seperate usb-c port n the mac.
I want to see the mySerial print logs in the serial monitor. But I can't see them. I only see the regular Serial port logs. I tried switching the port on the Arduino IDE but then I get no logs.
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // RX, TX
void setup() {
Serial.begin(9600);
// Start the USB serial connection with the computer
// Start the software serial connection
mySerial.begin(9600);
pinMode(LED_BUILTIN, OUTPUT);
Serial.println("<Arduino is ready>");
}
void loop() {
mySerial.println("the software serial");
Serial.println("the regular Serial");
digitalWrite(LED_BUILTIN, HIGH);
delay(300);
digitalWrite(LED_BUILTIN, LOW);
delay(300);
delay(3000);
}
Why on Earth are you using pins 0 and 1 for SoftwareSerial ? They are used by the hardware Serial interface
If you want to print what is received on a SoftwareSerial interface then use other pins when you create it. When data is available() on the SS interface, read each byte and print it to Serial as normal