|
Revision 5891, 0.7 KB
(checked in by khali, 17 months ago)
|
|
Add a note about the python-devel requirement.
|
| Line | |
|---|
| 1 | |
|---|
| 2 | README: py-smbus |
|---|
| 3 | |
|---|
| 4 | To build: |
|---|
| 5 | $ python setup.py build |
|---|
| 6 | On most GNU/Linux distributions, you'll need to install the python-devel |
|---|
| 7 | package for the build to succeed. |
|---|
| 8 | |
|---|
| 9 | To install (will also build if necessary): |
|---|
| 10 | $ python setup.py install |
|---|
| 11 | |
|---|
| 12 | For general build/install help: |
|---|
| 13 | $ python setup.py --help-commands |
|---|
| 14 | |
|---|
| 15 | Frequently Answered Question: |
|---|
| 16 | |
|---|
| 17 | Q: 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 | |
|---|