a-h / pico_usb_kbd_mouse

Minimal example of a Raspberry Pi Pico as a USB host accepting keboard and mouse input.
27 stars 2 forks source link

There isn't any examples of how to use it and I get some errors while trying to compile. #1

Open gabrielquiroga opened 2 years ago

gabrielquiroga commented 2 years ago

I have two principal errors. Firstly, there are many undefined macros in hcd.h, like CFG_TUH_HID_KEYBOARD, CFG_TUH_HID_MOUSE and CFG_TUSB_HOST_HID_GENERIC.

Secondly, the library bsp/board.h doesn't exist in my tinyusb folder. However, I can use it from this repo.

MauroMombelli commented 10 months ago

tinyusb folder is inside of the pico skd folder, do NOT duplicate it. You may need to set up the SDK manually (or automatic git clone), see https://github.com/raspberrypi/pico-sdk#quick-start-your-own-project

rodrigolealbatista commented 1 month ago

Teria como replicar as teclas recebidas do teclado evitando a tecla MENU do teclado e um pino digital para contar as vezes que vai a LOW para imprimir como um teclado a tecla MENU? Na minha ideia seria uma estrada otg para ligar o teclado usb periférico e uma saída USB hid para replicar as teclas segundo a questão, há possibilidade?