From d5d9cd7923106496987fc11314a72ca079e27793 Mon Sep 17 00:00:00 2001 From: Johannes Kroll Date: Sat, 10 Mar 2012 18:56:07 +0100 Subject: pow color scaling, remove sb_update_all_colors --- shiftbrite.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'shiftbrite.c') diff --git a/shiftbrite.c b/shiftbrite.c index 331a7b1..7d6c17e 100644 --- a/shiftbrite.c +++ b/shiftbrite.c @@ -78,16 +78,6 @@ static void sb_shiftout(uint32_t val) } } -#if 0 -/* shift out all color values to connected shiftbrites */ -static void sb_update_all_colors(void) -{ - for(int i = sb_num_shiftbrites-1; i>=0; i--) - sb_shiftout( (uint32_t)sb_colors[i].g | ((uint32_t)sb_colors[i].r<<10) | ((uint32_t)sb_colors[i].b<<20) ); - sb_toggle_latch(); -} -#endif - /* set the color of a shiftbrite. */ void sb_setcolor(uint8_t lamp_index, uint8_t r, uint8_t g, uint8_t b) { -- cgit v1.2.1