1
0
mirror of https://github.com/cmur2/python-veml6070.git synced 2025-06-26 12:30:19 +02:00

module: support Python 3 only

This commit is contained in:
cn
2019-12-18 19:57:23 +01:00
parent 4f16e38129
commit e0f9b327f5
7 changed files with 7 additions and 35 deletions

View File

@ -31,7 +31,7 @@ NORMALIZED_REFRESHTIME = 0.1
NORMALIZED_UVA_SENSITIVITY = 0.05
class Veml6070(object): # pylint: disable=bad-option-value,useless-object-inheritance
class Veml6070():
def __init__(self, i2c_bus=1, sensor_address=ADDR_L, rset=RSET_270K, integration_time=INTEGRATIONTIME_1T):
self.bus = smbus.SMBus(i2c_bus)
self.sendor_address = sensor_address