Initial release to ST Sw Expansion Team Repo.
Dependencies: VL53L3CX_mbed
Dependents: VL53L3CX_Shield_Polling VL53L3CX_Shield_Polling VL53L3CX_Shield_Polling_v5_15 VL53L3_shield_1sensor_polling_Mb515 ... more
Diff: XNucleo53L3A2.h
- Revision:
- 11:cccb5f470785
- Parent:
- 10:12c0dd3cba9b
- Child:
- 12:3596d0435199
diff -r 12c0dd3cba9b -r cccb5f470785 XNucleo53L3A2.h --- a/XNucleo53L3A2.h Tue Nov 10 08:35:04 2020 +0000 +++ b/XNucleo53L3A2.h Tue Nov 10 08:43:07 2020 +0000 @@ -49,16 +49,9 @@ /** New device addresses */ -///#define NEW_SENSOR_CENTRE_ADDRESS 0x52 -//#define NEW_SENSOR_CENTRE_ADDRESS 0x54 -///#define NEW_SENSOR_LEFT_ADDRESS 0x54 -///#define NEW_SENSOR_RIGHT_ADDRESS 0x56 - - #define NEW_SENSOR_CENTRE_ADDRESS 0x56 - -#define NEW_SENSOR_LEFT_ADDRESS 0x58 -#define NEW_SENSOR_RIGHT_ADDRESS 0x5a +#define NEW_SENSOR_LEFT_ADDRESS 0x58 +#define NEW_SENSOR_RIGHT_ADDRESS 0x5A /* Classes--------------------------------------------------------------------*/ @@ -75,7 +68,7 @@ XNucleo53L3A2(vl53L3_DevI2C *ext_i2c) : dev_i2c(ext_i2c) { - printf("XNucleo53L3A2 %d z\n",ext_i2c); + printf("XNucleo53L3A2 %d z\n",ext_i2c); stmpe1600_exp0 = new Stmpe1600((DevI2C*)ext_i2c, (0x43 * 2)); // U21 stmpe1600_exp1 = new Stmpe1600((DevI2C*)ext_i2c, (0x42 * 2)); // U19 @@ -178,12 +171,16 @@ */ int init_board(); + vl53L3_DevI2C *dev_i2c; + VL53L3 *sensor_centre; VL53L3 *sensor_left; VL53L3 *sensor_right; + Stmpe1600 *stmpe1600_exp0; Stmpe1600 *stmpe1600_exp1; + Stmpe1600DigiOut *xshutdown_centre; Stmpe1600DigiOut *xshutdown_left; Stmpe1600DigiOut *xshutdown_right;