#BLE for kbd and mouse
1 messages · Page 1 of 1 (latest)
Could you elaborate on what you mean about "use its HID capabilities to be able to use my devices in any place"? Do you want a BLE-based workflow to edit the programs on the board? We are working on that: https://blog.adafruit.com/2021/12/16/pyleap-and-glider-for-circuit-python/
My goal is to pair the keyboard and the mouse with the micro controller. And connect the micro controller to the PC via USB (using the HID interface, so it is recognised as a keyboard & mouse). In this way, the micro controller will echo the mouse and keyboard. So I do not need to pair the mouse and keyboard with every device I want to use, but just with the micro controller, and use this as an USB keyboard/mouse (what in my case would be handy)
@grizzled mural (who is off for a few days, so we will wait for a reply) do we have central-initiated pairing with peripherals?
we don't have the code to do the HID side, but does the pairing work with the given example? https://github.com/adafruit/Adafruit_CircuitPython_BLE/blob/main/examples/ble_hid_central.py
@empty tiger did you try that example at all, and cut it down to see if you could at least connect? There is further code to write after that
I did not use that example but I could connect with the keyboard. The status was "connected" but I could not find the way to read what keys have been pressed in the keyboard
yes, that is the problem. There is no code to do the host side of the HID connection, to get the data.
How could I help to implement that part? as I said, my knowledge of the Bluetooth protocol is not that much, but I'm skilled in Python. With some guidance on the technical part, I think I'd manage to implement it