Skip to content

Commit c886746

Browse files
committed
[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.
1 parent 0f9f63f commit c886746

File tree

1 file changed

+3
-0
lines changed
  • hardware/arduino/avr/libraries/HID

1 file changed

+3
-0
lines changed

hardware/arduino/avr/libraries/HID/HID.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ bool HID_::setup(USBSetup& setup)
106106
idle = setup.wValueL;
107107
return true;
108108
}
109+
if (request == HID_SET_REPORT)
110+
{
111+
}
109112
}
110113

111114
return false;

0 commit comments

Comments
 (0)