forked from gbishop/cython-hidapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
67 lines (40 loc) · 1.21 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
cython-hidapi
=============
.. contents::
Description
-----------
A Cython interface to the HIDAPI from https://github.com/signal11/hidapi
This has been tested with:
* the PIC18F4550 on the development board from CCS with their example program.
* the Fine Offset WH3081 Weather Station.
It works on Linux, Windows XP and OS X.
Software Dependencies
---------------------
* Python (http://python.org/download/)
* Cython (http://cython.org/#download)
* libusb and libudev on Linux
License
-------
You are free to use cython-hidapi code for any purpose.
Install
-------
$ pip install hidapi
For other download options visit the PyPi page of cython-hidapi (https://pypi.python.org/pypi/hidapi/)
Build from source
-----------------
1. Download cython-hidapi archive::
$ git clone https://github.com/trezor/cython-hidapi.git
$ cd cython-hidapi
2. Initialize hidapi submodule::
$ git submodule init
$ git submodule update
3. Build cython-hidapi extension module::
$ python setup.py build
4. Install cython-hidapi module into your Python distribution::
$ [sudo] python setup.py install
5. Test install::
$ python
>>> import hid
>>>
6. Try example script::
$ python try.py