Ameba MicroPython: [RTL8722CSM] [RTL8722DM] ADC - Read potentiometer
- Ameba RTL8722DM x 1, Potentiometerx 1
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.
from machine import ADC a = ADC(0) a.read()
Realtek IoT/Wi-Fi MCU Solutions . All Rights Reserved.