finally, get those LEDs sorted
This commit is contained in:
parent
fbdfb326e0
commit
fb376914a4
@ -214,12 +214,12 @@ void led_flush(void)
|
||||
uint8_t channel;
|
||||
for (channel=0; channel<NUM_LED1642GW_CHANNELS-1; channel++) {
|
||||
write_no_command(ledbuffer[channel+0]);
|
||||
write_no_command(ledbuffer[channel+16]);
|
||||
write_data_latch(ledbuffer[channel+32]);
|
||||
write_no_command(ledbuffer[channel+NUM_LED1642GW_CHANNELS]);
|
||||
write_data_latch(ledbuffer[channel+(2*NUM_LED1642GW_CHANNELS)]);
|
||||
}
|
||||
write_no_command(ledbuffer[NUM_LED_CHANNELS-3]);
|
||||
write_no_command(ledbuffer[NUM_LED_CHANNELS-2]);
|
||||
write_global_latch(ledbuffer[NUM_LED_CHANNELS-1]);
|
||||
write_no_command(ledbuffer[NUM_LED1642GW_CHANNELS-1]);
|
||||
write_no_command(ledbuffer[(2*NUM_LED1642GW_CHANNELS)-1]);
|
||||
write_global_latch(ledbuffer[(3*NUM_LED1642GW_CHANNELS)-1]);
|
||||
|
||||
}
|
||||
|
||||
|
@ -23,11 +23,11 @@ void rgbyteclock(void)
|
||||
ledcontroller_turn_all_on();
|
||||
|
||||
while (1) {
|
||||
PORTC ^= (1<<PC5);
|
||||
//PORTC ^= (1<<PC5);
|
||||
for (int i=0; i<14; i++) {
|
||||
led_set(i, 0x7ff, 0x00, 0x00);
|
||||
led_flush();
|
||||
timer_wait(1000);
|
||||
timer_wait(100);
|
||||
}
|
||||
/* for (int i=0; i<14; i++) { */
|
||||
/* led_set(i, 0x00, 0x00, 0x00); */
|
||||
@ -39,7 +39,7 @@ void rgbyteclock(void)
|
||||
for (int i=0; i<14; i++) {
|
||||
led_set(i, 0x00, 0x7ff, 0x00);
|
||||
led_flush();
|
||||
timer_wait(1000);
|
||||
timer_wait(100);
|
||||
}
|
||||
/* for (int i=0; i<14; i++) { */
|
||||
/* led_set(i, 0x00, 0x00, 0x00); */
|
||||
@ -51,7 +51,7 @@ void rgbyteclock(void)
|
||||
for (int i=0; i<14; i++) {
|
||||
led_set(i, 0x00, 0x00, 0x7ff);
|
||||
led_flush();
|
||||
timer_wait(1000);
|
||||
timer_wait(100);
|
||||
}
|
||||
/* for (int i=0; i<14; i++) { */
|
||||
/* led_set(i, 0x00, 0x00, 0x00); */
|
||||
|
Loading…
Reference in New Issue
Block a user