Classes | Namespaces | Functions
util.h File Reference
#include <vector>
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fadecandy_driver::Color
 The color struct contains the r, g and b colors. More...
 

Namespaces

 fadecandy_driver
 

Functions

std::vector< int > fadecandy_driver::makeDefaultLookupTable ()
 makeLookupTablePackets Return lookup tables as 3 lists of lookup values - one for the red channel, one for the green channel, and one for the blue channel. More...
 
std::vector< std::vector< unsigned char > > fadecandy_driver::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 table comes first, then the entire green channel, then the entire red channel. More...
 
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. More...
 


fadecandy_driver
Author(s):
autogenerated on Mon Feb 28 2022 22:18:46