We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f941cd1 + 3094ab3 commit 1cce6deCopy full SHA for 1cce6de
adafruit_ina219.py
@@ -37,7 +37,10 @@
37
38
from busio import I2C
39
except ImportError:
40
- pass
+ # define I2C to avoid the error:
41
+ # def __init__(self, i2c_bus: I2C, addr: int = 0x40) -> None:
42
+ # NameError: name 'I2C' is not defined
43
+ I2C = None
44
45
__version__ = "0.0.0+auto.0"
46
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_INA219.git"
0 commit comments