wallah pardon sur le coran de l eglise c'est pas de ma faute

This commit is contained in:
2026-03-30 20:53:53 +02:00
parent 8c3713eff6
commit 72a86ff512
7 changed files with 129 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import RPi.GPIO as GPIO
import time as t
GPIO.setmode(GPIO.BOARD)
GPIO.setwarnings(False)
ledPorte = 7
GPIO.setup(ledPorte, GPIO.OUT)
print("Test LED porte...")
try:
while True:
GPIO.output(ledPorte, GPIO.HIGH)
print("LED ON")
t.sleep(1)
GPIO.output(ledPorte, GPIO.LOW)
print("LED OFF")
t.sleep(1)
except KeyboardInterrupt:
print("Stop")
finally:
GPIO.output(ledPorte, GPIO.LOW)