From a8f236427e78cbd7ca3af780650a945e82d8a2eb Mon Sep 17 00:00:00 2001 From: maxime Date: Thu, 2 Apr 2026 15:00:09 +0200 Subject: [PATCH] maj --- composants/test/PIR.py | 2 +- composants/test/ledRGB.py | 4 ++-- composants/test/rfid.py | 4 ++-- composants/test/servo.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/composants/test/PIR.py b/composants/test/PIR.py index a460242..ed2d7c9 100644 --- a/composants/test/PIR.py +++ b/composants/test/PIR.py @@ -1,6 +1,6 @@ import RPi.GPIO as GPIO import time as t - +## GPIO.setmode(GPIO.BOARD) pir = 10 diff --git a/composants/test/ledRGB.py b/composants/test/ledRGB.py index 779dc12..dc94f3d 100644 --- a/composants/test/ledRGB.py +++ b/composants/test/ledRGB.py @@ -1,6 +1,6 @@ import RPi.GPIO as GPIO import time as t - +## GPIO.setmode(GPIO.BOARD) r, g, b = 11, 13, 15 @@ -12,4 +12,4 @@ GPIO.setup(b, GPIO.OUT) while True: GPIO.output(r, 1); t.sleep(1); GPIO.output(r, 0) GPIO.output(g, 1); t.sleep(1); GPIO.output(g, 0) - GPIO.output(b, 1); t.sleep(1); GPIO.output(b, 0) \ No newline at end of file + GPIO.output(b, 1); t.sleep(1); GPIO.output(b, 0) diff --git a/composants/test/rfid.py b/composants/test/rfid.py index 84ffa59..ef15b29 100644 --- a/composants/test/rfid.py +++ b/composants/test/rfid.py @@ -1,5 +1,5 @@ from mfrc522 import SimpleMFRC522 as RFIDReader - +## reader = RFIDReader() print("En attente...") @@ -12,4 +12,4 @@ try: print("-----") except KeyboardInterrupt: - print("Stop") \ No newline at end of file + print("Stop") diff --git a/composants/test/servo.py b/composants/test/servo.py index 19a5e68..8f7d3db 100644 --- a/composants/test/servo.py +++ b/composants/test/servo.py @@ -1,6 +1,6 @@ import RPi.GPIO as GPIO import time as t - +## GPIO.setmode(GPIO.BOARD) servo = 12 @@ -16,4 +16,4 @@ while True: print("Position 2") pwm.ChangeDutyCycle(7) - t.sleep(2) \ No newline at end of file + t.sleep(2)