From 0115cce324fb79afdd68cd6d10f6077b22cd2127 Mon Sep 17 00:00:00 2001 From: rgm Date: Fri, 21 Apr 2017 11:20:11 -0500 Subject: [PATCH 1/2] Fix env var for pigpio Also provide example for starting pigpiod on boot. --- docs/remote_gpio.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/remote_gpio.rst b/docs/remote_gpio.rst index 6ead08f..cd8d810 100644 --- a/docs/remote_gpio.rst +++ b/docs/remote_gpio.rst @@ -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 From e68f624d139fa21be92542bab2c2814efd1a3118 Mon Sep 17 00:00:00 2001 From: rgm Date: Fri, 21 Apr 2017 11:21:19 -0500 Subject: [PATCH 2/2] Spelling typos --- docs/api_spi.rst | 2 +- docs/contributing.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api_spi.rst b/docs/api_spi.rst index 7fdc3bb..143b409 100644 --- a/docs/api_spi.rst +++ b/docs/api_spi.rst @@ -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 diff --git a/docs/contributing.rst b/docs/contributing.rst index 5c58da8..ec537b1 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -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