File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ class Resolution(CV):
149
149
class BH1750 : # pylint:disable=too-many-instance-attributes
150
150
"""Library for the BH1750 Sensor
151
151
152
- :param ~busio.I2C i2c_bus : The I2C bus the BH1750 is connected to.
152
+ :param ~busio.I2C i2c : The I2C bus the BH1750 is connected to.
153
153
:param int address: The I2C device address. Defaults to :const:`0x23`.Can be
154
154
set to :const:`0x5C` by pulling the address pin high.
155
155
@@ -182,9 +182,9 @@ class BH1750: # pylint:disable=too-many-instance-attributes
182
182
mode = RWBitfields (2 , 4 )
183
183
resolution = RWBitfields (2 , 0 )
184
184
185
- def __init__ (self , i2c_bus , address = _BH1750_DEFAULT_ADDRESS ):
185
+ def __init__ (self , i2c , address = _BH1750_DEFAULT_ADDRESS ):
186
186
187
- self .i2c_device = i2c_device .I2CDevice (i2c_bus , address )
187
+ self .i2c_device = i2c_device .I2CDevice (i2c , address )
188
188
self ._buffer = bytearray (2 )
189
189
self ._settings_byte = 0
190
190
You can’t perform that action at this time.
0 commit comments