gain test pattern

This commit is contained in:
Stefan Rupp 2014-04-17 04:52:46 +02:00
parent 2396fa70fe
commit 76d974f182

View File

@ -6,23 +6,38 @@ void rgbyteclock(void)
{ {
uint8_t gain = 0; uint8_t gain = 0;
rgbyteclock_rounds_white(); //rgbyteclock_rounds_white();
for (int led=0;led<12;led++) {
led_set(led, 200*(12-led), 200*(led), 0);
}
led_flush();
while (1) { while (1) {
led_set(0, 4000, 0, 0); PORTC |= (1<<PC5); // Test LED
led_flush(); for (int led=0;led<12;led++) {
timer_wait(500); led_set(led, 100*(12-led), 100*(led), 100);
}
led_flush();
led_set(1, 0, 10000, 0); led_set_current_mode(0);
led_flush(); for (gain=0;gain<=0x3f;gain+=8) {
timer_wait(500); led_set_gain(gain);
led_set_gain(gain); timer_wait(250);
gain += 5; }
if (gain > 0x3f) {
gain = 0; PORTC &= ~(1<<PC5); // Test LED
} for (int led=0;led<12;led++) {
PORTC ^= (1<<PC5); // Test LED led_set(led, 100*(12-led), 100*(led), 100);
}
led_flush();
led_set_current_mode(1);
for (gain=0;gain<=0x3f;gain+=8) {
led_set_gain(gain);
timer_wait(250);
}
} }
} }