diff --git a/doc/install.rst b/doc/install.rst index 59412af..024cb51 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -21,14 +21,13 @@ This can be accomplished as follows: That should add your user to the GPIO group, create a new ``UDEV`` rule, and open it in the Nano text editor. -Enter the following into Nano +Enter the following into Nano: +.. code-block:: text - SUBSYSTEM=="gpio", KERNEL=="gpiochip*", ACTION=="add", PROGRAM="/bin/sh -c 'chown root:gpio /sys/class/gpio/export /sys/class/gpio/unexport ; chmod 220 /sys/class/gpio/export /sys/class/gpio/unexport'" SUBSYSTEM=="gpio", KERNEL=="gpio*", ACTION=="add", PROGRAM="/bin/sh -c 'chown root:gpio /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value ; chmod 660 /sys%p/active_low /sys%p/direction /sys%p/edge /sys%p/value'" + SUBSYSTEM=="gpio", KERNEL=="gpiochip*", ACTION=="add", PROGRAM="/bin/sh -c 'chown root:gpio /sys/class/gpio/export /sys/class/gpio/unexport ; chmod 220 /sys/class/gpio/export /sys/class/gpio/unexport'" - - -press ``ctrl-x``, ``Y``, and ``ENTER`` to save and close the file. +Press ``ctrl-x``, ``Y``, and ``ENTER`` to save and close the file. Finally, reboot and you should be ready to use ``OPi.GPIO`` as a non root user.