Skip to content

Instantly share code, notes, and snippets.

@ramalho
Created March 28, 2015 11:56
Show Gist options
  • Select an option

  • Save ramalho/e4820fd0267887df2c80 to your computer and use it in GitHub Desktop.

Select an option

Save ramalho/e4820fd0267887df2c80 to your computer and use it in GitHub Desktop.
Blink with Pingo using a parts.Led
import pingo
from time import sleep
board = pingo.detect.MyBoard()
pin = board.pins[13]
pin.mode = pingo.OUT
led = pingo.parts.Led(pin)
led.blink(10, .5, .1) # new thread
# main thread continues withoud blocking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment