UBISS2024exam: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<syntaxhighlight lang="python" line='line'> | <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 12:57, 13 June 2024
from machine import Pin, ADC
from time import sleep
y = ADC(Pin(26))
while True:
z = y.read_u16()
print(z)
sleep(1)