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 e439d7e + cf6cd50 commit 9e503e7Copy full SHA for 9e503e7
adafruit_ads1x15/ads1x15.py
@@ -31,7 +31,6 @@
31
__version__ = "0.0.0-auto.0"
32
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_ADS1x15.git"
33
34
-import time
35
from micropython import const
36
from adafruit_bus_device.i2c_device import I2CDevice
37
@@ -158,8 +157,9 @@ def _read(self, pin):
158
157
config |= _ADS1X15_CONFIG_COMP_QUE_DISABLE
159
self._write_register(_ADS1X15_POINTER_CONFIG, config)
160
161
- while not self._conversion_complete():
162
- time.sleep(0.01)
+ if self.mode == Mode.SINGLE:
+ while not self._conversion_complete():
+ pass
163
164
return self.get_last_result()
165
0 commit comments