Created
February 10, 2020 00:14
-
-
Save parzibyte/e8a40f3e3d4eda28b9cbc3cdc5c87235 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Programado por Luis Cabrera Benito | |
____ _____ _ _ _ | |
| _ \ | __ \ (_) | | | | |
| |_) |_ _ | |__) |_ _ _ __ _____| |__ _ _| |_ ___ | |
| _ <| | | | | ___/ _` | '__|_ / | '_ \| | | | __/ _ \ | |
| |_) | |_| | | | | (_| | | / /| | |_) | |_| | || __/ | |
|____/ \__, | |_| \__,_|_| /___|_|_.__/ \__, |\__\___| | |
__/ | __/ | | |
|___/ |___/ | |
Blog: https://parzibyte.me/blog | |
Ayuda: https://parzibyte.me/blog/contrataciones-ayuda/ | |
Contacto: https://parzibyte.me/blog/contacto/ | |
""" | |
import RPi.GPIO as GPIO | |
import time | |
ESPERA = 0.5 | |
PIN = 10 | |
GPIO.setmode(GPIO.BOARD) | |
GPIO.setup(PIN, GPIO.OUT) | |
while True: | |
GPIO.output(PIN, GPIO.HIGH) | |
time.sleep(ESPERA) | |
GPIO.output(PIN, GPIO.LOW) | |
time.sleep(ESPERA) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment