If the aim is to convert the USB Pi keyboard into a Bluetooth keyboard that looks like an HID device recognised by a PC for example, the following sample from my Bluetooth library will do that. See section 3.11 in the documentation. There is also a Python example keyboard.py, but setting up the Python library takes more work.
https://github.com/petzval/btferret
https://github.com/petzval/btferret
Code:
Download keyboard.c keyboard.txt btlib.c btlib.h Compile gcc keyboard.c btlib.c -o keyboard Run sudo ./keyboard Follow the instructions about entering the Pi's Bluetooth address in keyboard.txt
Statistics: Posted by petzval — Fri Nov 15, 2024 11:22 am