Skip to content

Commit 876781d

Browse files
committed
Add default AVR specific DE and RE pin values
1 parent 7391a7d commit 876781d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/RS485.h

+5
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@
2828
#define RS485_DEFAULT_TX_PIN 1
2929
#endif
3030

31+
#ifdef __AVR__
32+
#define RS845_DEFAULT_DE_PIN 2
33+
#define RS845_DEFAULT_RE_PIN -1
34+
#else
3135
#define RS845_DEFAULT_DE_PIN A6
3236
#define RS845_DEFAULT_RE_PIN A5
37+
#endif
3338

3439
class RS485Class : public Stream {
3540
public:

0 commit comments

Comments
 (0)