We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be05de4 commit 9831264Copy full SHA for 9831264
README.md
@@ -48,6 +48,19 @@ necessary:
48
from the sensor, but return the values read last. To read a new sample, make
49
sure to call `readSample()`
50
51
+### Using an custom or alternative I2C port/Wire instance
52
+
53
+Some Arduino boards have multiple predefined I2C ports; generally, the second port will be called `Wire1`.
54
55
+The `arduino-sht` library allows to use an alternative interface; to do so, pass the port you want to use as an argument to `sht.init()`, like this:
56
+```
57
+ if (sht.init(Wire1)) {
58
+ Serial.print("init(): success\n");
59
+ } else {
60
+ Serial.print("init(): failed\n");
61
+ }
62
63
64
## Example projects
65
66
See example project
0 commit comments