rpi-pico-w/upython/adc.py

ID: _file/rpi-pico-w/upython/adc.py

The program continuously prints to the USB the value of the ADC on GPIO 26 once every 0.2 seconds.
The onboard LED is blinked as a heartbeat.
The hello world is with a potentiometer: extremes on GND and VCC pins of the Pi, and middle output on pin GIO26, then as you turn the knob, the uart value goes from about 0 to about 64k.
The 0 side is quite noisy and varies between 0 and 300 for some reason.
In Ciro's ASCII art circuit diagram notation:
RPI_PICO_W__gnd__gpio26__5v
            |    |       |
            |    |       |
            |    |       |
         P__1____2_______3

New to topics? Read the docs here!