Ameba MicroPython: [RTL8722CSM] [RTL8722DM] ADC - Read potentiometer
Materials
- Ameba RTL8722DM 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.
from machine import ADC a = ADC(0) a.read()
Copyrights ©瑞晟微电子(苏州)有限公司 2021. All rights reserved. Terms of Use