Hi,
I'm using HID mouse example in SDK17.02.
How to simulate HOME key in HID when the device connected with a phone?
Hi,
I'm using HID mouse example in SDK17.02.
How to simulate HOME key in HID when the device connected with a phone?
Hi,
In HID there are modifer keys that potentially can be helpful here, though I am not sure if they will work with any phone or OS. In any case I would likely have started googling for modifier keys bluetooth and see if that give you any pointers. Typically you can find in the nRF5 SDK and nRF Connect SDK that there is HID over GATT example project, so if you find that modifier keys can work, then it should simply be mapping keys to send the right combination of modifier keys to the phone. But as mentioned, you may need to look at the OS of the phone and what they support, I will assume others have tried something similar before.
HID Usage table:
https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf
Best regards,
Kenneth
Sending Consumer Control Code 0x223 AC Home works for me.
Hi, how do you sending 0x223? Could you show me your control code?
I am using CircuitPython from adafruit as the firmware on a self made base board with a nRF52840
In CircuitPython I am using:
from adafruit_hid.consumer_control import ConsumerControl
....
self.cc = ConsumerControl(hid.devices)
....
self.cc.send_cc(0x223)
I don't know (think) this helps you much if you are not using CP in your project.
But anyway... I am very happy with the CP environment.