INSAT Mini Project
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Fork of X_NUCLEO_6180XA1 by
Diff: Components/VL6180X/VL6180X.h
- Revision:
- 58:1e9a3a46f814
- Parent:
- 57:fa4c622b04a7
--- a/Components/VL6180X/VL6180X.h Mon Mar 13 19:08:10 2017 +0000 +++ b/Components/VL6180X/VL6180X.h Mon Aug 21 15:44:34 2017 +0000 @@ -130,7 +130,7 @@ * @param[in] &pin_gpio1 pin Mbed InterruptIn PinName to be used as component GPIO_1 INT * @param[in] DevAddr device address, 0x29 by default */ - VL6180X(DevI2C &i2c, DigitalOut &pin, PinName pin_gpio1, uint8_t DevAddr=DEFAULT_DEVICE_ADDRESS) : RangeSensor(), LightSensor(), _dev_i2c(i2c), _gpio0(&pin) + VL6180X(DevI2C &i2c, DigitalOut &pin, PinName pin_gpio1, uint8_t DevAddr=DEFAULT_DEVICE_ADDRESS) : RangeSensor(), LightSensor(), _dev_i2c(&i2c), _gpio0(&pin) { _my_device.I2cAddr=DevAddr; _my_device.Present=0; @@ -149,7 +149,7 @@ * @param[in] pin_gpio1 pin Mbed InterruptIn PinName to be used as component GPIO_1 INT * @param[in] device address, 0x29 by default */ - VL6180X(DevI2C &i2c, STMPE1600DigiOut &pin, PinName pin_gpio1, uint8_t DevAddr=DEFAULT_DEVICE_ADDRESS) : RangeSensor(), LightSensor(), _dev_i2c(i2c), _expgpio0(&pin) + VL6180X(DevI2C &i2c, STMPE1600DigiOut &pin, PinName pin_gpio1, uint8_t DevAddr=DEFAULT_DEVICE_ADDRESS) : RangeSensor(), LightSensor(), _dev_i2c(&i2c), _expgpio0(&pin) { _my_device.I2cAddr=DevAddr; _my_device.Present=0; @@ -1256,7 +1256,7 @@ int AlsGetThresholds(VL6180XDev_t dev, lux_t *low, lux_t *high); /* IO _device */ - DevI2C &_dev_i2c; + DevI2C *_dev_i2c; /* Digital out pin */ DigitalOut *_gpio0; /* GPIO expander */