8000 Adds definition for WIRE_INTERFACES_COUNT #1182 (#1921) · LinusHeu/arduino-pico@0425552 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0425552

Browse files
authored
Adds definition for WIRE_INTERFACES_COUNT earlephilhower#1182 (earlephilhower#1921)
* Adds definition for WIRE_INTERFACES_COUNT so those libraries which rely on it can detect and use... Wire1. e.g. u8g2 will not use Wire1 unless this is (a) defined and (b) >1. This constant is defined on other cores, e.g. for SAMD based boards.
1 parent 24f6302 commit 0425552

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

variants/generic/common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#define NUM_ANALOG_INPUTS (4u)
88
#define NUM_ANALOG_OUTPUTS (0u)
99
#define ADC_RESOLUTION (12u)
10+
#define WIRE_INTERFACES_COUNT (WIRE_HOWMANY)
1011

1112
#ifdef PIN_LED
1213
#define LED_BUILTIN PIN_LED

0 commit comments

Comments
 (0)
0