File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
22
23
23
try :
24
24
import typing # pylint: disable=unused-import
25
- from board import I2C
25
+ from busio import I2C
26
26
except ImportError :
27
27
pass
28
28
@@ -170,11 +170,11 @@ class INA260:
170
170
"""Driver for the INA260 power and current sensor.
171
171
172
172
:param ~busio.I2C i2c_bus: The I2C bus the INA260 is connected to.
173
- :param address int: The I2C device address for the sensor. Default is ``0x40``.
173
+ :param int address : The I2C device address for the sensor. Default is ``0x40``.
174
174
175
175
"""
176
176
177
- def __init__ (self , i2c_bus : board . I2C , address : int = 0x40 ) -> None :
177
+ def __init__ (self , i2c_bus : I2C , address : int = 0x40 ) -> None :
178
178
self .i2c_device = i2cdevice .I2CDevice (i2c_bus , address )
179
179
180
180
if self ._manufacturer_id != self .TEXAS_INSTRUMENT_ID :
You can’t perform that action at this time.
0 commit comments