Skip to content

Python script running my LED strip at home with a Raspberry Pi

Notifications You must be signed in to change notification settings

ngoctnq/underlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

underlight

Python script running my LED strip at home with a Raspberry Pi

Here's a video of it in action:

feeling the Christmas spirit

A video posted by DreAms / underlandian (@ngoctnq) on Dec 23, 2015 at 6:58pm PST

<script async defer src="https://platform.instagram.com/en_US/embeds.js"></script>

Requires pigpiod. This code is mainly used with shairport-sync, at least in my case, by

shairport-sync -v -o stdout | auproc.py

Send data to port 2112 to change the LED's behavior. doorlt lights it up white for 1 minute then turns itself off. hex_code for RGB changes the light until further notice. If the latter is on, then doorlt has no effect.

Originally there is another thread monitoring audio (which is commented out, but is still in the code). However, the RPi2 starts to stutter if that while loop runs, so I had to comment it out. Bummer, but what can I do.

Change the red, green, and blue pins in ledctrl.py. Change the port listening in auproc.py.

About

Python script running my LED strip at home with a Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages