flask gpio test
This commit is contained in:
parent
50db88150d
commit
98bb854612
@ -28,6 +28,7 @@ def main():
|
|||||||
pins[pin]['state'] = GPIO.input(pin)
|
pins[pin]['state'] = GPIO.input(pin)
|
||||||
for pin in pins_in:
|
for pin in pins_in:
|
||||||
pins[pin]['state'] = GPIO.input(pin)
|
pins[pin]['state'] = GPIO.input(pin)
|
||||||
|
|
||||||
# Put the pin dictionary into the template data dictionary:
|
# Put the pin dictionary into the template data dictionary:
|
||||||
templateData = {
|
templateData = {
|
||||||
'pins' : pins,
|
'pins' : pins,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user