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:
- 26:e19e6cb2e6bb
- Parent:
- 25:2c4710283e02
- Child:
- 27:2afb9baf718f
--- a/main.cpp Tue Nov 03 15:28:39 2015 +0000
+++ b/main.cpp Wed Nov 04 08:22:02 2015 +0000
@@ -88,7 +88,7 @@
/* user button used to stop measurements in interrupt mode */
InterruptIn stop_button(USER_BUTTON);
STMPE1600DigiIn measure_type(device_i2c, GPIO_11);
- int status, status_t, measure;
+ int status, measure;
char str[5];
//device_i2c.frequency(400000); //change i2c frequncy from 100kHz to 400kHz

X-NUCLEO-6180XA1 Proximity and Ambient Light Sensor