Skip to content

Commit e0b7124

Browse files
committed
map
1 parent ffe669e commit e0b7124

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/arduino/zephyrCommon.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,11 @@ PinStatus digitalRead(pin_size_t pinNumber) {
221221
}
222222

223223
#ifndef MAX_TONE_PINS
224+
#if DT_NODE_HAS_PROP(DT_PATH(zephyr_user), digital_pin_gpios)
224225
#define MAX_TONE_PINS DT_PROP_LEN(DT_PATH(zephyr_user), digital_pin_gpios)
226+
#elif defined(ZARD_CONNECTOR)
227+
#define MAX_TONE_PINS DT_PROP_LEN(DT_NODELABEL(ZARD_CONNECTOR), gpio_map)
228+
#endif
225229
#endif
226230

227231
struct pin_timer {

0 commit comments

Comments
 (0)