Created
November 22, 2021 01:02
-
-
Save securetorobert/4d5090c9b2dbc575307b8269438f6900 to your computer and use it in GitHub Desktop.
Blinky in MicroPython
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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