Compare commits
1 Commits
main
...
8735d4967a
| Author | SHA1 | Date | |
|---|---|---|---|
| 8735d4967a |
@@ -1,6 +1,6 @@
|
||||
import RPi.GPIO as GPIO
|
||||
import time as t
|
||||
|
||||
##
|
||||
GPIO.setmode(GPIO.BOARD)
|
||||
|
||||
pir = 10
|
||||
|
||||
@@ -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)
|
||||
GPIO.output(b, 1); t.sleep(1); GPIO.output(b, 0)
|
||||
|
||||
@@ -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")
|
||||
print("Stop")
|
||||
|
||||
@@ -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)
|
||||
t.sleep(2)
|
||||
|
||||
Reference in New Issue
Block a user