Add initial files for the HH Hacking 101 - code and infos about board will follow soon

This commit is contained in:
2023-01-17 01:51:29 +01:00
parent a0f4013f75
commit f723aecc9d
9 changed files with 711 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
from machine import ADC, Pin
from time import sleep
adc = ADC(Pin(34)) # create an ADC object acting on a pin
adc.atten(ADC.ATTN_11DB) # 3.3V max
while True:
print("Analog Value: " , adc.read())
sleep(1)