Merge pull request #556 from rgm3/pigpio-pin-factory

Update pigpio pin factory example, spelling
This commit is contained in:
Ben Nuttall
2017-04-21 19:25:41 +01:00
committed by GitHub
3 changed files with 5 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ omit any arguments from either scheme. The defaults are:
* *clock_pin* defaults to 11, *mosi_pin* defaults to 10, *miso_pin* defaults
to 9, and *select_pin* defaults to 8.
Hence the following constructors are all equiavlent::
Hence the following constructors are all equivalent::
from gpiozero import MCP3008

View File

@@ -34,7 +34,7 @@ LED example").
Commits which close (or intend to close) an issue should include the phrase
"fix #123" or "close #123" where ``#123`` is the issue number, as well as
include a short description, for example: "Add LED example, close #123", and
pull requests should aim to match or closely match the correspoding issue
pull requests should aim to match or closely match the corresponding issue
title.
Backwards compatibility

View File

@@ -48,7 +48,7 @@ example::
You will need to launch the pigpio daemon every time you wish to use this
feature. To automate running the daemon at boot time::
???
sudo systemctl enable pigpiod
Preparing the host computer
===========================
@@ -149,7 +149,7 @@ ensure the default pin factory is set to ``PiGPIOPin``. If ``RPi.GPIO`` is
installed, this will be selected as the default pin factory, so either uninstall
it, or use another environment variable to set it to ``PiGPIOPin``::
$ GPIOZERO_PIN_FACTORY=pigpio PIGPIO_ADDR=192.168.1.3 python3 hello.py
$ GPIOZERO_PIN_FACTORY=PiGPIOPin PIGPIO_ADDR=192.168.1.3 python3 hello.py
This usage will set the pin factory to :class:`PiGPIOPin` with a default host of
``192.168.1.3``. The pin factory can be changed inline in the code, as seen in
@@ -212,7 +212,7 @@ environment variables, or by using :meth:`~Device._set_pin_factory`:
.. literalinclude:: examples/traffichat_remote_1.py
This also allows you to swap between two IP addresses and create instances of
mutliple HATs connected to different Pis:
multiple HATs connected to different Pis:
.. literalinclude:: examples/traffichat_remote_2.py