Skip to content

Commit

Permalink
Merge pull request #51 from arduino-libraries/custom-re-de-pin
Browse files Browse the repository at this point in the history
Allow definition of RE/DE pin via C-Defines
  • Loading branch information
aentinger committed Feb 28, 2024
2 parents 8bdcaa1 + c78a515 commit dbcb445
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/RS485.h
Expand Up @@ -46,6 +46,13 @@
#endif
#endif

#ifdef CUSTOM_RS485_DEFAULT_DE_PIN
# define RS485_DEFAULT_DE_PIN CUSTOM_RS485_DEFAULT_DE_PIN
#endif

#ifdef CUSTOM_RS485_DEFAULT_RE_PIN
# define RS485_DEFAULT_RE_PIN CUSTOM_RS485_DEFAULT_RE_PIN
#endif

#define RS485_DEFAULT_PRE_DELAY 50
#define RS485_DEFAULT_POST_DELAY 50
Expand Down

0 comments on commit dbcb445

Please sign in to comment.