Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: vl6180x_class.h
- Revision:
- 1:af4be6eecff0
- Parent:
- 0:15e49005d54e
- Child:
- 2:40f590e28101
--- a/vl6180x_class.h Thu Mar 09 18:43:54 2017 +0000
+++ b/vl6180x_class.h Wed Mar 22 20:55:05 2017 +0000
@@ -97,9 +97,10 @@
* @param[in] &i2c device I2C to be used for communication
* @param[in] &pin Mbed DigitalOut pin to be used as component GPIO_0 CE
* @param[in] &pin_gpio1 pin Mbed InterruptIn PinName to be used as component GPIO_1 INT
+ * @param[in] &mixChannel channel for i2c mux
* @param[in] DevAddr device address, 0x29 by default
*/
- VL6180X(DevI2C &i2c, DigitalOut &pin, PinName pin_gpio1, uint8_t DevAddr=DEFAULT_DEVICE_ADDRESS) : dev_i2c(i2c), gpio0(&pin)
+ VL6180X(DevI2C &i2c, DigitalOut &pin, PinName pin_gpio1, uint8_t muxChannel, uint8_t DevAddr=DEFAULT_DEVICE_ADDRESS) : dev_i2c(i2c), gpio0(&pin)
{
MyDevice.I2cAddr=DevAddr;
@@ -112,9 +113,10 @@
/** Constructor 2 (STMPE1600DigiOut)
* @param[in] i2c device I2C to be used for communication
* @param[in] pin_gpio1 pin Mbed InterruptIn PinName to be used as component GPIO_1 INT
+ * @param[in] &mixChannel channel for i2c mux
* @param[in] device address, 0x29 by default
*/
- VL6180X(DevI2C &i2c, PinName pin_gpio1, uint8_t DevAddr=DEFAULT_DEVICE_ADDRESS) : dev_i2c(i2c)
+ VL6180X(DevI2C &i2c, PinName pin_gpio1, uint8_t muxChannel, uint8_t DevAddr=DEFAULT_DEVICE_ADDRESS) : dev_i2c(i2c)
{
MyDevice.I2cAddr=DevAddr;
MyDevice.Present=0;