mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
VEML6070: Adding separate i2c contexts for separate addresses
Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user