Gemma USB Keyboard weirdness


#1

Hey folks,

I’m using an Adafruit Gemma to emulate a keyboard press over USB following the guide on the Adafruit Learning platform (https://learn.adafruit.com/trinket-usb-keyboard?view=all) and for the most part it works. However, after a couple of minutes without button presses the device seems to just stop working. Nothing but rebooting the Gemma will get it to react again.

In the situation I’ll be using it we could be minutes between button presses and having to reboot it each time would be a pain in the butt.

Does anyone know of a way around this?

I was thinking of just sending a keypress for something insignificant every 30 seconds to keep it alive, but that feels kinda janky. Does anyone have any better suggestions (alternate hardware / libraries) or experiences with a similar project?

Thanks!

Andy


#2

It’s possible there’s something in your code causing a lockup, like an overflowing counter.


#3

I hope not… it’s the exact code from the example that Adafruit supplied. I haven’t even begin to modify it yet 😆