temizle.py 310 Bytes
Newer Older
Ömer SAVAŞ's avatar
Ömer SAVAŞ committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import RPi.GPIO as GPIO

k_led = 23
y_led = 24
buzzer = 4
kapi = 17

GPIO.setmode(GPIO.BCM)

GPIO.setup(buzzer, GPIO.OUT)
GPIO.setup(k_led, GPIO.OUT)
GPIO.setup(y_led, GPIO.OUT)
GPIO.setup(kapi, GPIO.OUT)

GPIO.output(k_led, False)
GPIO.output(y_led, False)
GPIO.output(buzzer, False)
GPIO.output(kapi, False)