mirror of
https://github.com/brmlab/edubrm.git
synced 2025-06-08 12:53:59 +02:00
change productID
This commit is contained in:
parent
ac9235a3f1
commit
4468f27594
5 changed files with 6 additions and 7 deletions
|
@ -1,4 +1,3 @@
|
|||
#define NXP_VID 0x1FC9
|
||||
#define USB_VENDOR_ID NXP_VID // Vendor ID
|
||||
#define USB_PROD_ID 0x0003 // Product ID
|
||||
#define USB_VENDOR_ID 0x1FC9 // Vendor ID
|
||||
#define USB_PROD_ID 0x1337 // Product ID
|
||||
#define USB_DEVICE 0x0100 // Device ID
|
||||
|
|
|
@ -26,7 +26,7 @@ const uint8_t USB_StringDescriptor[] = {
|
|||
/* Index 0x00: LANGID Codes */
|
||||
0x04, /* bLength */
|
||||
USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */
|
||||
WBVAL(NXP_VID), /* US English */ /* wLANGID */
|
||||
WBVAL(USB_VENDOR_ID), /* US English */ /* wLANGID */
|
||||
/* Index 0x04: Manufacturer */
|
||||
0x1C, /* bLength */
|
||||
USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
// Change these as needed to match idVendor and idProduct in your device's device descriptor.
|
||||
|
||||
static const int VENDOR_ID = 0x1fc9;
|
||||
static const int PRODUCT_ID = 0x0003;
|
||||
static const int PRODUCT_ID = 0x1337;
|
||||
|
||||
// Values for bmRequestType in the Setup transaction's Data packet.
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
import usb
|
||||
import time
|
||||
|
||||
usbdev = usb.core.find(idVendor=0x1fc9, idProduct=0x0003)
|
||||
usbdev = usb.core.find(idVendor = 0x1fc9, idProduct = 0x1337)
|
||||
|
||||
usbdev.set_configuration()
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import usb
|
|||
class Device:
|
||||
|
||||
VENDORID = 0x1fc9
|
||||
PRODUCTID = 0x0003
|
||||
PRODUCTID = 0x1337
|
||||
INSIZE = 64
|
||||
OUTSIZE = 2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue