Skip to content

Instantly share code, notes, and snippets.

@basilleaf
Last active December 17, 2015 13:10
Show Gist options
  • Save basilleaf/5615466 to your computer and use it in GitHub Desktop.
Save basilleaf/5615466 to your computer and use it in GitHub Desktop.
blink test Raspberry Pi python RPi.GPIO
#!/usr/bin/python
# -*- coding: utf-8 -*-
import RPi.GPIO as GPIO
from time import sleep
pin = 13
blink_delay = 1.
GPIO.setup(pin, GPIO.OUT)
while True:
GPIO.output(pin, True)
sleep(blink_delay)
GPIO.output(pin, False)
sleep(blink_delay)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment