VCNL4000 I2C Distance and Luminosity sensor
Supported
interfaces
Python Constructor
Use following constructors if you want to create a VCNL4000 from your
python scripts.
-
VCNL4000(slave, current, frequency, prox_threshold, prox_cycles,
cal_cycles)
Parameters:
- slave (optional, default=0x13) : I2C slave address
- current (optional, default=20)
- frequency (optional, default=781)
- prox_threshold (optional, default=15)
- prox_cycles (optional, default=10)
- cal_cycles (optional, default=5)
from webiopi.devices.sensor import VCNL4000
vcnl = VCNL4000()
Configuration File syntax
Use following syntax to setup a VCNL4000 in the webiopi service/command
configuration file.
[DEVICES]
vcnl = VCNL4000