basic testing

This commit is contained in:
Krumel
2021-04-20 18:33:13 +02:00
parent 4c5a5ac01c
commit fb3d7a73e2
2 changed files with 332 additions and 0 deletions

10
main.py Normal file
View File

@ -0,0 +1,10 @@
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)