The main difference is the number. If using 26, the pin is initialized to high-Z.are (A) and (B) different?
The docs * say:
* https://docs.micropython.org/en/latest/ ... conversion.
- 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 or ADC.CORE_TEMP for the internal temperature sensor. 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
Statistics: Posted by ghp — Sun Oct 27, 2024 5:21 am