Created
July 13, 2016 11:17
-
-
Save RRMoelker/58537d48fa3ec1a7828c8385b98e50e5 to your computer and use it in GitHub Desktop.
WiPy hello world blink Heartbeat LED using pin 25
This file contains 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 time | |
from machine import Pin | |
led = Pin('GP25', mode=Pin.OUT) | |
while True: | |
led(0) # turn off the heartbeat LED | |
time.sleep_ms(100) | |
led(1) # turn on the heartbeat LED | |
time.sleep_ms(100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment