Merge pull request #28 from rschaten/master
enable main_color to be initialized in definitions.h
This commit is contained in:
commit
5f7733ebd3
2 changed files with 4 additions and 3 deletions
|
@ -121,6 +121,7 @@ void setup() {
|
|||
strip.setBrightness(brightness);
|
||||
strip.setSpeed(ws2812fx_speed);
|
||||
//strip.setMode(FX_MODE_RAINBOW_CYCLE);
|
||||
strip.setColor(main_color.red, main_color.green, main_color.blue);
|
||||
strip.start();
|
||||
|
||||
// ***************************************************************************
|
||||
|
|
|
@ -34,4 +34,4 @@ struct ledstate // Data structure to store a state of a single led
|
|||
|
||||
typedef struct ledstate LEDState; // Define the datatype LEDState
|
||||
LEDState ledstates[NUMLEDS]; // Get an array of led states to store the state of the whole strip
|
||||
LEDState main_color; // Store the "main color" of the strip used in single color modes
|
||||
LEDState main_color = { 255, 0, 0 }; // Store the "main color" of the strip used in single color modes
|
||||
|
|
Loading…
Reference in a new issue