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
The EdgePi SDK provides a wide range of functionality to users, allowing interaction with the many modules onboard the EdgePi. One such module, the ADC, can be used to read voltage continuously from any of the eight EdgePi analog input pins:
21
21
22
-
```
23
-
from edgepi.adc.edgepi_adc import EdgePiADC
24
-
from edgepi.adc.adc_constants import ADCChannel, ConvMode, ADCNum
22
+
```python
23
+
from edgepi.dac.edgepi_adc import EdgePiADC
24
+
from edgepi.adc.adc_constants import ADCChannel, ConvMode
25
25
26
26
# initialize ADC
27
27
edgepi_adc = EdgePiADC()
28
28
29
-
# configure ADC to sample analog input pin AIN3
29
+
# configure ADC to sample input pin 4 (the input pins are 0-indexed)
For further details on this and other modules, please refer to each module's documentation by following the links provided in the `Implemented Modules` section below.
0 commit comments