Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: X_NUCLEO_6180XA1 mbed
Fork of HelloWorld_6180XA1 by
X-Nucleo-6180XA1 Hello World Application
This application provides a simple example of usage of X_NUCLEO_6180XA1 library. It provides a measurement of:
- Ambient Light (Lux),
- Distance (millimeters) of an object in front of the on-board sensor.
The values are displayed on the Hyperterminal connected through COM port over USB.
Revision 16:fbf61b7c65ba, committed 2015-10-28
- Comitter:
- gallonm
- Date:
- Wed Oct 28 13:09:32 2015 +0000
- Parent:
- 15:b94bc967fecd
- Child:
- 17:68515d0667af
- Commit message:
- Updated main.cpp
Changed in this revision
| X_NUCLEO_6180XA1.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_6180XA1.lib Wed Oct 28 13:23:58 2015 +0100 +++ b/X_NUCLEO_6180XA1.lib Wed Oct 28 13:09:32 2015 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/gallonm/code/X_NUCLEO_6180XA1/#c98aa73dc4a5 +https://developer.mbed.org/users/gallonm/code/X_NUCLEO_6180XA1/#dd8390d615bf
--- a/main.cpp Wed Oct 28 13:23:58 2015 +0100
+++ b/main.cpp Wed Oct 28 13:09:32 2015 +0000
@@ -282,7 +282,7 @@
status_r=board->sensor_right->StartMeasurement(range_continuous_interrupt, SensorRightIRQ, &data_sensor_right, NULL, NULL);
status_t=board->sensor_top->StartMeasurement(als_continuous_polling, NULL, &data_sensor_top, NULL, NULL);
gesture_reco.Init(150, 100, 200, 60, 500);
- if((!status_l)&&(!status_r))
+ if((!status_l)&&(!status_r)&&(!status_t))
{
while(1)
{

X-NUCLEO-6180XA1 Proximity and Ambient Light Sensor