mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-21 15:54:39 +01:00
[PHID] Added SetReport function
This commit just shows other that this option is available and not implemented. You may use this to determine the Led Lights state of a keyboard or transmit data via RAWHID from the PC. Quick usage guide: int length = ((setup.wValueH << 8) | setup.wLength); USB_RecvControl((uint8_t* data, USB_EP_SIZE); // Needs to be splitted into USB_EP_SIZE packets, not shown here. See HID Project.
This commit is contained in:
parent
0f9f63f2a5
commit
c8867462a8
@ -106,6 +106,9 @@ bool HID_::setup(USBSetup& setup)
|
|||||||
idle = setup.wValueL;
|
idle = setup.wValueL;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (request == HID_SET_REPORT)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user