ST Expansion SW Team / Mbed 2 deprecated HelloWorld_VL53L1X_Ranging_With_Multiple_Devices

Dependencies:   mbed X_NUCLEO_53L1A1_mbed

Revision:
20:e3c04690aee2
Parent:
19:29699fbc39b8
Child:
21:bb3dcf713446
--- a/main.cpp	Fri May 17 09:59:04 2019 +0000
+++ b/main.cpp	Thu Jul 18 12:44:34 2019 +0000
@@ -39,7 +39,7 @@
 #define VL53L1_I2C_SCL   D15 
 
 #if USER_BUTTON==PC_13  // we are cross compiling for Nucleo-64s
-InterruptIn stop_button(USER_BUTTON);
+//InterruptIn stop_button(USER_BUTTON);
 #endif
 
 /* Installed sensors count */
@@ -49,7 +49,7 @@
 char installedSensors[3];
 
 static XNucleo53L1A1 *board=NULL;
-Serial pc(SERIAL_TX, SERIAL_RX); 
+//Serial pc(SERIAL_TX, SERIAL_RX); 
 
 /* interrupt requests */
 volatile bool centerSensor = false;
@@ -188,7 +188,7 @@
     int status = 0;
 
     /* creates the 53L1A1 expansion board singleton obj */
-    board = XNucleo53L1A1::instance(device_i2c, A2, D9, D4);
+    board = XNucleo53L1A1::instance(device_i2c, A2, D9, D2);
 
     /* init the 53L1A1 expansion board with default values */
     status = board->init_board();