flask gpio test

This commit is contained in:
Bernd Reuther 2021-03-03 17:38:53 +01:00
parent 50db88150d
commit 98bb854612

View File

@ -28,6 +28,7 @@ def main():
pins[pin]['state'] = GPIO.input(pin)
for pin in pins_in:
pins[pin]['state'] = GPIO.input(pin)
# Put the pin dictionary into the template data dictionary:
templateData = {
'pins' : pins,