"Fossies" - the Fresh Open Source Software Archive
Member "i2c-tools-4.3/py-smbus/README" (22 Jul 2021, 731 Bytes) of package /linux/misc/i2c-tools-4.3.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard
) with prefixed line numbers.
Alternatively you can here view
the uninterpreted source code file.
2 README: py-smbus
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.
9 To install (will also build if necessary):
10 $ python setup.py install
12 For general build/install help:
13 $ python setup.py --help-commands
15 Frequently Answered Question:
17 Q: It's throwing exceptions, nothing works, what's wrong?
19 A1: You need write permissions to the i2c-dev devices. Try running as root.
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.
25 A3: Some other kernel driver has claimed that I2C address. Unload it first.