changed pin numbers from BCM to BOARD
Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>master
parent
86902bd9e5
commit
36f7bb78f4
8
main.py
8
main.py
|
@ -13,10 +13,10 @@ except ImportError:
|
|||
print(ImportError)
|
||||
exit()
|
||||
|
||||
RELAY_PIN_CH_1 = 4
|
||||
RELAY_PIN_CH_2 = 17
|
||||
RELAY_PIN_CH_3 = 27
|
||||
RELAY_PIN_CH_4 = 11
|
||||
RELAY_PIN_CH_1 = "BOARD7"
|
||||
RELAY_PIN_CH_2 = "BOARD11"
|
||||
RELAY_PIN_CH_3 = "BOARD13"
|
||||
RELAY_PIN_CH_4 = "BOARD23"
|
||||
|
||||
global relay_ch_1
|
||||
relay_ch_1 = gpiozero.OutputDevice(RELAY_PIN_CH_1, active_high=True, initial_value=False)
|
||||
|
|
Loading…
Reference in New Issue