-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
11 lines (8 loc) · 973 Bytes
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
Light Show v0.2.0 (18 October 2014)
Copyright (C) 2014 Nick Lowery ([email protected])
See license.txt for full license.
Light Show is a Python program designed to run on Raspberry Pi. It listens to mono audio input from a specified device and uses PWM (pulse-width modulation) to adjust the brightness and color of any RGB light system according to what it hears.
Required extra Python modules:
- RPi.GPIO
- alsaaudio
By default, the program is set up to control two RGB lights connected to the Raspberry Pi's GPIO pins 11, 12, 13, 15, 16, and 18 respectively for R1, G1, B1, R2, G2, B2 channels. The brightness of both lights is determined by the function B(V) = aV^b, where B(V) is the brightness, V is the volume of audio heard, a is the volume multiplier, and b is the volume exponent. The color of both lights rotates through the color wheel once every thirty seconds. All of these values are listed as globals at the top of the script and may be modified.