Skip to content

Instantly share code, notes, and snippets.

@felixgomez
Forked from dnmodder/fixcontroller.py
Created June 23, 2020 14:45
Show Gist options
  • Save felixgomez/65328008379c37dd889b7f2a6be5c781 to your computer and use it in GitHub Desktop.
Save felixgomez/65328008379c37dd889b7f2a6be5c781 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
import usb.core
dev = usb.core.find(idVendor=0x045e, idProduct=0x028e)
if dev is None:
raise ValueError('Device not found')
else:
dev.ctrl_transfer(0xc1, 0x01, 0x0100, 0x00, 0x14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment