Open yelloish6 opened 8 years ago
Manged to read status with createGPIOButton. Add pull-down in HW to avoid random toggling of the label.
First try to implement styling on Living button based on value of GPIO27. Work on bacon.js code:
button = webiopi().createSequenceButton("living", "Living", 22, 200, "01"); var state = webiopi().digitalRead(27); var style = (state == 1) ? "HIGH" : "LOW"; button.attr("class", style); content.append(button);
digitalRead not working yet
Added Callback for digitalRead. styling change still not working. Trying with "autoChangeButton" using macros: https://groups.google.com/forum/#!searchin/webiopi/change$20style$20based$20on$20gpio$20value/webiopi/J9ypXqtsuhw/JfIzWlI7gqUJ
For the lights page, implement reading of light status.