gitignore pycache

This commit is contained in:
2024-03-12 23:20:19 +01:00
parent d09d7562b6
commit 333900fadd
3 changed files with 8 additions and 6 deletions

View File

@@ -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: