Scripts to control a strip of LPD8806 LEDs from a raspberry pi's GPIO

flush.py 318B

123456789101112131415
  1. #!/usr/bin/python
  2. # Light painting / POV demo for Raspberry Pi using
  3. # Adafruit Digital Addressable RGB LED flex strip.
  4. # ----> http://adafruit.com/products/306
  5. import RPi.GPIO as GPIO, Image, time
  6. # Configurable values
  7. dev = "/dev/spidev0.0"
  8. # Flush the LED strip
  9. spidev = file(dev, "wb")
  10. spidev.flush()