Difference between revisions of "UBISS2024exam"
Jump to navigation
Jump to search
(Created page with "=== Solution Task 1.2 Control external RGB === <syntaxhighlight lang="python" line='line'> # Blinky example import time from machine import Pin # This is the only LED pin av...") |
|||
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 | ||
Revision as of 09:28, 13 June 2024
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)