You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adafruit_ads1x15/ads1x15.py
+42-34Lines changed: 42 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -71,12 +71,20 @@ class ADS1x15:
71
71
72
72
:param ~busio.I2C i2c: The I2C bus the device is connected to.
73
73
:param float gain: The ADC gain.
74
+
Search logs
75
+
74
76
:param int data_rate: The data rate for ADC conversion in samples per second.
75
77
Default value depends on the device.
76
78
:param Mode mode: The conversion mode, defaults to `Mode.SINGLE`.
77
-
:param int comparator_queue_length: The number of successive conversions exceeding the comparator threshold before asserting ALERT/RDY pin, defaults to 0 (comparator function disabled).
78
-
:param int comparator_low_thres: Voltage limit under which comparator de-asserts ALERT/RDY pin. Must be lower than high threshold to use comparator function. Defaults to 0x800.
79
-
:param int comparator_high_thres: Voltage limit over which comparator asserts ALERT/RDY pin. Must be higher than low threshold to use comparator function. Defaults to 0x7FF.
79
+
:param int comparator_queue_length: The number of successive conversions exceeding
80
+
the comparator threshold before asserting ALERT/RDY pin.
81
+
Defaults to 0 (comparator function disabled).
82
+
:param int comparator_low_threshold: Voltage limit under which comparator de-asserts
83
+
ALERT/RDY pin. Must be lower than high threshold to use comparator
84
+
function. Defaults to 0x8000.
85
+
:param int comparator_high_threshold: Voltage limit over which comparator asserts
86
+
ALERT/RDY pin. Must be higher than low threshold to use comparator
87
+
function. Defaults to 0x7FF0.
80
88
:param int address: The I2C address of the device.
0 commit comments