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'>import time
 
from machine import Pin
 
from machine import Pin
 
# This is the only LED pin available on the Nano RP2040,
 
# other than the RGB LED connected to Nano WiFi module.
 
 
x = Pin(6, Pin.OUT)
 
x = Pin(6, Pin.OUT)
 
 
while (True):
 
while (True):
 
   x.on()
 
   x.on()

Revision as of 09:29, 13 June 2024

1 import time
2 from machine import Pin
3 x = Pin(6, Pin.OUT)
4 while (True):
5    x.on()
6    time.sleep_ms(500)
7    x.off()
8    time.sleep_ms(100)