Discussion Forums

Serial1 Problem

#1

Hey guys…

i got a readbear duo and want to send data via uart to another mcu. The problem is, serial1 is not set up and available.

Can u help me pls? Thanks… Code below

void setup() {
Serial1.begin(115200);
Serial.begin(115200);
}

void loop() {
if (Serial1.available())
{
int inByte = 100;
Serial.println(“Serial1 ready”);
Serial1.write(inByte);
}

}