Currently I only deal with 6 buttons. This is because the HID report can handle up to 6 buttons at a time.
I will continue to work on it for some improvements and hopefully I will come back soon with some pictures and/or videos just for your curiosity and for my pleasure ;-)
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.
OK I managed to solve my problem by calling
NRF.sendHIDReport
manually.Now I have a first working gamepad implementation. Here is my script:
Currently I only deal with 6 buttons. This is because the HID report can handle up to 6 buttons at a time.
I will continue to work on it for some improvements and hopefully I will come back soon with some pictures and/or videos just for your curiosity and for my pleasure ;-)