-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
This is a standard Arduino IDE library, which will also work with the standard Atmel Studio software. Download the archive to a local directory. As of Version 1.6.2 of the Arduino IDE you can install the library directly from the compressed file from Sketch > Include Library > Add .ZIP Library; or unzip the file and place the directory "VCNL4010" into the Arduino libraries directory, which on windows will default to "My Documents\Arduino\libraries". Once this has been done, close down and restart the IDE to make the contents visible.
Once the hardware is set up, you can load, compile and execute one of the two sample jobs "VCNL4010\Examples\DisplayMeasurements\DisplayMeasurements.ino" or "VCNL4010\WakeOnInterrupt\WakeOnInterrupt.ino"
See Installing Additional Arduino Libraries for additional information.
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