Skip to content

Commit 073094f

Browse files
Update adc.rst for RP2350B
1 parent 2a46bcf commit 073094f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/adc.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ need to be periodically sampled to be read by applications, easily, such as:
1212
* Light dependent resistors (LDR), etc.
1313

1414

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).
1818

1919
The interface for the ``ADCInput`` device is very similar to the ``I2S`` input
2020
device, and most code can be ported simply by instantiating a ``ADCInput``
@@ -26,11 +26,12 @@ allowed while in use.
2626
ADC Input API
2727
-------------
2828

29-
ADCInput(pin0 [, pin1, pin2, pin3])
29+
ADCInput(pin0 [, pin1, pin2, pin3[, pin4, pin5, pin6, pin7])
3030
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3131
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.
3435

3536
bool setBuffers(size_t buffers, size_t bufferWords)
3637
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)