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