Arduino leonardo and USB Host Shield 2.0

I use Arduino Leonardo and USB Host Shield, similar to the image below. When I run the Example → USB Host Shield 2.0 → HID → USB HID Boot mouse and try moving the mouse, the result in the Serial monitor is ‘Start’ and nothing happens.

1.I have successfully installed the USB Host Shield Library 2.0.

2.I have tried it with 3 mice and 2 PCs, and obtained the same result. It is clear that all of them can function normally.

3.I have used the SparkFun USB Host Shield with the Arduino Lambda following the steps I previously mentioned, and it worked fine.

4.I tried printing the value of Usb.init(), and it showed 0, indicating that this step has no issues. (if (Usb.Init() == -1) Serial.println(“OSC did not start.”)

5.My Arduino board and USB Host Shield are genuine.

6.The USB Host Shield in the image does not require soldering.

“Please speak politely. I am just a beginner when it comes to hardware.”

https://europe1.discourse-cdn.com/ardui … e3059.jpeg

https://europe1.discourse-cdn.com/ardui … c2caa.jpeg

https://europe1.discourse-cdn.com/ardui … cc253c.png

Luckily it works with the other board, so it functional :slight_smile:

It’s very likely just due to differences in the Leonardo’s pin#'s; you might need to edit the constants.h (or similar?) to use the Leonardo’s pin numbers instead