diff --git a/rgbyteclock.c b/rgbyteclock.c index 4feae8c..c3b54db 100644 --- a/rgbyteclock.c +++ b/rgbyteclock.c @@ -6,23 +6,38 @@ void rgbyteclock(void) { 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) { - - led_set(0, 4000, 0, 0); - led_flush(); - timer_wait(500); - led_set(1, 0, 10000, 0); - led_flush(); - timer_wait(500); - led_set_gain(gain); - gain += 5; - if (gain > 0x3f) { - gain = 0; - } - PORTC ^= (1<