first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from machine import Pin
|
||||
from utime import sleep
|
||||
|
||||
pin = Pin("LED", Pin.OUT)
|
||||
|
||||
print("LED starts flashing...")
|
||||
while True:
|
||||
try:
|
||||
pin.toggle()
|
||||
sleep(1) # sleep 1sec
|
||||
except KeyboardInterrupt:
|
||||
break
|
||||
pin.off()
|
||||
print("Finished.")
|
||||
Reference in New Issue
Block a user