From f32f578c092f955772cedc855a6d251453b23ea4 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Mon, 24 Jun 2019 22:19:24 +0100 Subject: [PATCH] update gpio readme files --- hardware/PiGpio/README.md | 6 ++++-- hardware/pigpiod/README.md | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/hardware/PiGpio/README.md b/hardware/PiGpio/README.md index b575f73e..e4b548b2 100644 --- a/hardware/PiGpio/README.md +++ b/hardware/PiGpio/README.md @@ -7,7 +7,9 @@ It also include a simple node that detect mouse buttons and also keyboard clicks picks up mouse keys direct from the keyboard so should work even when the app does not have focus, but YMMV. -If you need servo control then look at the node-red-node-pi-gpiod node as this is a lot more accurate timing wise, and more suitable for driving servos +If you need servo control then look at the +node-red-node-pi-gpiod node +as this is a lot more accurate timing wise, and more suitable for driving servos ## Install @@ -16,7 +18,7 @@ command in your Node-RED user directory - typically `~/.node-red` npm i node-red-node-pi-gpio -The python library may also work with other distros on on Pi (like Ubuntu on Pi) - you will need to install the PIGPIO package and run the following commands in order to gain full access to the GPIO pins as this ability is not part of the default distro. +The python library may also work with other distros running on a Pi (like Ubuntu or Debian) - you will need to install the PIGPIO package and run the following commands in order to gain full access to the GPIO pins as this ability is not part of the default distro. This is NOT necessary on Raspbian. sudo apt-get install python-pip python-dev sudo pip install RPi.GPIO diff --git a/hardware/pigpiod/README.md b/hardware/pigpiod/README.md index d6bdadeb..c69db58b 100644 --- a/hardware/pigpiod/README.md +++ b/hardware/pigpiod/README.md @@ -2,9 +2,11 @@ node-red-node-pi-gpiod ====================== An alternative pair of Node-RED nodes to interact with Pi GPIO using -the PiGPIOd daemon that is now part of Raspbian. +the PiGPIOd daemon that is now part of Raspbian. -The advantage is that it also talk to GPIO on a Pi that is remote as long as it is running the daemon, and also sharing pins works more cleanly as contention is handled by the multiple connections. +The advantage is that it also talk to GPIO on a Pi that is remote as long as it is running the daemon, and also sharing pins works more cleanly as contention is handled by the multiple connections. This is also a +good way to access GPIO when running Docker on a Pi as you can use the network connection to link out of +the container to the PiGPIO daemon running on the host. The disadvantage is that you must setup and run the PiGPIO daemon first. @@ -19,7 +21,7 @@ PiGPIOd must be running on the pi. The easiest way to ensure this is to add the /usr/bin/pigpiod -l /usr/bin/pigpiod -n 192.168.1.10 -See the instructions for more details. +See the instructions for more details. ## Install