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

Files at this revision

API Documentation at this revision

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
diff -r 51e9344a1f33 -r d480db875e4a main.cpp
--- 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