parent
64193c3c11
commit
d2f69e18e7
8
main.py
8
main.py
|
@ -19,16 +19,16 @@ RELAY_PIN_CH_3 = 27
|
||||||
RELAY_PIN_CH_4 = 11
|
RELAY_PIN_CH_4 = 11
|
||||||
|
|
||||||
global relay_ch_1
|
global relay_ch_1
|
||||||
relay_ch_1 = gpiozero.OutputDevice(RELAY_PIN_CH_1, active_high=True, initial_value=False)
|
relay_ch_1 = gpiozero.OutputDevice(RELAY_PIN_CH_1, active_high=True, initial_value=True)
|
||||||
|
|
||||||
global relay_ch_2
|
global relay_ch_2
|
||||||
relay_ch_2 = gpiozero.OutputDevice(RELAY_PIN_CH_2, active_high=True, initial_value=False)
|
relay_ch_2 = gpiozero.OutputDevice(RELAY_PIN_CH_2, active_high=True, initial_value=True)
|
||||||
|
|
||||||
global relay_ch_3
|
global relay_ch_3
|
||||||
relay_ch_3 = gpiozero.OutputDevice(RELAY_PIN_CH_3, active_high=True, initial_value=False)
|
relay_ch_3 = gpiozero.OutputDevice(RELAY_PIN_CH_3, active_high=True, initial_value=True)
|
||||||
|
|
||||||
global relay_ch_4
|
global relay_ch_4
|
||||||
relay_ch_4 = gpiozero.OutputDevice(RELAY_PIN_CH_4, active_high=True, initial_value=False)
|
relay_ch_4 = gpiozero.OutputDevice(RELAY_PIN_CH_4, active_high=True, initial_value=True)
|
||||||
|
|
||||||
def debug_print(message: str):
|
def debug_print(message: str):
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
|
|
Loading…
Reference in New Issue