.. _spi_configuration:
SPI Configuration
-----------------------
**Step 1**: Enable the SPI port of your Raspberry Pi (If you have
enabled it, skip this; if you do not know whether you have done that or
not, please continue).
.. raw:: html
.. code-block::
sudo raspi-config
**3 Interfacing options**
.. image:: img/image282.png
:align: center
**I3 SPI**
.. image:: img/i3spi.png
:align: center
**, then click and .**
.. image:: img/image286.png
:align: center
**Step 2:** Check that the spi modules are loaded and active.
.. raw:: html
.. code-block::
ls /dev/sp*
Then the following codes will appear (the number may be different).
.. code-block::
/dev/spidev0.0 /dev/spidev0.1
**Step 3:** Install Python module SPI-Py.
.. raw:: html
.. code-block::
git clone https://github.com/lthiery/SPI-Py.git
cd SPI-Py
sudo python3 setup.py install
.. note::
This step is for python users, if you use C language, please
skip.