Add Pi Zero OTG, sense hat examples and more docs

This commit is contained in:
Ben Nuttall
2017-03-12 20:23:19 +00:00
parent 8e4da94f8b
commit 0507273d8a
5 changed files with 93 additions and 9 deletions

View File

@@ -0,0 +1,10 @@
from gpiozero import MotionSensor
from gpiozero.pins.pigpio import PiGPIOPin
from sense_hat import SenseHat
pir = MotionSensor(PiGPIOPin(4, host='192.168.1.4')) # remote motion sensor
sense = SenseHat() # local sense hat
while True:
pir.wait_for_motion()
sense.show_message(sense.temperature)