-
Notifications
You must be signed in to change notification settings - Fork 1
CheckDistance.ino
Arduino sketch to read and display measurements from the Vishay VCNL4010 sensor.

No special processor-dependent calls are used and thus this sketch should run on any of the Arduino systems. The serial port speed defaults to 115200 baud.
The VCNL4010 is initialised in the setup() method and when the proximity sensor value changes with more than a 15% difference the new values are displayed.
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
