I'm not any good at writing drivers myself, I mostly write apps and games in high-level languages. But just as a guess - wouldn't it be possible to program the board to load as normal and on a button press: change it's own mode, eject itself and then mount again with as a HID.
This is a pretty wild guess, but I figured it's possible, since even after being unmounted it would still have power supply from USB and resetting itself could be potentially possible.
It's also hard to predict for me how much processing time it would take to load instructions from flash into memory on such a board or if that part of firmware is even editable like that at all.
In any case, I'll try to look into the whole driver thing that you have on github and post a question on stackoverflow once I've studied the code. But as I told you, I'm very green in this whole thing, so I don't expect to do it better or sooner that you would :)
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.
I'm not any good at writing drivers myself, I mostly write apps and games in high-level languages. But just as a guess - wouldn't it be possible to program the board to load as normal and on a button press: change it's own mode, eject itself and then mount again with as a HID.
This is a pretty wild guess, but I figured it's possible, since even after being unmounted it would still have power supply from USB and resetting itself could be potentially possible.
It's also hard to predict for me how much processing time it would take to load instructions from flash into memory on such a board or if that part of firmware is even editable like that at all.
In any case, I'll try to look into the whole driver thing that you have on github and post a question on stackoverflow once I've studied the code. But as I told you, I'm very green in this whole thing, so I don't expect to do it better or sooner that you would :)