1Serial1 on an Uno or Nano
The SoftwareSerial library makes a second port on any two pins. It is slower and cannot send and receive at once at high speed, which is fine for a GPS or a Bluetooth module.
void setup() {
Serial.begin(9600);
Serial1.begin(9600);
Serial.println("ok");
}
void loop() {
}#include <SoftwareSerial.h>
SoftwareSerial port(10, 11);
void setup() {
Serial.begin(9600);
port.begin(9600);
Serial.println("ok");
}
void loop() {
}Mokxi’s build tab says: This board has no Serial1: its one hardware serial port is Serial.