libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
daisy::DotStar< Transport >::Config Struct Reference

#include <dotstar.h>

Public Types

enum  ColorOrder : uint8_t {
  RGB = ((0 << 4) | (1 << 2) | (2)) , RBG = ((0 << 4) | (2 << 2) | (1)) , GRB = ((1 << 4) | (0 << 2) | (2)) , GBR = ((2 << 4) | (0 << 2) | (1)) ,
  BRG = ((1 << 4) | (2 << 2) | (0)) , BGR = ((2 << 4) | (1 << 2) | (0))
}
 

Public Member Functions

void Defaults ()
 

Public Attributes

Transport::Config transport_config
 
ColorOrder color_order
 
uint16_t num_pixels
 

Member Enumeration Documentation

◆ ColorOrder

Enumerator
RGB 
RBG 
GRB 
GBR 
BRG 
BGR 

Member Function Documentation

◆ Defaults()

template<typename Transport >
void daisy::DotStar< Transport >::Config::Defaults ( )
inline

Member Data Documentation

◆ color_order

template<typename Transport >
ColorOrder daisy::DotStar< Transport >::Config::color_order

Pixel color channel ordering

◆ num_pixels

template<typename Transport >
uint16_t daisy::DotStar< Transport >::Config::num_pixels

Number of pixels/LEDs (max 64)

◆ transport_config

template<typename Transport >
Transport::Config daisy::DotStar< Transport >::Config::transport_config

Transport-specific configuration


The documentation for this struct was generated from the following file: