Skip to content

Instantly share code, notes, and snippets.

@securetorobert
Created November 22, 2021 01:02
Show Gist options
  • Select an option

  • Save securetorobert/4d5090c9b2dbc575307b8269438f6900 to your computer and use it in GitHub Desktop.

Select an option

Save securetorobert/4d5090c9b2dbc575307b8269438f6900 to your computer and use it in GitHub Desktop.

Revisions

  1. securetorobert created this gist Nov 22, 2021.
    11 changes: 11 additions & 0 deletions blinky.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    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)