Skip to content

Commit 9fdf67c

Browse files
committed
AE-577: Added info regarding hardware used for testing the implementation.
1 parent 8caaaef commit 9fdf67c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ void loop() {
5353

5454
The connection callback (via attachConnectionCallback()) notifies you when a compatible keyboard is connected.
5555

56+
Tested with: Oldschool classic Dell L100 and brand new “gaming” modern GamingX Trust keyboards.
57+
58+
5659
### Mouse
5760
Reading Mouse Information
5861
The mouse class provides a callback that returns a structure containing mouse event data. The structure is defined as follows:
@@ -85,16 +88,19 @@ void onMouseEvent(const HIDMouseEvent &mouseEvent) {
8588
usbMouse.attachMouseEventCallback(onMouseEvent);
8689
```
8790

91+
Tested with: basic wired mouse Genius X-Scroll GM-110020, new model GamingX Trust “gaming” mouse and Dell WM 126 wireless mouse.
92+
93+
94+
### Keyboard and Mouse
95+
In order to use two (or more) HID devices connected via a USB hub to your Portenta C33 board, please open "tusb_config.h" and make sure that "CFG_TUH_HUB" is set to value 1, and that "CFG_TUH_HID" is set to the number of HID devices you intend to connect to your Arduino (2 in this example).
96+
Please also keep in mind that some keyboards and mice which include advanced illumination features might draw more power than the Arduino is able to provide on its
97+
USB-A port and might therefore lead to a reset or failure to be enumerated by the board. Ideally, use basic USB keyboards and mice, these should work best.
98+
8899
### Temp. Development instructions
89100
Before all the changes get merged into the core, you will have to do some modifications to get this library to compile.
90101

91102
1. Enable TinyUSB HID Host support
92103

93104
In the core by modify [variants/PORTENTA_C33/tusb_config.h](https://github.com/arduino/ArduinoCore-renesas/blob/main/variants/PORTENTA_C33/tusb_config.h).
94105
On line 106, add `#define CFG_TUH_HID 1`.
95-
Check [this PR](https://github.com/arduino/ArduinoCore-renesas/compare/main...cristidragomir97:ArduinoCore-renesas:hid_host_c33) for more information.
96-
97-
2. Enable weak callback for `tuh_hid_report_received_cb`
98-
When enabling CFG_TUH_HID in tusb_config.h, the stack will expect a tuh_hid_report_received_cb callback to be defined in every sketch, preventing any sketch that doesn't have anything to do with the HID Host stack from compiling. The hid_host.h file defines weak callbacks in order to prevent this issue, but the TU_ATTR_WEAK is prefixed to most callbacks except fortuh_hid_report_received_cb. These changes add this attribute, allowing any sketch to compile.
99-
100-
Check [this PR](https://github.com/arduino/tinyusb/pull/3/commits/e3e9dd066cd64d98de6bd19d2920fec3019b71c4) for more information.
106+
Check [this PR](https://github.com/arduino/ArduinoCore-renesas/compare/main...cristidragomir97:ArduinoCore-renesas:hid_host_c33) for more information.

0 commit comments

Comments
 (0)