NUCLEO OK. Need to add pull ups for SDA and SCL. (3)

Dependencies:   VCNL40x0 mbed

Files at this revision

API Documentation at this revision

Comitter:
mbedaddict
Date:
Tue Mar 24 12:58:56 2015 +0000
Parent:
1:536ffe609141
Commit message:
Recommit because it seems to now working. Compilation fails on another PC.

Changed in this revision

main_vcnl40x0.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main_vcnl40x0.cpp	Thu Mar 12 13:03:47 2015 +0000
+++ b/main_vcnl40x0.cpp	Tue Mar 24 12:58:56 2015 +0000
@@ -68,10 +68,10 @@
 // endless loop /////////////////////////////////////////////////////////////////////////////////////
 
     while (1) {
-        mled0 = 1;                                          // LED on
+        //mled0 = 1;                                          // LED on
         VCNL40x0_Device.ReadProxiOnDemand (&ProxiValue);    // read prox value on demand
         VCNL40x0_Device.ReadAmbiOnDemand (&AmbiValue);      // read ambi value on demand
-        mled0 = 0;                                          // LED off
+        //mled0 = 0;                                          // LED off
 
         // pront values on screen
         pc.printf("\n\rProxi: %5.0i cts \tAmbi: %5.0i cts \tIlluminance: %7.2f lx", ProxiValue, AmbiValue, AmbiValue/4.0);