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,12 @@
from gpiozero import LED
from gpiozero.pins.pigpio import PiGPIOPin
from gpiozero.tools import all_values
from signal import pause
led = LED(17)
button_1 = Button(PiGPIOPin(17, host='192.168.1.3'))
button_2 = Button(PiGPIOPin(17, host='192.168.1.4'))
led.source = all_values(button_1.values, button_2.values)
pause()