#!C:\Python24\python import usb usb.initialize() dev = usb.open_device(0x04D8, 1) # 0x04D8 is the vendor ID assigned to Microchip, 1 is the product ID of our peripheral usb.control_write(dev, 0, 9, 1, 0, 0) # 9 is the number of the SET_CONFIGURATION standard request usb.close_device(dev)