Skip to content

Instantly share code, notes, and snippets.

View jonasas's full-sized avatar

jonasas

View GitHub Profile
@jonasas
jonasas / pyusb_mouse_read.py
Created July 9, 2013 06:32
Python code for mouse reading under PyUSB.
import array
import sys
import usb.core
import usb.util
VID = 0x046d
PID = 0xc05a
DATA_SIZE = 4