Skip to content

Instantly share code, notes, and snippets.

@securetorobert
Created November 22, 2021 01:02
Show Gist options
  • Save securetorobert/4d5090c9b2dbc575307b8269438f6900 to your computer and use it in GitHub Desktop.
Save securetorobert/4d5090c9b2dbc575307b8269438f6900 to your computer and use it in GitHub Desktop.
Blinky in MicroPython
import utime
import machine
led_onboard = machine.Pin(25, machine.Pin.OUT)
while True:
led_onboard.value(1) #set the LED to on
utime.sleep(1) #wait 1 second
led_onboard.value(0) #sset the LED to off
utime.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment