USBDevice library fork to add multi-function (e.g. Keyboard(HID) + Virtual COM Port(CDC)) usb support.
Fork of USBDevice by
Diff: USBHID/USBMouseKeyboard.h
- Revision:
- 70:7e8e3be9f0e3
- Parent:
- 47:a0cd9646ecd1
diff -r dad310740b28 -r 7e8e3be9f0e3 USBHID/USBMouseKeyboard.h --- a/USBHID/USBMouseKeyboard.h Tue Sep 11 15:17:01 2018 +0300 +++ b/USBHID/USBMouseKeyboard.h Thu Oct 04 15:43:40 2018 +0300 @@ -82,12 +82,12 @@ * */ USBMouseKeyboard(MOUSE_TYPE mouse_type = REL_MOUSE, uint16_t vendor_id = 0x0021, uint16_t product_id = 0x0011, uint16_t product_release = 0x0001): - USBHID(0, 0, vendor_id, product_id, product_release, false) + USBDevice(vendor_id, product_id, product_release), USBHID(0, 0, vendor_id, product_id, product_release, false) { lock_status = 0; button = 0; this->mouse_type = mouse_type; - connect(); + // connect(); XXX Removed from here to support multi-function usb devices }; /**