We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7c4f30a + 1043c7c commit 52541a1Copy full SHA for 52541a1
1 file changed
cores/arduino/Arduino.h
@@ -80,6 +80,7 @@
80
#else
81
82
#if DT_NODE_EXISTS(DT_NODELABEL(arduino_header))
83
+#if DT_NODE_HAS_COMPAT(DT_NODELABEL(arduino_header), arduino_header_r3)
84
#define ZARD_CONNECTOR arduino_header
85
86
#define ZARD_ARDUINO_HEADER_R3_PIN_NAME_A_0 A0
@@ -129,6 +130,9 @@
129
130
#define ZARD_ARDUINO_HEADER_R3_IS_DIGITAL_20 1
131
#define ZARD_ARDUINO_HEADER_R3_IS_DIGITAL_21 1
132
133
+#else
134
+#error "Only arduino-header-r3 connector is supported"
135
+#endif
136
#endif
137
138
#if DT_NODE_EXISTS(DT_NODELABEL(arduino_adc))
0 commit comments