Skip to content

Instantly share code, notes, and snippets.

@Ape
Created January 25, 2014 20:09
Show Gist options
  • Save Ape/8622727 to your computer and use it in GitHub Desktop.
Save Ape/8622727 to your computer and use it in GitHub Desktop.
pkt = bytearray(b'\x11\x80\x00\xff\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
device = open('/dev/hidraw7', 'wb')
device.write(pkt)
device.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment