How to change the device type when using RAWHID?
Opened this issue · 0 comments
ciriousjoker commented
Currently, my device is detected as the following:
In “Devices & Printers” (middle section), it shows up as “Unspecified”, but on the right it's listed as an "Input device".
How can I change it to be detected however I want?
Here's the relevant code:
#include <Arduino.h>
#include "HID-Project.h"
uint8_t rawhidData[255];
void setup()
{
RawHID.begin(rawhidData, sizeof(rawhidData));
}
void loop()
{
delay(2000);
// Create buffer with numbers and send it
uint8_t megabuff[100];
for (uint8_t i = 0; i < sizeof(megabuff); i++)
{
megabuff[i] = i;
}
RawHID.write(megabuff, sizeof(megabuff));
}
With HID().AppendDescriptor(&node);
I can specify a custom one, but how do I do that using RAWHID?