Datasheet

CircuitPython Analog In
This quick-start example shows how you can read the analog voltage of a potentiometer connected to the Circuit
Playground Express.
First, connect your potentiometer to the Circuit Playground Express using three alligator clip leads, as shown. The
connections are:
Left pot connection to 3.3V
Center pot (wiper) to A1
Right pot connection to GND
Copy and paste the code block into code.py using your favorite text editor, and save the file, to run the demo.
When you turn the knob of the potentiometer, the wiper rotates left and right, increasing or decreasing the
resistance. This, in turn, changes the analog voltage level that will be read by the Circuit Playground Express
on A1.
© Adafruit Industries https://learn.adafruit.com/adafruit-circuit-playground-express Page 98 of 211