Update lights
This commit is contained in:
parent
eca3a360a8
commit
606897dce9
|
@ -32,6 +32,9 @@ static void * LEDOutThread( void * v )
|
|||
struct LEDOutDriver * led = (struct LEDOutDriver*)v;
|
||||
while(1)
|
||||
{
|
||||
int total_bytes = (led->total_leds*3)+1;
|
||||
total_bytes = ((total_bytes-1)&0xffc0) + 0x40; //Round up.
|
||||
printf( "TL: %d\n", total_bytes );
|
||||
if( led->readyFlag )
|
||||
{
|
||||
int r = libusb_control_transfer( led->devh,
|
||||
|
@ -40,7 +43,7 @@ static void * LEDOutThread( void * v )
|
|||
0x0100, //wValue
|
||||
0x0000, //wIndex
|
||||
led->last_leds,
|
||||
(led->total_leds*3)+1,
|
||||
total_bytes,
|
||||
1000 );
|
||||
if( r < 0 )
|
||||
{
|
||||
|
|
|
@ -21,7 +21,7 @@ samplerate = 44100
|
|||
wininput = 0
|
||||
|
||||
#Compiled version will default this.
|
||||
#sound_source = PULSE
|
||||
#sound_source = ALSA
|
||||
#-1 indicates left and right, 0 left, 1 right.
|
||||
|
||||
sample_channel = -1
|
||||
|
|
|
@ -12,10 +12,12 @@ steady_bright = 0
|
|||
#dft_q = 20.0000
|
||||
#dft_speedup = 1000.0000
|
||||
|
||||
sourcename = alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
|
||||
sourcename = alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
|
||||
#alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
|
||||
skipfirst = 1
|
||||
firstval = 0
|
||||
port = 7777
|
||||
#address = 192.168.4.1
|
||||
address = 192.168.0.245
|
||||
|
||||
slope=.10
|
||||
|
|
19
colorchord2/usb_line.conf
Normal file
19
colorchord2/usb_line.conf
Normal file
|
@ -0,0 +1,19 @@
|
|||
outdrivers = DisplayUSB2812, OutputLinear
|
||||
|
||||
leds = 27
|
||||
shape_cutoff = 0.03
|
||||
satamp = 2.000
|
||||
amppow = 2.5
|
||||
distpow = 1.500
|
||||
ledoutamp = .4
|
||||
|
||||
sourcename = alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
|
||||
#alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
|
||||
|
||||
note_attach_amp_iir = .3000
|
||||
note_attach_amp_iir2 = .1500
|
||||
note_attach_freq_iir = 0.3000
|
||||
steady_bright = 0
|
||||
|
||||
skipfirst = 1
|
||||
firstval = 0
|
Loading…
Reference in a new issue