OUT Endpoint not accessible by pyusb
问题 I am trying to send num lock to my custom hardware acting as a HID Keyboard. I have tied up an LED to glow if the num lock key is received on the USB. It works fine for numlock keypress from external keyboard. But I am unable to send the num lock key manually through pyusb (0x01) This is the part of the code responsible for sending it: dev = usb.core.find(idVendor=0xXXXX, idProduct=0xXXXX) try: dev.set_configuration() except usb.core.USBError as e: print e #endpoint = dev[0][(0,0)][0] # get