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:
- 40:204f84887d70
- Parent:
- 39:851cfabf7aa6
- Child:
- 42:ee8c5b1f2e1d
diff -r 851cfabf7aa6 -r 204f84887d70 main.cpp
--- a/main.cpp Tue Feb 23 09:29:18 2016 +0000
+++ b/main.cpp Tue Mar 15 12:54:53 2016 +0000
@@ -197,7 +197,7 @@
=============================================================================*/
int main()
{
-#ifdef USER_BUTTON
+#if USER_BUTTON==PC_13 // we are cross compiling for Nucleo-f401
InterruptIn stop_button (USER_BUTTON);
stop_button.rise (&StopMeasureIRQ);
#endif

X-NUCLEO-6180XA1 Proximity and Ambient Light Sensor