Thanks for your reply, Ernst. From what I understood, the number that I pass to the Pin class refers to the GPIO number, not the Pin number itself. As the ADC is GPIO26, this would be 26 rather than 31. I have seen this also on several tutorials.
Statistics: Posted by mgmsr — Fri Jan 24, 2025 12:57 pm