Created
December 27, 2015 00:06
-
-
Save padcom/a4fd9836a04d7240ea6b to your computer and use it in GitHub Desktop.
Make the i2c-tiny-usb driver recognize the Digispark/LittleWire version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/firmware/usbconfig.h b/firmware/usbconfig.h | |
index a51c68d..cc0385d 100644 | |
--- a/firmware/usbconfig.h | |
+++ b/firmware/usbconfig.h | |
@@ -115,7 +115,7 @@ extern void usbEventResetReady(void); | |
/* -------------------------- Device Description --------------------------- */ | |
-#define USB_CFG_VENDOR_ID 0xc0, 0x16 /* = 0x16c0 = 5824 = voti.nl */ | |
+#define USB_CFG_VENDOR_ID 0x40, 0x1c /* = 0x16c0 = 5824 = voti.nl */ | |
/* USB vendor ID for the device, low byte first. If you have registered your | |
* own Vendor ID, define it here. Otherwise you may use one of obdev's free | |
* shared VID/PID pairs. Be sure to read USB-IDs-for-free.txt for rules! | |
@@ -124,7 +124,7 @@ extern void usbEventResetReady(void); | |
* with libusb: 0x16c0/0x5dc. Use this VID/PID pair ONLY if you understand | |
* the implications! | |
*/ | |
-#define USB_CFG_DEVICE_ID 0xdc, 0x05 /* = 0x05dc = 1500 */ | |
+#define USB_CFG_DEVICE_ID 0x34, 0x05 /* = 0x05dc = 1500 */ | |
/* This is the ID of the product, low byte first. It is interpreted in the | |
* scope of the vendor ID. If you have registered your own VID with usb.org | |
* or if you have licensed a PID from somebody else, define it here. Otherwise |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment