Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    WiPy 2.0 as a Bluetooth HID keyboard?

    Scheduled Pinned Locked Moved MicroPython
    3 Posts 2 Posters 2.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      ndc
      last edited by ndc

      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.

      1 Reply Last reply Reply Quote 0
      • J Offline
        jmarcelino
        last edited by jmarcelino

        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.

        1 Reply Last reply Reply Quote 0
        • N Offline
          ndc
          last edited by

          Thanks, @jmarcelino – appreciate the feedback. I'll likely wait until pairing is available.

          1 Reply Last reply Reply Quote 0

          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
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom