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
Diff: main.cpp
- Revision:
- 2:d480db875e4a
- Parent:
- 1:51e9344a1f33
--- 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