"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 or download the uninterpreted source code file.

    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