gitignore pycache
This commit is contained in:
1 parent
d09d7562b6
commit
333900fadd
3 files changed
+8
-6
No files matched your search
@@ -1 +1,2 @@
|
|||||||
.idea/
|
.idea/
|
||||||
|
__pycache__/
|
||||||
@@ -105,6 +105,7 @@ try:
|
|||||||
for _station in stations:
|
for _station in stations:
|
||||||
# new_input_state = GPIO.input(_station['button'])
|
# new_input_state = GPIO.input(_station['button'])
|
||||||
new_input_state = _station['btn'].is_pressed
|
new_input_state = _station['btn'].is_pressed
|
||||||
|
# print('new_input_state ', new_input_state)
|
||||||
# Al pulsar el interruptor cambia el estado.
|
# Al pulsar el interruptor cambia el estado.
|
||||||
elapsed_time = time.clock_gettime(time.CLOCK_MONOTONIC) - _station['button state changed time']
|
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:
|
if new_input_state != _station['old button state'] and elapsed_time > 0.2:
|
||||||
|
|||||||
+6
-6
@@ -7,9 +7,9 @@ stations:
|
|||||||
toogle button: False
|
toogle button: False
|
||||||
red led: 26
|
red led: 26
|
||||||
green led: 12
|
green led: 12
|
||||||
- host: kuku
|
# - host: kuku
|
||||||
port: 8111
|
# port: 8111
|
||||||
button: 18
|
# button: 18
|
||||||
toogle button: False
|
# toogle button: False
|
||||||
red led: 26
|
# red led: 26
|
||||||
green led: 2
|
# green led: 2
|
||||||
Reference in new issue
Block a user