Need some HID help. I am having issues sending numpad0-9 on my XIAO Sense BLE board. I am able to send 0-9 and numpad1-numpad9 using Keyboard.key_code(‘NumPad1’); but it just sends digits 0-9. I
cant seem to send the actual numpad keystrokes in Arduino
I’m using the seeed sense BLE board nrf5240. I’m trying to send key strokes using the mbed usbkeyboardmouse.h library for arduino. I can send 0-9 digits but can’t send numpad0-9 specific keys no matter what I try. I also don’t see a good list of key codes for those libraries so if you can provide a list as well or link that would be great.
Unfortunately these are setup issues which I don’t have. I am able to send keystrokes and mouse fine, . What I’m trying to do is specifically send numpad codes. It seems they maybe missing from your .h or .cpp files and not mapped out for the numpad. You have 0-9 all the f1-f12, modifier keys, arrow keys etc. it seems numpad keys are missing.
Thank you for the idea and keymap. I wasn’t able to use the teensy code for the SEEED BLE sense board. But I did notice missing hex maps? for numpad keys in the USBMouseKeyboard.cpp files for mbed enabled boards.
Crazy they are left out ? I would think something like the modifier first then the code. maybe?
Good stuff for the code bag though , sending and receiving those in both USB HID and BLE : - p
those tensy snips show what is indeed possible if only seeed pushed software support more.
it is what it is so the community picks up the slack when possible, support is amazing in supporting SO many products IMO.
Right! I was surprised myself. My problem is that Numpad sends like ghost characters to my other opened apps and Im using it to control a radial dial written in AHK. But if I use numbers or make it more complex by adding modifiers, strange things occur. I have a teensy board and used it flawlessly to do this but wanted a BLE version and smaller footprint. I also couldn’t get Edge impulse to work either as a machine language workaround. My main reason for purchasing was the board was for numpad emulation. I hope not yet another wasted board.
Yeah im not sure what libraries they belong too but they are not working with the mbed devices. I do have an arduino leonardo and these keys work fine. Seems like they did not support numpad keys which are key! Pun intended.
These seem to just trigger numbers on the BLE Sense board and not real numpad keys.
These codes will only work if the libraries included them. USBKeyboard.h and USBMouseKeyboard.h from mbed os do not have them?
It looks there is workaround this by not using the MBED version on the Arduino IDE and there fore can use Tiny USB library by adafruit and better yet the BLE52 library to get wireless keyboard and mouse.
You still have to add the hex values and key codes to he BLE52 .h files but otherwise, this works!