-
-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reenable RawHID #245
base: master
Are you sure you want to change the base?
Reenable RawHID #245
Conversation
Hi there, We are thankful for your support, i came here to request you to include the RawHID.h file into the HID-Project.h
I am not yet sure why I removed it. I guess because it is not working properly yet. There are several issue about that already open. If you find a way to fix those, I am happy to enable the code again. |
Here is one of the issues specifically #133 Currently HID-Project is able to receive data from a PC with |
@spuder How can we fix raw hid? I really do not remember the current state. What is needed to make write work properly? |
I don't fully understand the bug, but as long as the RawHID sends an array of atleast 64 bytes it works fine. // Workaround for bug when sending less than 64 bytes of data
for (byte i = 0; i < sizeof(rawhidData); i++)
{
rawhidData[i] = 0x00;
}
RawHID.begin(rawhidData, sizeof(rawhidData)); If you attempt to send an array smaller than 64 bytes, nothing is transferred. Here is a working example https://github.com/spuder/MuteMe-arduino/blob/main/src/main.cpp |
Yeah, I think this has to be because a zero length package is missing or so. |
The current git seems to work reasonaby well based on my testing using the example here. There is a bug for the Feature report but the fix is simple. |
Hi there,
We are thankful for your support, i came here to request you to include the RawHID.h file into the HID-Project.h