Sample MBed program running ST XNucleo VL53L1CB ToF sensors directly connected to the the F401. Uses interrupts to cope with up to 3 sensors in multizone mode. Includes MBed V6.4
Dependencies: X_NUCLEO_53L1A2
Revision 2:d480db875e4a, committed 2021-01-19
- Comitter:
- charlesmn
- Date:
- Tue Jan 19 12:39:32 2021 +0000
- Parent:
- 1:51e9344a1f33
- Commit message:
- Correct int pin numbers
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Nov 09 17:53:08 2020 +0000 +++ b/main.cpp Tue Jan 19 12:39:32 2021 +0000 @@ -31,8 +31,8 @@ // 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