#include #include "tlc5947.h" #define DLED_CHANNELS 24 #define DDR_DLED DDRD #define PORT_DLED PORTD #define PIN_DLED_CLOCK 5 #define PIN_DLED_DATA 4 #define PIN_DLED_LATCH 6 void init_LED_Drivers(int nb){ // LED drivers I/O as outputs DDR_DLED |= (1<=0; i--){ // 12 bits per channel, send MSB first int v=pwm[i]; int j; for(j=0; j<12; j++){ // Set CLOCK output low PORT_DLED &= ~(1<