UBISS2024exam: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
# This is the only LED pin available on the Nano RP2040, | # This is the only LED pin available on the Nano RP2040, | ||
# other than the RGB LED connected to Nano WiFi module. | # other than the RGB LED connected to Nano WiFi module. | ||
x = Pin(6, Pin.OUT) | |||
while (True): | while (True): | ||
x.on() | |||
time.sleep_ms( | time.sleep_ms(500) | ||
x.off() | |||
time.sleep_ms( | time.sleep_ms(100) | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 10:28, 13 June 2024
import time
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)
while (True):
x.on()
time.sleep_ms(500)
x.off()
time.sleep_ms(100)