daily pastebin goal

Under Bed Motion Detector controlled LED strip

sweenig Sep 8th, 2017 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from gpiozero import MotionSensor, LED
  2. from signal import pause
  3. pir = MotionSensor(14)
  4. relay = LED(6)
  5. relay.source = pir.values
  6. pause()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand