I'm trying to make a Nicla Sense ME act as a bluetooth keyboard using its builtin BLE module. It would use its various sensors as different input, i.e. shake the arduino to send a space bar keystroke, turn it to left to send left arrow keystroke etc.
It seems that the Nicla Sense board is a bit of an outlier though, since I'm running into compatibility issues with every example I can find for making an Arduino act as a keyboard, USB, BLE or otherwise.
I was wondering if there's an example that only relies on the ArduinoBLE package to achieve this? This so far seems the only thing I can guarantee is on the Nicla.
Libraries and repos I've tried so far
- NanoKeys: <BLE_API.h> is incompatible
- ESP32 BLE Keyboard: sdkconfig.h is missing?, arduino IDE straight up marks this example as "INCOMPATIBLE" in all caps
- bluemicro_hid: bluefruit.h is incompatible
- Nicla Sense Libraries: Does contain USB keyboard example, but even that doesn't work: "undefined ref to 'arduino::internal::PluggableUSBModule::...' "
- ArduinoBLE: works of course, but does not actually contain a keyboard example
(datasheet for nicla sense -> https://docs.arduino.cc/static/e789f25bacff23b4e1b8bda15effcf94/ABX00050-datasheet.pdf)