Skip to content

Commit 2c671b1

Browse files
committed
Default to Wire for all boards except UNO R4
1 parent a2f4a95 commit 2c671b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Modulino.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@
1616

1717
class ModulinoClass {
1818
public:
19+
#ifdef ARDUINO_UNOR4_WIFI
1920
void begin(HardwareI2C& wire = Wire1) {
21+
#else
22+
void begin(HardwareI2C& wire = Wire) {
23+
#endif
24+
2025
#ifdef ARDUINO_UNOR4_WIFI
2126
// unlock Wire1 bus at begin since we don't know the state of the system
2227
pinMode(WIRE1_SCL_PIN, OUTPUT);

0 commit comments

Comments
 (0)