@n00b, got a version with interrupt and setWatch going. I was a pretty useful experience. I had MCP23017 laying around for quite a long time... but the complexity and many options had raised the threshold to pick it up. Now it is done (for the most part). To really not miss any events or get stuck in a particular state, setInterval() is still a good helper. Furthermore, catching bouncing and other not so nice reality effects are interesting matter. Looking forward to hear from you.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@n00b, got a version with interrupt and setWatch going. I was a pretty useful experience. I had MCP23017 laying around for quite a long time... but the complexity and many options had raised the threshold to pick it up. Now it is done (for the most part). To really not miss any events or get stuck in a particular state,
setInterval()
is still a good helper. Furthermore, catching bouncing and other not so nice reality effects are interesting matter. Looking forward to hear from you.