Sample application using interrupts, and range_continuous_interrupts mode, to receive range data from the on-board and satellite sensors. Results are displayed on the on-board, 4 digit display and on the COM port.
Dependencies: mbed X_NUCLEO_53L0A1
Fork of Display_53L0A1_Interrupts by
* NOTE : Hard-links U11 and U18, on the underside of the X-NUCELO-53L0A1 expansion board, must be made/ON to allow interrupts to be received from the satellite boards, on INT_L and INT_R, or U10 and U15 to receive interrupts from the alternate locations. *
Diff: main.cpp
- Revision:
- 7:84264d97f7e6
- Parent:
- 5:906aa7aede10
diff -r 5a6b732c6b8b -r 84264d97f7e6 main.cpp
--- a/main.cpp Tue Aug 08 14:45:08 2017 +0000
+++ b/main.cpp Thu Jun 06 09:27:40 2019 +0000
@@ -1,5 +1,5 @@
#include "mbed.h"
-#include "x_nucleo_53l0a1.h"
+#include "XNucleo53L0A1.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
@@ -43,7 +43,7 @@
InterruptIn stop_button(USER_BUTTON);
#endif
-static X_NUCLEO_53L0A1 *board = NULL;
+static XNucleo53L0A1 *board = NULL;
VL53L0X_RangingMeasurementData_t data_sensor;
OperatingMode operating_mode;
@@ -167,8 +167,8 @@
int status;
/* creates the 53L0A1 expansion board singleton obj */
- board = X_NUCLEO_53L0A1::instance(device_i2c, A2, D8, D2);
- //board=X_NUCLEO_53L0A1::instance(device_i2c, A2, D9, D4); // Alternate INT_L/INT_R settings.
+ board = XNucleo53L0A1::instance(device_i2c, A2, D8, D2);
+ //board=XNucleo53L0A1::instance(device_i2c, A2, D9, D4); // Alternate INT_L/INT_R settings.
board->display->display_string("53L0");
