diff --git a/adafruit_veml7700.py b/adafruit_veml7700.py index 635d5e2..cf354fe 100644 --- a/adafruit_veml7700.py +++ b/adafruit_veml7700.py @@ -33,9 +33,9 @@ from micropython import const import adafruit_bus_device.i2c_device as i2cdevice -from adafruit_register.i2c_struct import UnaryStruct, ROUnaryStruct +from adafruit_register.i2c_struct import ROUnaryStruct from adafruit_register.i2c_bits import RWBits -from adafruit_register.i2c_bit import RWBit, ROBit +from adafruit_register.i2c_bit import RWBit try: import typing # pylint: disable=unused-import @@ -128,11 +128,9 @@ class VEML7700: time.sleep(0.1) """ - # ALS_CONF_0 - ALS gain, integration time, interrupt and shutdown. + # ALS_CONF_0 - ALS gain, integration time, shutdown. light_shutdown = RWBit(0x00, 0, register_width=2) """Ambient light sensor shutdown. When ``True``, ambient light sensor is disabled.""" - light_interrupt = RWBit(0x00, 1, register_width=2) - """Enable interrupt. ``True`` to enable, ``False`` to disable.""" light_gain = RWBits(2, 0x00, 11, register_width=2) """Ambient light gain setting. Gain settings are 2, 1, 1/4 and 1/8. Settings options are: ALS_GAIN_2, ALS_GAIN_1, ALS_GAIN_1_4, ALS_GAIN_1_8. @@ -179,18 +177,6 @@ class VEML7700: """ - # ALS_WH - ALS high threshold window setting - light_high_threshold = UnaryStruct(0x01, " None: self.i2c_device = i2cdevice.I2CDevice(i2c_bus, address) for _ in range(3):