We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b000358 commit c78a515Copy full SHA for c78a515
src/RS485.h
@@ -30,7 +30,6 @@
30
#endif
31
32
33
-#ifndef RS485_DEFAULT_DE_PIN
34
#ifdef __AVR__
35
#define RS485_DEFAULT_DE_PIN 2
36
#define RS485_DEFAULT_RE_PIN -1
@@ -41,11 +40,19 @@
41
40
#define RS485_DEFAULT_DE_PIN A4
42
#define RS485_DEFAULT_RE_PIN A5
43
#else
+#ifndef RS485_DEFAULT_DE_PIN
44
#define RS485_DEFAULT_DE_PIN A6
45
46
47
48
49
+#ifdef CUSTOM_RS485_DEFAULT_DE_PIN
50
+# define RS485_DEFAULT_DE_PIN CUSTOM_RS485_DEFAULT_DE_PIN
51
+#endif
52
+
53
+#ifdef CUSTOM_RS485_DEFAULT_RE_PIN
54
+# define RS485_DEFAULT_RE_PIN CUSTOM_RS485_DEFAULT_RE_PIN
55
56
57
#define RS485_DEFAULT_PRE_DELAY 50
58
#define RS485_DEFAULT_POST_DELAY 50
0 commit comments