diff --git a/rgbyteclock.c b/rgbyteclock.c index 25e6ceb..c8d9c59 100644 --- a/rgbyteclock.c +++ b/rgbyteclock.c @@ -4,7 +4,8 @@ void rgbyteclock(void) { - uint8_t gain = 0; + uint8_t gain = 0x2f; + led_set_gain(gain); while (1) { led_set(0, 4000, 0, 0); @@ -14,13 +15,17 @@ void rgbyteclock(void) led_set(1, 0, 10000, 0); led_flush(); timer_wait(500); - led_set_gain(gain); - gain += 5; - if (gain > 0x3f) { - gain = 0; - } + + led_set(0, 0, 0, 0); + led_flush(); + timer_wait(500); + + led_set(1, 0, 0, 0); + led_flush(); + timer_wait(500); + PORTC ^= (1<