Skip to content

Instantly share code, notes, and snippets.

@RRMoelker
Created July 13, 2016 11:17
Show Gist options
  • Save RRMoelker/58537d48fa3ec1a7828c8385b98e50e5 to your computer and use it in GitHub Desktop.
Save RRMoelker/58537d48fa3ec1a7828c8385b98e50e5 to your computer and use it in GitHub Desktop.
WiPy hello world blink Heartbeat LED using pin 25
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