modified to work with MultiTech mDot on UDK2.0

Dependents:   HelloWorld_53L0A1 unh-hackathon-example unh-hackathon-example-raw

Fork of X_NUCLEO_53L0A1 by ST

Files at this revision

API Documentation at this revision

Comitter:
johnAlexander
Date:
Wed Dec 07 14:49:50 2016 +0000
Parent:
7:35ecf3e060c3
Child:
9:15278b8f3381
Commit message:
Add small delay in VL53L0_On/Off members, to allow longer for sensor to power-up or switch off.

Changed in this revision

Components/VL53L0X/vl53l0x_class.h Show annotated file Show diff for this revision Revisions of this file
--- a/Components/VL53L0X/vl53l0x_class.h	Mon Dec 05 11:50:38 2016 +0000
+++ b/Components/VL53L0X/vl53l0x_class.h	Wed Dec 07 14:49:50 2016 +0000
@@ -352,6 +352,7 @@
 	          *gpio0 = 1;
         else if (expgpio0) 
             *expgpio0 = 1;
+        wait_ms(1);
     } 
 
 	/**
@@ -365,6 +366,7 @@
 	          *gpio0 = 0;
         else if (expgpio0) 
             *expgpio0 = 0;
+        wait_ms(1);
     }
     
 	/**