I have a 6 x 5 matrix button box as USB game controller, with 4 rotary encoders, its driven by a Teensy2 but there's pin limitations. I want to build one with more buttons and rotaries so I bought a Pi Pico, and am now searching for examples of suitable code I can adapt to get the project running. So far I cannot find anything. I learnt enough Teensy/Arduino C to get the Teensy running fine but I have no clue when it comes to micropython.
Any assistance you can give re matrix button boxes & rotary encoders for a usb HID would be much appreciated!
HID USB Button box controller?
Re: HID USB Button box controller?
Although MicroPython supports HID on other boards (e.g. pyboard), it's not (yet) supported on the Pico.
However, you might want to take a look at CircuitPython, I believe they have HID support in their Pico port.
Re: HID USB Button box controller?
Yup, we do have HID support. You can get CircuitPython for the Pico here: https://circuitpython.org/board/raspberry_pi_pico/ and the getting started guide is here: https://learn.adafruit.com/getting-star ... cuitpython
We don't currently support rotary encoders but it's on our TODO list (it uses the `rotaryio` module.) Here is our HID example from the essentials guide: https://learn.adafruit.com/circuitpytho ... -and-mouse
We don't currently support rotary encoders but it's on our TODO list (it uses the `rotaryio` module.) Here is our HID example from the essentials guide: https://learn.adafruit.com/circuitpytho ... -and-mouse
Re: HID USB Button box controller?
Thanbks - we had some dialog in the Discord over last few days. I tried rotaryio on pico using circuitpython but it returned an error. Now I understand why. The rotary encoders are pretty much fundamental to my project, looking forward to some updates
Re: HID USB Button box controller?
Eagerly waiting for USB_HID to be supported on Stock Micropython as well, not just circuit python.
From what I saw, main troubles could be with cmake setup, since all needed code exists already in a place or another.
Do you know if someone actively works on this?
From what I saw, main troubles could be with cmake setup, since all needed code exists already in a place or another.
Do you know if someone actively works on this?
Re: HID USB Button box controller?
Im in a dilemna - HID works on circuitpython but not micropython, I now have working rotary encoders in micropython but they wont yet work in circuitpython, I also now have C/C++ capability via Win10 and visual stodio code but cant port over my teensy2 project as i need access to keypad and joystick library.tannewt wrote: ↑Mon Feb 08, 2021 11:11 pmYup, we do have HID support. You can get CircuitPython for the Pico here: https://circuitpython.org/board/raspberry_pi_pico/ and the getting started guide is here: https://learn.adafruit.com/getting-star ... cuitpython
We don't currently support rotary encoders but it's on our TODO list (it uses the `rotaryio` module.) Here is our HID example from the essentials guide: https://learn.adafruit.com/circuitpytho ... -and-mouse
Re: HID USB Button box controller?
Anyone have any idea when USB_HID will be added for the Pico?
Re: HID USB Button box controller?
Hi, I did not see any reply to the previous question as to when HID support will be added for the Pico? Is there a roadmap for the project somewhere? I am willing to lend a hand if necessary to help to get it integrated.
I am struggling with porting a project that needs both async and HID support to the Pico. CircuitPython does HID but not async, while MicroPython does async but not HID...
I am struggling with porting a project that needs both async and HID support to the Pico. CircuitPython does HID but not async, while MicroPython does async but not HID...
Re: HID USB Button box controller?
I managed to get HID keyboard working with MicroPython. I'm not sure it was done right or even useful but may be of help to others ...
https://www.raspberrypi.org/forums/view ... 0#p1866070
https://www.raspberrypi.org/forums/view ... 0#p1866070