Hi everyone,
I thought I'd share this with you - a simple script which creates 2 buttons, triggering a defined pulse on one of the outputs of a MCP23017
and which also creates a third button, that - as long as you touch it (works only on touch screens - not for mouse clicks) it turns on another MCP-output.
(I haven't yet found out, how I can make this work for mouse AND touch devices, without having it triggering twice ...)
The python script only initializes the MCP(s).
Please excuse my rough html, JS and python programming - I am actually not a programmer, but I got this together with the help of a friend
and the CSS-styles are from this website, where you can design your own buttons:
http://www.cssbuttongenerator.com/For me, this contains the basic functions that I was looking for in the beginning, when I started with WebIOPi
and I can imagine, others may be looking for the same.
I hope it helps and together with the official examples also helps to show, how you can make WebIOPi work for yourself.
Thanks to everyone, who helped to make WebIOPi !! Its fantastic guys :-)
Julian