Nora Vazbyte / Mbed 2 deprecated Multi_VL53L0X

Dependencies:   mbed VL53L0X

Files at this revision

API Documentation at this revision

Comitter:
vazbyte
Date:
Tue Feb 26 18:12:34 2019 +0000
Parent:
0:c543582b78b1
Child:
2:8758d2437277
Commit message:
Working multi-sensor TOF setup

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Jan 25 06:37:33 2018 +0000
+++ b/main.cpp	Tue Feb 26 18:12:34 2019 +0000
@@ -3,13 +3,13 @@
 
 #define range1_addr (0x56)
 #define range2_addr (0x60)
-#define range1_XSHUT   D7
-#define range2_XSHUT   D8
-#define VL53L0_I2C_SDA   D14 
-#define VL53L0_I2C_SCL   D15  
+#define range1_XSHUT   p15
+#define range2_XSHUT   p16
+#define VL53L0_I2C_SDA   p30 
+#define VL53L0_I2C_SCL   p7  
  
-Serial pc(SERIAL_TX, SERIAL_RX);
-static DevI2C devI2c(VL53L0_I2C_SDA,VL53L0_I2C_SCL); 
+Serial pc(USBTX, USBRX);
+static DevI2C devI2c(VL53L0_I2C_SDA, VL53L0_I2C_SCL); 
  
 int main()
 {   
--- a/mbed.bld	Thu Jan 25 06:37:33 2018 +0000
+++ b/mbed.bld	Tue Feb 26 18:12:34 2019 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/7130f322cb7e
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/7e07b6fb45cf
\ No newline at end of file