A sample program getting measurements from a VL53L1CB ToF sensors which are directly connected to the STM32F401. Copes with three sensors. Interrupt mode. VL53L1 is operated in ranging mode. MBed V2.
Dependencies: mbed X_NUCLEO_53L1CB
Revision 1:02f2b9e04b46, committed 2021-01-19
- Comitter:
- charlesmn
- Date:
- Tue Jan 19 12:22:01 2021 +0000
- Parent:
- 0:2b5a44a0d2ec
- Commit message:
- Change int pins to not conflict with xshutdown pins
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 2b5a44a0d2ec -r 02f2b9e04b46 main.cpp --- a/main.cpp Mon Nov 09 09:38:34 2020 +0000 +++ b/main.cpp Tue Jan 19 12:22:01 2021 +0000 @@ -29,10 +29,10 @@ #define NUM_SENSORS 3 -// define the sensor interrupt pins. This much match the wiring! +// define the sensor interrupt pins. This must match the wiring! PinName CentreIntPin = A2; -PinName LeftIntPin = D9; -PinName RightIntPin = D4; +PinName LeftIntPin = A3; +PinName RightIntPin = A4; // MBed V6.4 has renamed wait_ms and UnbufferedSerial replaces Serial