Docs updates: add installing, advanced recipes, remote gpio and remote recipes - wip

This commit is contained in:
Ben Nuttall
2017-01-10 09:43:53 +00:00
parent ed12ac1994
commit dea7ba6ec2
19 changed files with 578 additions and 99 deletions

View File

@@ -0,0 +1,8 @@
import gpiozero
from gpiozero import TrafficHat
from gpiozero.pins.pigpio import PiGPIOFactory
from time import sleep
th_1 = TrafficHat() # traffic hat using local pins
gpiozero.Device._set_pin_factory(PiGPIOFactory(host='192.168.1.3'))
th_2 = TrafficHat() # traffic hat on 192.168.1.3 using remote pins