UBISS2024exam

From Sketching with Hardware at LMU Wiki
Revision as of 10:28, 13 June 2024 by Skwhadmin (talk | contribs)
Jump to navigation Jump to search
 1 import time
 2 from machine import Pin
 3 
 4 # This is the only LED pin available on the Nano RP2040,
 5 # other than the RGB LED connected to Nano WiFi module.
 6 led = Pin(6, Pin.OUT)
 7 
 8 while (True):
 9    led.on()
10    time.sleep_ms(250)
11    led.off()
12    time.sleep_ms(200)