Skip to content

Instantly share code, notes, and snippets.

@raspberrytipsnl
Created February 6, 2017 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raspberrytipsnl/e1074597c45ef875d10e577c086defaf to your computer and use it in GitHub Desktop.
Save raspberrytipsnl/e1074597c45ef875d10e577c086defaf to your computer and use it in GitHub Desktop.
RTk.GPIO led example script
# https://raspberrytips.nl
# Just change:
# import RPi.GPIO as GPIO
# Into:
from RTk import GPIO
import time
def blink(pin):
GPIO.output(pin,GPIO.HIGH)
time.sleep(1)
GPIO.output(pin,GPIO.LOW)
time.sleep(1)
return
GPIO.setmode(GPIO.BOARD)
GPIO.setup(11, GPIO.OUT)
for i in range(0,50):
blink(11)
GPIO.cleanup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment