Advertisement
LifeByDesign

RaspberryPi Breathing LED Python Array

Feb 22nd, 2013
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import wiringpi
  2. import time
  3. io = wiringpi.GPIO(wiringpi.GPIO.WPI_MODE_PINS)
  4. io.pinMode(7,io.PUD_OFF)
  5. io.pinMode(3,io.PUD_OFF)
  6.  
  7. while True:
  8. time.sleep(4)
  9. io.pinMode(7,io.PUD_DOWN)
  10. time.sleep(4)
  11. io.pinMode(3,io.PUD_DOWN)
  12. time.sleep(4)
  13. io.pinMode(7,io.PUD_OFF)
  14. time.sleep(4)
  15. io.pinMode(3,io.PUD_OFF)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement