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.
Diff: main.cpp
- 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) {