Skip to content

Commit

Permalink
Fix: Arduino Zero does not define A6. (#34)
Browse files Browse the repository at this point in the history
By providing different default pins for DE/RE CI build errors can be prevented.
  • Loading branch information
aentinger authored Dec 29, 2022
1 parent a6a43bc commit 4e15133
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/RS485.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
#elif ARDUINO_NANO_RP2040_CONNECT
#define RS485_DEFAULT_DE_PIN A1
#define RS485_DEFAULT_RE_PIN A0
#elif ARDUINO_SAMD_ZERO
#define RS485_DEFAULT_DE_PIN A4
#define RS485_DEFAULT_RE_PIN A5
#else
#ifndef RS485_DEFAULT_DE_PIN
#define RS485_DEFAULT_DE_PIN A6
Expand Down

0 comments on commit 4e15133

Please sign in to comment.