From 186d4437932af8103a1b03a4cc88faee3b4c208c Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Mon, 11 Dec 2023 12:05:24 +0700 Subject: [PATCH] Update access_control_mqtt.py --- access_control_python/access_control_mqtt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/access_control_python/access_control_mqtt.py b/access_control_python/access_control_mqtt.py index 1a4888f..c32d7eb 100644 --- a/access_control_python/access_control_mqtt.py +++ b/access_control_python/access_control_mqtt.py @@ -55,7 +55,7 @@ class access_control: """ Activates the LED alarm. """ - self.plc.digital_write(2,1) + self.plc.digital_write(8,1) while(True): self.plc.digital_write(1,round((perf_counter()*2)%1)) print(round((perf_counter()*2)%1)) @@ -63,6 +63,6 @@ class access_control: if self.get_door_state(): self.lock_door() self.plc.digital_write(1,0) - self.plc.digital_write(2,0) + self.plc.digital_write(8,0) break \ No newline at end of file