ST / Mbed 2 deprecated HelloWorld_6180XA1

Dependencies:   X_NUCLEO_6180XA1 mbed

Fork of HelloWorld_6180XA1 by ST Expansion SW Team

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.

Files at this revision

API Documentation at this revision

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)
       {