[RTL8722CSM] [RTL8722DM] ADC - Read potentiometer
Materials
AmebaD[AMB21 / AMB22] x 1
Potentiometerx 1
Steps
Here we connect ameba to a potentiometer to measure its analogue value, the connection is as follows.
Copy and paste the following code into REPL.
1import socket
2a = ADC(0)
3a.read()