interest for tiny usb hid integration?

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
noobee
Posts: 2
Joined: Wed Oct 06, 2021 3:06 am

interest for tiny usb hid integration?

Post by noobee » Tue Oct 12, 2021 5:50 pm

hey all (and MP admins)

first post!

would like to find out if there is interest for enabling usb hid for the rp2 board? thanks to the initial example from hippy in this thread, i've been working on a prototype to enable keyboard, mouse, consumer_control and gamepad from the tusb libraries.

i would plan to use a similar API as circuit python's adafruit_hid libraries.

any thoughts or suggestions at this time? will the MP admins support this feature and a PR eventually?

thanks!

bitninja
Posts: 165
Joined: Thu Sep 15, 2016 4:09 pm
Location: Spring, Texas

Re: interest for tiny usb hid integration?

Post by bitninja » Tue Oct 12, 2021 8:46 pm

I would definitely be interested! BTW... check out the GITHUB status on this...

https://github.com/micropython/micropython/issues/6811

noobee
Posts: 2
Joined: Wed Oct 06, 2021 3:06 am

Re: interest for tiny usb hid integration?

Post by noobee » Sun Oct 31, 2021 9:02 pm

hey All

i've made a set of changes to enable USB HID support for keyboard, mouse, consumer control and gamepad.

made a post on the raspberrypi forum as i can't seem to add an attachment in this forum.

https://forums.raspberrypi.com/viewtopic.php?p=1931681

would like to hear any feedback and suggestions. eventually, would be great to be able to upstream the changes to MP.

elschopi
Posts: 16
Joined: Tue May 12, 2020 5:12 am
Location: Bavaria, Germany

Re: interest for tiny usb hid integration?

Post by elschopi » Tue Nov 09, 2021 11:05 am

hi noobee!

tested your implementation, it works great so far. I've only got one little question regarding sending key presses:
Is it possible to send complete strings with the keyboard? It would make sending data to a commandline or e.g. notepad much easier :D
I see that in the keyboard.py there is a _send method, but it wouldn't let me send text...
Of course I could always for..loop and convert to hex value each character of a string, but I was hoping for a simpler solution :lol:

best regards
chris

Post Reply