[RTL8722CSM] [RTL8722DM] ADC - Read potentiometer

Materials

  • Ameba x 1, Potentiometerx 1

Steps

Here we connect ameba to a potentiometer to measure its analogue value, the connection is as follows.

image1

Copy and paste the following code into REPL.

1import socket
2a = ADC(0)
3a.read()