Skip to content

Commit

Permalink
Docs: i2c/smbus requirements (#120)
Browse files Browse the repository at this point in the history
Copy/paste existing notes on smbus from readme into docs
  • Loading branch information
clach04 committed Jan 28, 2021
1 parent c56bcc0 commit e544329
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ You can install RPLCD directly from `PyPI

$ sudo pip install RPLCD

If you want to use I²C, you also need smbus::
If you want to use I²C, you also either the smbus or `smbus2 <https://pypi.org/project/smbus2/>`_ library::

$ sudo apt-get install python-smbus
$ sudo apt install python-smbus
or
$ sudo pip install smbus2

RPLCD will first try to use smbus if available and if not, fall back to smbus2.

If you want to use pigpio, the easiest way is to install the library via your
packet manager (select the Python version you need)::
Expand Down

0 comments on commit e544329

Please sign in to comment.