@@ -12,9 +12,9 @@ need to be periodically sampled to be read by applications, easily, such as:
12
12
* Light dependent resistors (LDR), etc.
13
13
14
14
15
- Up to 4 analog samples can be recorded by the hardware (`` A0 `` ... `` A3 ``), and all
16
- recording is done at 16-bit levels (but be aware that the ADC in the Pico will only
17
- ever return values between 0...4095).
15
+ Up to 4 (or 8 in the case of the RP2350B) analog samples can be recorded by the
16
+ hardware (`` A0 `` ... `` A3 ``), and all recording is done at 16-bit levels (but be
17
+ aware that the ADC in the Pico will only ever return values between 0...4095).
18
18
19
19
The interface for the ``ADCInput `` device is very similar to the ``I2S `` input
20
20
device, and most code can be ported simply by instantiating a ``ADCInput ``
@@ -26,11 +26,12 @@ allowed while in use.
26
26
ADC Input API
27
27
-------------
28
28
29
- ADCInput(pin0 [, pin1, pin2, pin3])
29
+ ADCInput(pin0 [, pin1, pin2, pin3[, pin4, pin5, pin6, pin7 ])
30
30
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31
31
Creates an ADC input object which will record the pins specified in the code.
32
- Only pins ``A0 `` ... ``A3 `` can be used, and they must be specified in increasing
33
- order (i.e. ``ADCInput(A0, A1); `` is valid, but ``ADCInput(A1, A0) `` is not.
32
+ Only pins ``A0 `` ... ``A3 `` (``A7 `` on RP2350B) can be used, and they must be
33
+ specified in increasing order (i.e. ``ADCInput(A0, A1); `` is valid,
34
+ but ``ADCInput(A1, A0) `` is not.
34
35
35
36
bool setBuffers(size_t buffers, size_t bufferWords)
36
37
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments