-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
48 lines (39 loc) · 1.62 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
1. Introduction
---------------
PiLowLib is a library that provides low level access to the
peripherals of the Raspberry PI. Currently, besides the raw access
to the registers, the following peripherals are supported:
* simple digital I/O
* PWM
* SPI
* clocks
PiLowLib is fast and performant due to the fact that
it uses direct access to the Raspberry PI's
peripherals registers. Moreover, it's completely
written in Python and does not need any C compiling.
PiLowLib was written by Calin Crisan <ccrisan@gmail.com>
and is released under LGPLv3 license.
Parts of this library were inspired from the wiringPi project
written by Gordon Henderson.
(https://projects.drogon.net/raspberry-pi/wiringpi/)
2. Installing
-------------
The library works exclusively on a Raspberry PI device
and it requires full root access to `/dev/mem'.
Therefore it is strongly recommended not to install it on any
other type of machine.
You can always download the latest source code from github:
https://github.com/ccrisan/pilowlib
For testing purposes you can just use the library from its
download location, by setting the PYTHONPATH accordingly:
export PYTHONPATH=$PYTHONPATH:/path/to/pilowlib
If you want to install it on the system, just run the following
command (as root):
python setup.py install
3. Getting started
------------------
A couple of source code samples were included in the
`examples' directory. This is a good point to get started.
More details on how the hardware and peripherals worok can
always be found by reading the datasheet:
http://www.designspark.com/files/ds/supporting_materials/Broadcom%20BCM2835.pdf