Add more advanced and remote recipes

This commit is contained in:
Ben Nuttall
2017-07-17 02:03:29 +01:00
parent 957bb788ea
commit 220da280ba
16 changed files with 290 additions and 11 deletions

View File

@@ -0,0 +1,14 @@
from gpiozero import LED, PingServer
from gpiozero.tools import negated
from signal import pause
green = LED(17)
red = LED(18)
google = PingServer('google.com')
green.source = google.values
green.source_delay = 60
red.source = negated(green.values)
pause()