Thanks! The separate module makes a lot of sense. I guess maybe any common bits of USB handshaking could be put in the main module, but yeah, it seems a lot more sensible to have keyboard/mass storage/etc modules. Who knows, maybe later on they could be used with other USB host interfaces :)
I'm not 100% sure on this but I believe keyboards have a 'boot mode', or at the very least most of them use a very similar packet format. You may find there's very little code needed to actually get something working if you try those first.
... I don't have time at the moment, if/when I do then I'd love to build on what you've got there and try and get it supporting some other peripheral types.
© Espruino, powered by microcosm.
Report a problem