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'>import time | <syntaxhighlight lang="python" line='line'>import time | ||
from machine import Pin | from machine import Pin | ||
x = Pin(6, Pin.OUT) | x = Pin(6, Pin.OUT) | ||
while (True): | while (True): | ||
x.on() | x.on() |
Revision as of 10:29, 13 June 2024
import time
from machine import Pin
x = Pin(6, Pin.OUT)
while (True):
x.on()
time.sleep_ms(500)
x.off()
time.sleep_ms(100)