Difference between revisions of "UBISS2024exam"

From Sketching with Hardware at LMU Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<syntaxhighlight lang="python" line='line'>import time
+
<syntaxhighlight lang="python" line='line'>
 
from machine import Pin, ADC
 
from machine import Pin, ADC
 
from time import sleep
 
from time import sleep

Revision as of 11:57, 13 June 2024

1 from machine import Pin, ADC
2 from time import sleep
3 
4 y = ADC(Pin(26))
5 
6 while True:
7   z = y.read_u16()
8   print(z)
9   sleep(1)