NUCLEO OK. Need to add pull ups for SDA and SCL. (3)
Diff: main_vcnl40x0.cpp
- Revision:
- 2:5519099a3d51
- Parent:
- 0:f43603955213
--- 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);