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. *
Revision 7:84264d97f7e6, committed 2019-06-06
- Comitter:
- johnAlexander
- Date:
- Thu Jun 06 09:27:40 2019 +0000
- Parent:
- 6:5a6b732c6b8b
- Commit message:
- Use published, mbed-certified board and sensor classes.
Changed in this revision
| X_NUCLEO_53L0A1.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/X_NUCLEO_53L0A1.lib Tue Aug 08 14:45:08 2017 +0000 +++ b/X_NUCLEO_53L0A1.lib Thu Jun 06 09:27:40 2019 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/ST/code/X_NUCLEO_53L0A1/#44e6c9013bff +https://os.mbed.com/teams/ST/code/X_NUCLEO_53L0A1/#99c367e8a402
--- 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");
