feat: mumble instead of parole

This commit is contained in:
2026-04-13 11:55:13 +02:00
parent 19ab152729
commit 1dde89169e
3 changed files with 14 additions and 11 deletions

View File

@@ -102,9 +102,7 @@ for _station in stations:
try:
while True:
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: