Skip to content

Instantly share code, notes, and snippets.

@EspaceRaspberryFrancais
Last active August 22, 2019 15:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save EspaceRaspberryFrancais/de1155c88072142c5e195fc40a6ba1d9 to your computer and use it in GitHub Desktop.
import RPi.GPIO as GPIO
from time import sleep
relaisPin = 22
GPIO.setmode(GPIO.BOARD)
GPIO.setup(relaisPin, GPIO.OUT)
while True :
GPIO.output(relaisPin, True)
sleep(1)
GPIO.output(relaisPin, False)
sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment