charles macneill
/
VL53L3CX_NoShield_1Sensors_interrupt
Uses Ayoub's Custom library.
Diff: main.cpp
- Revision:
- 3:025bcf0d211d
- Parent:
- 2:2489dfbd49d7
--- a/main.cpp Wed Jul 21 12:33:05 2021 +0000 +++ b/main.cpp Wed Jul 21 14:51:14 2021 +0000 @@ -45,13 +45,6 @@ PinName InterruptPins[] ={D8,A2,D2}; // interrupt pins for the three sensors. // these will depend on how the sensor is wired -static const char *TofDevStr[] = -{ - [SENSOR_LEFT_NUMBER] = "LEFT", - [SENSOR_CENTRE_NUMBER] = "CENTER", - [SENSOR_RIGHT_NUMBER] = "RIGHT" -}; - /* Private variables ---------------------------------------------------------*/ static int32_t status = 0; @@ -153,15 +146,6 @@ } } } - /* - if ((status == BSP_ERROR_NONE) && - (Result.NumberOfZones != 0) && - (Result.ZoneResult[0].Status[0] == BSP_ERROR_NONE )) - { - printf("\n%s\t - ", TofDevStr[ToF_sensor]); - print_result(&Result); - } - */ } }