-
Notifications
You must be signed in to change notification settings - Fork 1
setLEDmA()
Proximity is measured with an IR transmitter and receiver pair on the VCNL4010. The range and accuracy of the proximity readings is dependent upon the power put into the IR transmitter but overall device power consumption goes up as well. The default power setting is 20mA and can range from 0mA up to a maximum of 200mA in discrete steps of 20mA. The value passed in as a parameter is rounded down to the closest valid internal value.
VCNL4010 Sensor(); // Instantiate class
...
while(!Sensor.begin()); // loop until initialized
Sensor.setLEDmA(70); // gets rounded down to a setting of 60mA
Overview
Installation
Class Instantiation
begin()
setProximityHz()
setLEDmA()
setProximityFreq()
setAmbientLight()
setAmbientContinuous()
setProximityContinuous()
setInterrupt()
getAmbientLight()
getProximity()
getInterrupt()
clearInterrupt()
readByte() (advanced)
readWord() (advanced)
writeByte() (advanced)
-none-
CheckDistance.ino
DisplayMeasurements.ino
RegressionTests.ino
WakeOnInterrupt.ino
