Sorry, I just edited the above code excerpts to better reflect what has to be tried on the RN42 setup and the puck.js setup.
I guess it'd make sense merging all the possible "interfaces" for a gamepad module & pass the chosen one as param ? ( as well as accept a higher-level helper function if needed ? )
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.
Sorry, I just edited the above code excerpts to better reflect what has to be tried on the RN42 setup and the puck.js setup.
I guess it'd make sense merging all the possible "interfaces" for a gamepad module & pass the chosen one as param ? ( as well as accept a higher-level helper function if needed ? )
Ex: possible choices of "interfaces":
the "gamepad higher level helper" could be close to the draft I wrote for another subject on the forums ( http://forum.espruino.com/conversations/325589/ )