Closed jahartley closed 2 years ago
Memory usage change @ 16cb2f8a4ef9e57d2e036ea54b688a521601a4d6
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
arduino:mbed_portenta:envie_m7 | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkr1000 | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrfox1200 | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrgsm1400 | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrnb1500 | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrvidor4000 | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrwan1300 | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrwan1310 | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrwifi1010 | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrzero | 0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
Hi @jahartley , you can already change the serial port via the constructor https://github.com/arduino-libraries/ArduinoRS485/blob/master/src/RS485.cpp#L22 . Since it's the recommended and only way to change the DE and RE pins too I would leave no ambiguity and keep it as the only configuration method.
This modification will allow this library to be used with alternate serial ports on boards that have more than one hardware serial port. Changes originally found here: https://forum.arduino.cc/t/arduinomodbus-for-other-shields-and-with-different-serial-port/878764