root/i2c-tools/trunk/py-smbus/README

Revision 5891, 0.7 KB (checked in by khali, 17 months ago)

Add a note about the python-devel requirement.

Line 
1
2README: py-smbus
3
4To build:
5        $ python setup.py build
6On most GNU/Linux distributions, you'll need to install the python-devel
7package for the build to succeed.
8
9To install (will also build if necessary):
10        $ python setup.py install
11
12For general build/install help:
13        $ python setup.py --help-commands
14
15Frequently Answered Question:
16
17Q: It's throwing exceptions, nothing works, what's wrong?
18
19  A1: You need write permissions to the i2c-dev devices.  Try running as root.
20
21  A2: Addresses in Linux/I2C are the most-sig 7 bits, right-justified.  E.g.
22        if your device uses address 0xc0 to write and 0xc1 to read, then use
23        address 0x60 with this module.
24
25  A3: Some other kernel driver has claimed that I2C address.  Unload it first.
26
Note: See TracBrowser for help on using the browser.