-
-
Save SergeyVN94/96d7982597c7a26af01e3def6a9bf50d to your computer and use it in GitHub Desktop.
This script should no longer be necessary thanks to the latest changes made to the master branch of the xpad [https://github.com/paroj/xpad] driver, please give it a try and report any regressions you find.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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