Integration of Ambient Light sensor VEML7700 with Nucleo board. ROS Enabled

Dependencies:   mbed VEML7700

Revision:
0:d94848220e71
Child:
1:ca82df4237eb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Feb 02 11:01:07 2012 +0000
@@ -0,0 +1,11 @@
+#include "mbed.h"
+#include "SHARPIR.h"
+
+SHARPIR Sensor(p10); //the output of the sharpIR sensor is connected to the MBEDs pin 10.
+int main() {
+    float DistanceCM;
+    while (1) { //creates an eternal loop
+        DistanceCM=Sensor.cm();
+        wait_ms(20); //wait 20 ms between each readout
+    }
+}