Skip to content

Commit b81356b

Browse files
committed
Update README.md
Many processors, now days have more than one hardware I2C on them. Sometimes it is convenient to use a different I2C object like Wire1 or Wire2 instead of the default Wire object. This change allows you to pass in a pointer to the desired I2C(Wire) object on the constructor. which defaults to Wire. This change requires the main header file to include the wire.h header file.
1 parent ec63db2 commit b81356b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ This library is intended to provide a quicker and easier way to get started usin
7474
* `uint8_t last_status`<br>
7575
The status of the last I&sup2;C write transmission. See the [`Wire.endTransmission()` documentation](http://arduino.cc/en/Reference/WireEndTransmission) for return values.
7676

77-
* `VL53L0X(void)`<br>
78-
Constructor.
77+
* `VL53L0X(TwoWire *theWire = &Wire)`<br>
78+
Constructor. Optionally for systems with mutliple Wire objects, you can choose which Wire object this object should use.
7979

8080
* `void setAddress(uint8_t new_addr)`<br>
8181
Changes the I&sup2;C slave device address of the VL53L0X to the given value (7-bit).

0 commit comments

Comments
 (0)