Hi guys,
My project uses the RemoteXY library (public domain), but that library does not currently support the board I am using (Teensy 3.2)
To get my project to compile, I choose the Arduino Micro in the RemoteXY configuration, which then quotes "Serial1" for the hardware serial port, and it all works as it should on Rx1 and Tx1
However, I now need to use the Serial1 port for debugging on the IDE, so RemoteXY needs to be modified to use Serial2 for communication with an ESP8266 module. The project will compile if I change the port spec to Serial2, but RemoteXY will not know anything about this, nor will it know which pins to use for Rx2 and Tx2, and presumably is still looking for comms on Rx1 and Tx1.
// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP8266_HARDSERIAL_POINT
#include <RemoteXY.h>
// RemoteXY connection settings
#define REMOTEXY_SERIAL Serial2
#define REMOTEXY_SERIAL_SPEED 115200
#define REMOTEXY_WIFI_SSID "BaitBoat"
#define REMOTEXY_WIFI_PASSWORD "12345678"
#define REMOTEXY_SERVER_PORT 6377
I have looked at the library code, and to be honest, a lot of it is way above my comprehension, but it looks to me like it should be possible to steer RemoteXY to Serial2 away from Serial1
I'm thinking that some modifications must be made in serial.h and possibly RemoteXY_Serial.h, but
I have attached the whole of the library, and hoping I'm not leading myself up a dark alley...
TIA
RemoteXY.zip (36.6 KB)