I just spent quite a few hours going crazy trying to debug an issue. I'm trying to connect a mouse and keyboard via a USB hub to an arduino uno. I had everything connected correctly (with a powered USB hub), but was seeing no output from mouse or keyboard events using the USBHIDKbdAndMouse.ino example.
Is it intended behavior that order on these matters? If this is intended: The behavior here is a bit confusing, and adding it to the comments on that ino file might save others the trouble I had.
Hello!
I just spent quite a few hours going crazy trying to debug an issue. I'm trying to connect a mouse and keyboard via a USB hub to an arduino uno. I had everything connected correctly (with a powered USB hub), but was seeing no output from mouse or keyboard events using the USBHIDKbdAndMouse.ino example.
Original code: In this case, nothing works
However, if I reorder the lines as follows the mouse+kbd start working.
Is it intended behavior that order on these matters? If this is intended: The behavior here is a bit confusing, and adding it to the comments on that ino file might save others the trouble I had.