Micro:bit BLE HID Keyboards more keystroke #7543
Replies: 1 comment
-
Posted at 2021-10-20 by @gfwilliams Hi - you need to send multiple keys like is shown in the example you linked https://www.espruino.com/BLE+Keyboard
Sending the keypress takes time - it has to send 'keydown' followed by 'keyup'. It returns immediately and then calls the function in the third argument when finished. You can't just send multiple taps in commands one after the other Posted at 2021-10-20 by @fanoush @gfwilliams can this even work on microbit? the sendHIDReport https://github.com/espruino/Espruino/blob/master/libs/bluetooth/jswrap_bluetooth.c#L2471 is marked Posted at 2021-10-20 by @gfwilliams I think it's micro:bit 2 most likely :) micro:bit 2 is an nRF52833 Posted at 2021-10-20 by @fanoush oh, ok, sorry, was thinking v1 due to uart overflow in the other thread http://forum.espruino.com/conversations/369059/ but now I see yet another thread created by @coat with V2 in name Posted at 2021-10-20 by coat
Hi @gfwilliams and thank you very much.
@fanoush yes, mine is micro:bit v2. I was not precise in my request, I'm sorry and thank you for your help. I really don't know what UART_OVERFLOW error wants from me I'm still receiving also this error (or similar) when finally I flash the code
But again I don't know what it means Posted at 2021-10-20 by @fanoush the Posted at 2021-10-20 by coat Do you mean the firmware of the micro:bit? Posted at 2021-10-20 by @fanoush I mean the espruino firmware, you previously had to install some espruino_XXX_microbit2.hex file from https://www.espruino.com/Download Current version is shown in bottom right corner when you connect via WebIDE or via typing Posted at 2021-10-20 by coat
Oh yes! I've done this previously.
I read 2v10.113 Is it possible that I have installed the previous Cutting Edge Version (113) instead of 2V10? Posted at 2021-10-20 by @fanoush
yes, 2.10 release has no extra version, should say just 2.10 (I hope). So try different, the 2.10 or latest cutting edge. Posted at 2021-10-20 by coat No way.
Anyway, the code is working, as before, with no problem Posted at 2021-10-20 by @fanoush well at least the overflow could be hopefully gone. The error you have is "Not connected!" so nothing is connected to your microbit as HID keyboard I guess. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-10-20 by coat
Hi!
I noticed that, using the example code of Bluetooth LE HID Keyboards (here), if i write
the micro:bit send only the first letter (a).
Is there a workaround or somthing to do to allow the board to send more letters?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions