Skip to content

Commit 1e3123c

Browse files
committed
Board specific instance
1 parent 0d0c4ad commit 1e3123c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/BARO.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,8 @@ int LPS22HBClass::i2cWrite(uint8_t reg, uint8_t val)
102102
return 1;
103103
}
104104

105+
#ifdef ARDUINO_ARDUINO_NANO33BLE
105106
LPS22HBClass BARO(Wire1);
107+
#else
108+
LPS22HBClass BARO(Wire);
109+
#endif

0 commit comments

Comments
 (0)