WiPy 2.0 as a Bluetooth HID keyboard?
-
With the upcoming BLE server API, will the WiPy 2.0 and Expansion Board be suitable for prototyping a Bluetooth keyboard?
My main requirement is the ability to interpret up to 20 simultaneous keypresses, then process the input and send a string over Bluetooth upon final keyup.
Would also like to be able to default to a USB HID if the USB cable is connected. The Pyboard has a usb_mode feature for this that you can set to
pyb.hid_keyboard, but I couldn't see anything similar in the pycom module yet. -
It depends on your target application. It should be possible to implement a simple BLE HID profile to emulate a keyboard, so if your target supports Bluetooth LE (not Bluetooth Classic) keyboards it could work.
However many platforms now - macOS, Windows 10 and, while I haven't checked recently, possibly also newer versions of iOS or Android - require BLE bonding/pairing for keyboards to work and this isn't available yet.
As for USB I don't think the WiPy ha USB stack (the ESP32 doesn't have a USB peripheral) and the only USB socket is on the expansion board which really just goes to a dedicated USB-serial chip.
-
Thanks, @jmarcelino – appreciate the feedback. I'll likely wait until pairing is available.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login