Function fadecandy_driver::makeVideoUsbPackets
Defined in File util.h
Function Documentation
-
std::vector<std::vector<unsigned char>> fadecandy_driver::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.