Skip to content

Commit f30cd2e

Browse files
author
Nathan Seidle
committed
Add wire.begin to example.
1 parent ada7b0a commit f30cd2e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/Example8_OtherI2C/Example8_OtherI2C.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ long t1, t2;
2121

2222
void setup() {
2323
Serial.begin(9600);
24+
Wire.begin();
25+
2426
//Initialize sensor, specifying I2C port
2527
if (mySensor.begin(Wire) == false) {
2628
Serial.println("No SGP30 Detected. Check connections.");

0 commit comments

Comments
 (0)