From a98b779412172b14c793e4751977873054549471 Mon Sep 17 00:00:00 2001 From: Stefan Rupp Date: Thu, 13 Mar 2014 01:33:13 +0100 Subject: [PATCH] daisy chaining basically works now. gotta sort leds now. --- ledcontroller.c | 31 +++++++++++++++++++++++++++++++ ledcontroller.h | 4 +++- rgbyteclock.c | 32 +++++++++++++++++++++++++------- 3 files changed, 59 insertions(+), 8 deletions(-) diff --git a/ledcontroller.c b/ledcontroller.c index 1a5c689..c771bfc 100644 --- a/ledcontroller.c +++ b/ledcontroller.c @@ -123,6 +123,11 @@ static void write_global_latch(uint16_t data) write_data(data, 6); } +static void write_no_command(uint16_t data) +{ + write_data(data, 0); +} + void ledcontroller_turn_all_on(void) { @@ -174,6 +179,7 @@ void led_set(uint8_t lednum, uint16_t red, uint16_t green, uint16_t blue) } +#if 0 void led_flush(void) { for (uint8_t i=0; i