I'm using a library that, by default, wants to use Serial2 as the interface to a display, however, I'm working with an UNO which only has one serial interface, so the compile fails. I'm trying to use a SoftwareSerial instead, but I can't figure out how to override the #define statement in the library without editing the library.
I'm guessing since the software serial port isn't generated at compile time, I can't.
#include <SoftwareSerial.h>
#define nexSerial HMI
#include <Nextion.h>
SoftwareSerial HMI(8,9);
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
I haven't started writing code yet, can't get past the attempt to redirect the serial interface to a software serial.