-
Notifications
You must be signed in to change notification settings - Fork 27
/
README
93 lines (55 loc) · 1.48 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
NOTE
The overall install takes just over 1 minute.
INSTALL
Extract the archive to a directory.
IN THAT DIRECTORY
Enter the following commands (in this order)
make
sudo make install
This will install
o the library (liblgpio.so) in /usr/local/lib
o the library (librgpio.so) in /usr/local/lib
o the header file (lgpio.h) in /usr/local/include
o the header file (rgpio.h) in /usr/local/include
o the daemon (rgpiod) in /usr/local/bin
o the socket interface (rgs) in /usr/local/bin
o man pages in /usr/local/man/man1 and /usr/local/man/man3
o the lgpio and rgpio Python modules
EXAMPLE CODE
See the EXAMPLES directory
o lgpio - C (local)
o rgpio - C (local&remote)
o py_lgpio - Python (local)
o py_rgpio - Python (local&remote)
o rgs - shell
HTML
To build the HTML site use
make html
DAEMON
To launch the daemon do
rgpiod &
Use rgpiod -? to see options.
PYTHON MODULE
The Python modules are installed to the default Python location
for Python 2 and Python 3.
You can install them for additional Python versions as follows.
Go to the PY_LGPIO and PY_RGPIO directories and enter the
command.
pythonx.y setup.py install
where x.y is the Python version.
STOP DAEMON
To stop the rgpiod daemon
killall rgpiod
RUNNING ON NON LINUX SBC
On Windows machines (and possibly Macs)
The Python rgpio module should install with
python setup.py install
DOCUMENTATION
The most up to date should be http://abyz.me.uk/lg/
On the SBC try
man rgs
man rgpiod
man lgpio
man rgpio
pydoc lgpio
pydoc rgpio