on any go_to_percent command, it just toggles the garage switch

This commit is contained in:
2022-01-10 23:19:37 -05:00
parent d2639e1b8b
commit a9fe50a171
2 changed files with 8 additions and 9 deletions

View File

@@ -1,3 +1,5 @@
import time
import com
import xbee
from machine import Pin
@@ -23,7 +25,10 @@ class Barrier:
def command(self, seq, payload):
pass
self.ad4.value(1)
time.sleep_ms(600)
self.ad4.value(0)
#should probably respond if there's a request for it
def watch(self):
current_door = self.door