From 76d974f182f87d04c0d347ba0f1b5669e48bf9a0 Mon Sep 17 00:00:00 2001 From: Stefan Rupp Date: Thu, 17 Apr 2014 04:52:46 +0200 Subject: [PATCH] gain test pattern --- rgbyteclock.c | 43 +++++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) 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<