| 74 | } |
| 75 | |
| 76 | void USBHIDKeyboard::_onOutput(uint8_t report_id, const uint8_t *buffer, uint16_t len) { |
| 77 | if (report_id == HID_REPORT_ID_KEYBOARD) { |
| 78 | arduino_usb_hid_keyboard_event_data_t p; |
| 79 | p.leds = buffer[0]; |
| 80 | arduino_usb_event_post( |
| 81 | ARDUINO_USB_HID_KEYBOARD_EVENTS, |
| 82 | ARDUINO_USB_HID_KEYBOARD_LED_EVENT, |
| 83 | &p, |
| 84 | sizeof(arduino_usb_hid_keyboard_event_data_t), |
| 85 | portMAX_DELAY |
| 86 | ); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | void USBHIDKeyboard::sendReport(KeyReport *keys) { |
| 91 | hid_keyboard_report_t report; |
no outgoing calls
no test coverage detected