#
FLK-E26581 gpio.setmode(gpio.BOARD)
82 gpio.setup(pins, gpio.OUT, initial=defaultState)
83
84 #main server85 run(app, server='paste', host='0', port=3000)
86
87 finally:
77 for pin in pins:
78 states[pin] = defaultState
79
80 #setting up the pins81 gpio.setmode(gpio.BOARD)
82 gpio.setup(pins, gpio.OUT, initial=defaultState)
83
64def index():
65 return static_file("index.html", root="static")
66
67#create control route on /control68@app.get('/control')
69def control():
70 return static_file("control.html", root="static")
Block comments should have one space before the pound sign #
and the comment itself.
#Save the data to DB, to ensure redundancy before responding
db.save(req.data)
api.send(req)
# Save the data to DB, to ensure redundancy before responding
db.save(req.data)
api.send(req)