diff --git a/.gitignore b/.gitignore index 9f11b75..2483976 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .idea/ +__pycache__/ diff --git a/intercom.py b/intercom.py index db77cc3..e0adc9e 100644 --- a/intercom.py +++ b/intercom.py @@ -105,6 +105,7 @@ try: for _station in stations: # new_input_state = GPIO.input(_station['button']) new_input_state = _station['btn'].is_pressed +# print('new_input_state ', new_input_state) # Al pulsar el interruptor cambia el estado. elapsed_time = time.clock_gettime(time.CLOCK_MONOTONIC) - _station['button state changed time'] if new_input_state != _station['old button state'] and elapsed_time > 0.2: diff --git a/intercom.yml b/intercom.yml index 90b1ee2..efb6127 100644 --- a/intercom.yml +++ b/intercom.yml @@ -7,9 +7,9 @@ stations: toogle button: False red led: 26 green led: 12 - - host: kuku - port: 8111 - button: 18 - toogle button: False - red led: 26 - green led: 2 +# - host: kuku +# port: 8111 +# button: 18 +# toogle button: False +# red led: 26 +# green led: 2