VEML6070: Adding separate i2c contexts for separate addresses

Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
Abhishek Malik
2017-05-18 13:55:21 -07:00
parent c70f378f72
commit b4bc15201b
9 changed files with 56 additions and 148 deletions

View File

@ -27,7 +27,7 @@ from upm import pyupm_veml6070 as veml6070
def main():
# Instantiate a Vishay UV Sensor on the I2C bus 0
veml6070_sensor = veml6070.VEML6070(0, 0x38);
veml6070_sensor = veml6070.VEML6070(0);
## Exit handlers ##
# This function stops python from printing a stacktrace when you hit control-C