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.
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Dependents: Ultrasound_And_IMU
Fork of X_NUCLEO_6180XA1 by
Diff: Components/VL6180X/vl6180x_class.h
- Revision:
- 52:fca21e149934
- Parent:
- 51:229ea522cff8
- Child:
- 54:17f3bb228b13
--- a/Components/VL6180X/vl6180x_class.h Mon Sep 12 09:10:29 2016 +0000
+++ b/Components/VL6180X/vl6180x_class.h Tue Sep 27 12:03:25 2016 +0000
@@ -39,7 +39,7 @@
#define __VL6180X_CLASS_H
/* Includes ------------------------------------------------------------------*/
-#include "DistanceSensor.h"
+#include "RangeSensor.h"
#include "LightSensor.h"
#include "DevI2C.h"
//#include "vl6180x_api.h"
@@ -93,7 +93,7 @@
/* Classes -------------------------------------------------------------------*/
/** Class representing a VL6180X sensor component
*/
-class VL6180X : public DistanceSensor, public LightSensor
+class VL6180X : public RangeSensor, public LightSensor
{
public:
/** Constructor 1 (DigitalOut)
@@ -102,7 +102,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) : DistanceSensor(), 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)
{
MyDevice.I2cAddr=DevAddr;
MyDevice.Present=0;
@@ -118,7 +118,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) : DistanceSensor(), 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)
{
MyDevice.I2cAddr=DevAddr;
MyDevice.Present=0;
