This patch extends MarlinSerial to be able different objects to be created for the different serial ports. Right now, up to 4 are supported. I have only tested ports 0 (the default port) and 2. There is also an addition to create a second port if PROJECTOR_SERIAL_PORT is defined on Configuration.h and use that for a projector. It may not compile of PROJECTOR_SERIAL_PORT is not defined as I have not bothered to test that and fix any issues.
This patch extends MarlinSerial to be able different objects to be created for the different serial ports. Right now, up to 4 are supported. I have only tested ports 0 (the default port) and 2. There is also an addition to create a second port if PROJECTOR_SERIAL_PORT is defined on Configuration.h and use that for a projector. It may not compile of PROJECTOR_SERIAL_PORT is not defined as I have not bothered to test that and fix any issues.