10 lines
209 B
Python
10 lines
209 B
Python
import machine
|
|
import time
|
|
|
|
adc = machine.ADC(machine.Pin(32))
|
|
adc.atten(machine.ADC.ATTN_11DB)
|
|
|
|
while (1):
|
|
n = int(adc.read()/64)
|
|
print("|" + "#"*n + " "*(64-n) + "|", end="\r")
|
|
time.sleep_ms(100) |