ArduinoRS485
ArduinoRS485 copied to clipboard
Add support for RS485 on Controllino Maxi/Mega
Support for RS485 on Controllino Maxi/Mega
- This PR adds support for RS485 integrated into Controllino Maxi/Mega boards.
- These boards use different PINs and different Serial object. Otherwise, the logic works the same.
- I added a simple
#ifdef...endif
clause to check for these boards. - If users include the CONTROLLINO library, these flags are set for them. Including their library is recommended by their official guides. As an alternative, users can just set the flag
#define CONTROLLINO_MAXI
or#define CONTROLLINO_MEGA
in their sketch. In such a case, I added a clause insidesrc/RS485.h
, which tries to load theCONTROLLINO
library.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.
:white_check_mark: vzahradnik
:x: Robert-Faltus
You have signed the CLA already but the status is still pending? Let us recheck it.
We at Controllino are now updating our board support packages and we pretend to ad support for ArduinoRS485 by defining RS485_SERIAL_PORT, RS485_DEFAULT_TX_PIN, RS485_DEFAULT_RE_PIN, RS485_DEFAULT_DE_PIN we just need the small change on #46, anyway thanks to @vzahradnik for this effort 👍
I am closing this PR, since the intended functionality has been achieved via merging #51 .