docs/rp2/quickref.rst: Document the use of channel numbers for ADC.

Signed-off-by: robert-hh <robert@hammelrath.com>
pull/13509/head
robert-hh 2024-02-02 13:47:12 +01:00
rodzic e5ec9e8aff
commit 0fb86ad941
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 32EC5F755D5A3A93
1 zmienionych plików z 7 dodań i 0 usunięć

Wyświetl plik

@ -187,6 +187,13 @@ Use the :ref:`machine.ADC <machine.ADC>` class::
adc = ADC(Pin(26)) # create ADC object on ADC pin
adc.read_u16() # read value, 0-65535 across voltage range 0.0v - 3.3v
The argument of the constructor ADC specifies either a Pin by number, name of as
Pin object, or a channel number in the range 0 - 3. If a pin is specified,
the pin is initialized in high-Z mode. If a channel number is used, the pin
is not initialized and configuring is left to the user code. After hard reset,
RP2040 pins operate in current sink mode at about 60µA. If the pin is not
otherwise configured, that may lead to wrong ADC readings.
Software SPI bus
----------------