#!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, 0x40, 2, 0, 0, 0) # 2 is the number of the CLR_RA0 vendor specific request usb.close_device(dev)