- uint8_t *data = (uint8_t *)malloc(chips * 28);
- for (int i = 0; i < chips; i++)
- tlc59711_create(line[i], data + (28 * i));
+ uint8_t data[chips*28];
+ uint16_t tmp[12];
+ for (int i = 0; i < chips; i++){
+ for(int b = 0; b < 12;b++)
+ tmp[11 - b] = line[(i*12)+b];
+
+ tlc59711_create(tmp, data + (28 * i));
+ }