arduino / ArduinoCore-mbed

347 stars 202 forks source link

Examples installed by the board manager are different from this repository #697

Open rtek1000 opened 1 year ago

rtek1000 commented 1 year ago

Hi,

I'm trying to compile sample USB Host HID (to support Keyboard and Mouse).

I found this tutorial, but it has more libraries in this repository than the libraries that were installed.

img

If I manually copy the library USBHOST to the folder where the other library are, this example did not compile: https://github.com/arduino/ArduinoCore-mbed/blob/main/libraries/USBHOST/examples/KeyboardController/KeyboardController.ino

/home/user/.arduino15/packages/arduino/hardware/mbed_rp2040/4.0.2/libraries/USBHOST/src/teeny_usb_platform.h:93:2: error: #error Device not supported

error Device not supported

Is it wrong to use the Board Manager to install this core?

Is this example not compatible with the core of this repository?

rtek1000 commented 1 year ago

I found this other USB Host example (Pico SDK Examples) which compiles correctly using the make command, I would like to compile something similar using the Arduino IDE:

https://github.com/raspberrypi/pico-examples/tree/master/usb/host/host_cdc_msc_hid