equal
deleted
inserted
replaced
42 dmx_pause(2); |
42 dmx_pause(2); |
43 } |
43 } |
44 |
44 |
45 #include "dmx_frame.c" |
45 #include "dmx_frame.c" |
46 |
46 |
47 static void dmx_packet (byte r, byte g, byte b) |
47 static void dmx_packet (byte count, byte *out) |
48 { |
48 { |
49 dmx_break(); |
49 dmx_break(); |
50 dmx_frame(0); |
50 dmx_frame(0); |
51 |
51 |
52 dmx_frame(0); // control |
52 for (byte i = 0; i < count; i++) { |
53 dmx_frame(r); |
53 dmx_frame(out[i]); |
54 dmx_frame(g); |
54 } |
55 dmx_frame(b); |
|
56 dmx_frame(0); // madness |
|
57 } |
55 } |