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.
1 parent ec00ae4 commit e12f9f4Copy full SHA for e12f9f4
adafruit_ads1x15/ads1x15.py
@@ -25,7 +25,10 @@
25
from busio import I2C
26
from microcontroller import Pin
27
except ImportError:
28
- pass
+ # define Pin to avoid the error:
29
+ # def read(self, pin: Pin, is_differential: bool = False) -> int:
30
+ # NameError: name 'Pin' is not defined
31
+ Pin = None
32
33
_ADS1X15_DEFAULT_ADDRESS = const(0x48)
34
_ADS1X15_POINTER_CONVERSION = const(0x00)
0 commit comments