We are using a teensy 2.0 on an Android 4.4 or Android 5.x device. We want the teensy to emulate a keyboard.
When a push-button is pressed a small letter should be send. After releasing a button, a capital letter should be send.
We have used teensyduino to write the necessary code. It's super simple to do like:
Keyboard.print(char('A'));
....
Keyboard.print(char('a'));
....
Somehow on windows machines it works fine, on Android, we see that the "keys" got jammed and a letter is send multiple times or it's even stuck in a loop.
When using the C code example (like shown here https://www.pjrc.com/teensy/usb_keyboard.html) it works on Android.
Any ideas what could cause this problem? Seems like the USB library when using teensyduino is different.
Any guidance is appreciated.