Hi
I am trying to get UART working across two RTL8720DN boards.
I am using one RTL8720DN as the master and the second RTL8720DN as the slave. Just wondering if the code I have would work.
#include <SoftwareSerial.h>
#define BLUE_LED PA13 // also known as PA13 in BW16 module (see variant.h)
SoftwareSerial Serial2(PA30, PA26); // RX, TX
void setup() {
// put your setup code here, to run once:
Serial2.begin(115200); // initialize UART with the second board with baud rate of 9600
}
void loop() {
// put your main code here, to run repeatedly:
Serial2.println(3);
delay(5000);
}
You can see that I have chosen two random pins and allocated them as serial pins. Is this okay or should I use the specified Serial RX (PB2) and Serial TX (PB1) for serial communication between the two boards?
Thanks.