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.

Revision:
16:fbf61b7c65ba
Parent:
15:b94bc967fecd
Child:
17:68515d0667af
--- 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)
       {