changed some code

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-06 19:18:23 +02:00
parent 82dc633305
commit 43bd91c238
2 changed files with 4 additions and 9 deletions

View File

@ -1 +1 @@
gpiozero==1.6.2

11
test.py
View File

@ -1,15 +1,10 @@
import time
import os
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setwarnings(False)
from gpiozero import *
pins = [8,10,12,16,18,22,24,26]
for pin in pins:
print(pin)
GPIO.setup(pin, GPIO.OUT)
GPIO.output(pin, GPIO.LOW)
GPIO.cleanup()
relay = gpiozero.OutputDevice(pin, active_high=False, initial_value=False)
relay.on()