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 9ff36dbCopy full SHA for 9ff36db
adafruit_ads1x15/ads1x15.py
@@ -25,6 +25,10 @@
25
from busio import I2C
26
from microcontroller import Pin
27
except ImportError:
28
+ # 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
pass
33
34
_ADS1X15_DEFAULT_ADDRESS = const(0x48)
0 commit comments