You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many processors, now days have more than one hardware I2C on them. Sometimes it is convienent 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.
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,8 +74,8 @@ This library is intended to provide a quicker and easier way to get started usin
74
74
*`uint8_t last_status`<br>
75
75
The status of the last I²C write transmission. See the [`Wire.endTransmission()` documentation](http://arduino.cc/en/Reference/WireEndTransmission) for return values.
76
76
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.
79
79
80
80
*`void setAddress(uint8_t new_addr)`<br>
81
81
Changes the I²C slave device address of the VL53L0X to the given value (7-bit).
0 commit comments