Library for the NucleoVl53L1 shield and the Vl53L1
Dependencies: VL53L1
Dependents: VL53L1CB_shield_sensor_polling VL53L1CB_MB2_NoShield_3sensors_interrupt_ranging VL53L1CB_MB5_NoShield_3sensors_interrupt_ranging VL53L1CB_MB5_NoShield_3sensors_interrupt_ranging
Diff: XNucleo53L1A2.h
- Revision:
- 6:070884954aae
- Parent:
- 5:25be5ff92db5
- Child:
- 8:074d411a56f3
--- a/XNucleo53L1A2.h Mon Nov 09 17:09:15 2020 +0000 +++ b/XNucleo53L1A2.h Fri May 07 08:53:56 2021 +0000 @@ -1,10 +1,10 @@ /** ****************************************************************************** - * @file XNucleo53L1.h + * @file XNucleo53L1A2.h * @author JS * @version V0.0.1 * @date 15-January-2019 - * @brief Header file for component XNucleo53L1 + * @brief Header file for component XNucleo53L1A2 ****************************************************************************** * @attention * @@ -35,8 +35,8 @@ ****************************************************************************** */ -#ifndef __VL53L1_X_NUCLEO_CLASS_H -#define __VL53L1_X_NUCLEO_CLASS_H +#ifndef __VL53L1_A2_NUCLEO_CLASS_H +#define __VL53L1_A2_NUCLEO_CLASS_H /* Includes ------------------------------------------------------------------*/ @@ -84,8 +84,7 @@ /** Constructor 2 * @param[in] &i2c device I2C to be used for communication - * @param[in] PinName gpio1_top Mbed DigitalOut pin name to be used as a top sensor GPIO_1 INT - * @param[in] PinName gpio1_bottom Mbed DigitalOut pin name to be used as a bottom sensor GPIO_1 INT + * @param[in] PinName gpio1_centre Mbed DigitalOut pin name to be used as a centre sensor GPIO_1 INT * @param[in] PinName gpio1_left Mbed DigitalOut pin name to be used as a left sensor GPIO_1 INT * @param[in] PinName gpio1_right Mbed DigitalOut pin name to be used as a right sensor GPIO_1 INT */ @@ -156,7 +155,7 @@ /** * @brief Creates a singleton object instance * @param[in] &i2c device I2C to be used for communication - * @param[in] PinName gpio1_centre the pin connected to top sensor INT + * @param[in] PinName gpio1_centre the pin connected to centre sensor INT * @param[in] PinName gpio1_left the pin connected to left sensor INT * @param[in] PinName gpio1_right the pin connected to right sensor INT * @return Pointer to the object instance @@ -171,11 +170,14 @@ int init_board(); ToF_DevI2C *dev_i2c; + VL53L1 *sensor_centre; VL53L1 *sensor_left; VL53L1 *sensor_right; + Stmpe1600 *stmpe1600_exp0; Stmpe1600 *stmpe1600_exp1; + Stmpe1600DigiOut *xshutdown_centre; Stmpe1600DigiOut *xshutdown_left; Stmpe1600DigiOut *xshutdown_right; @@ -185,4 +187,4 @@ }; -#endif /* __VL53L1_X_NUCLEO_CLASS_H */ \ No newline at end of file +#endif /* __VL53L1_A2_NUCLEO_CLASS_H */ \ No newline at end of file