This script will let you send the primary colour of the current wallpaper you have to a Raspberry Pi connected to a RGB led strip.
- ColorThief:
sudo pip install colorthief - Pigpio Library: http://abyz.co.uk/rpi/pigpio/python.html (Installed by default on Raspbian)
- This Tool:
git clone https://github.com/salvacorts/image2leds.git
PORT = 5000 # Port to revieve from
RED_PIN = 36 # GPIO PIN for red
GREEN_PIN = 38 # GPIO PIN for green
BLUE_PIN = 40 # GPIO PIN for bluePORT = 5000 # Port to send to
SERVER = "192.168.1.8" # Server address
QUALITY = 5 # Quality to get dominant color
DURATION = 15 # Time to sleep before checking again (seconds)You can follow these nice tutorials:
- http://dordnung.de/raspberrypi-ledstrip/
- http://aruljohn.com/blog/raspberrypi-christmas-lights-rgb-led/
- Salva Corts
- @SalvaCorts
- salvacortsit@gmail.com
