Commit d2c07d71 authored by Kristian Tan's avatar Kristian Tan

Output pin data

parent deebcb26
...@@ -79,7 +79,10 @@ def toggle_pin(change_pin): ...@@ -79,7 +79,10 @@ def toggle_pin(change_pin):
else: else:
message += " on." message += " on."
pins[change_pin]['on_time'] = datetime.datetime.now() pins[change_pin]['on_time'] = datetime.datetime.now()
print("==================")
print("HERE IS THE PIN DATA: ")
print(pins[change_pin]) print(pins[change_pin])
print("==================")
for pin in pins: for pin in pins:
pins[pin]['state'] = GPIO.input(pin) pins[pin]['state'] = GPIO.input(pin)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment