From 3bf2dafcbf0b15dc79dfdbd87630368156290c2d Mon Sep 17 00:00:00 2001 From: Stefan Rupp Date: Thu, 13 Mar 2014 02:05:24 +0100 Subject: [PATCH] improved led ordering --- ledcontroller.c | 53 ++++++------------------------------------------- rgbyteclock.c | 18 ----------------- 2 files changed, 6 insertions(+), 65 deletions(-) diff --git a/ledcontroller.c b/ledcontroller.c index c771bfc..3092196 100644 --- a/ledcontroller.c +++ b/ledcontroller.c @@ -54,36 +54,6 @@ static int8_t map_lednum_to_channels(uint8_t lednum, uint8_t *channel_r, uint8_t return ret; } -#if 0 -static void write_data(uint16_t data, uint8_t le_clocks) -{ - PORTC &= ~(1<=le_clocks; bit--) { - if(data&mask) { PORTC |= (1<>= 1; - PORTC &= ~(1<=0; bit--) { - if(data&mask) { PORTC |= (1<>= 1; - PORTC &= ~(1<