File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 28
28
29
29
# Pins
30
30
P0 = 0
31
+ """Analog Pin 0"""
31
32
P1 = 1
33
+ """Analog Pin 1"""
32
34
P2 = 2
35
+ """Analog Pin 2"""
33
36
P3 = 3
37
+ """Analog Pin 3"""
34
38
35
39
36
40
class ADS1015 (ADS1x15 ):
Original file line number Diff line number Diff line change 29
29
30
30
# Pins
31
31
P0 = 0
32
+ """Analog Pin 0"""
32
33
P1 = 1
34
+ """Analog Pin 1"""
33
35
P2 = 2
36
+ """Analog Pin 2"""
34
37
P3 = 3
38
+ """Analog Pin 3"""
35
39
36
40
37
41
class ADS1115 (ADS1x15 ):
Original file line number Diff line number Diff line change @@ -48,11 +48,21 @@ class Mode:
48
48
# values here are masks for setting MODE bit in Config Register
49
49
# pylint: disable=too-few-public-methods
50
50
CONTINUOUS = 0x0000
51
+ """Continuous Mode"""
51
52
SINGLE = 0x0100
53
+ """Single-Shot Mode"""
52
54
53
55
54
56
class ADS1x15 :
55
- """Base functionality for ADS1x15 analog to digital converters."""
57
+ """Base functionality for ADS1x15 analog to digital converters.
58
+
59
+ :param ~busio.I2C i2c: The I2C bus the device is connected to.
60
+ :param float gain: The ADC gain.
61
+ :param int data_rate: The data rate for ADC conversion in samples per second.
62
+ Default value depends on the device.
63
+ :param Mode mode: The conversion mode, defaults to `Mode.SINGLE`.
64
+ :param int address: The I2C address of the device.
65
+ """
56
66
57
67
def __init__ (
58
68
self ,
You can’t perform that action at this time.
0 commit comments