44 Color(
int r,
int g,
int b);
61 std::vector<std::vector<unsigned char>>
makeVideoUsbPackets(
const std::vector<std::vector<Color>>& led_array_colors);
69 const std::vector<int>& green_lookup_values,
70 const std::vector<int>& blue_lookup_values);
std::vector< std::vector< unsigned char > > makeLookupTablePackets(const std::vector< int > &red_lookup_values, const std::vector< int > &green_lookup_values, const std::vector< int > &blue_lookup_values)
makeLookupTablePackets Create USB packets for a simple color lookup table. The entire red lookup tabl...
Color(int r, int g, int b)
The color struct contains the r, g and b colors.
std::vector< int > makeDefaultLookupTable()
makeLookupTablePackets Return lookup tables as 3 lists of lookup values - one for the red channel...
std::vector< std::vector< unsigned char > > makeVideoUsbPackets(const std::vector< std::vector< Color >> &led_array_colors)
makeVideoUsbPackets Construct the USB packets to set all LED strips to the given colors. To simplify things, we always send values for all 8 * 64 LEDs. If the physical strips are shorter, or there are less then 8 strips, the extra data doesn't do anything. If the user gives us values for less than the total number of strips, or less than the total number of LEDs in any given strip, all unspecified LEDs are left dark.