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:
- 23:9085260d2902
- Parent:
- 22:bb440c864489
- Child:
- 24:018a59122fe3
--- a/main.cpp Mon Nov 02 15:18:12 2015 +0000 +++ b/main.cpp Mon Nov 02 15:45:36 2015 +0000 @@ -61,11 +61,11 @@ sprintf(str,"%d",data_sensor_top.range_mm); board->display->DisplayString(str, strlen(str)); } - else + /*else { sprintf(str,"%s","----"); board->display->DisplayString(str, strlen(str)); - } + }*/ } else if(op_mode==als_continuous_interrupt) { @@ -74,11 +74,11 @@ sprintf(str,"%d",data_sensor_top.lux); board->display->DisplayString(str, strlen(str)); } - else + /*else { sprintf(str,"%s","----"); board->display->DisplayString(str, strlen(str)); - } + }*/ } }