Skip to content

Commit

Permalink
Merge pull request #4 from ilianaw/kaleidoscope-plugin-namespace
Browse files Browse the repository at this point in the history
Move into the new `kaleidoscope::plugin` namespace
  • Loading branch information
tremby authored Feb 14, 2019
2 parents c7f3209 + 55abbeb commit 24db529
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Kaleidoscope-LEDEffect-DigitalRain.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "Kaleidoscope-LEDEffect-DigitalRain.h"
#include <stdlib.h>

namespace kaleidoscope {
namespace kaleidoscope { namespace plugin {
uint8_t LEDDigitalRainEffect::DROP_TICKS = 28;
uint8_t LEDDigitalRainEffect::NEW_DROP_PROBABILITY = 18;
uint8_t LEDDigitalRainEffect::PURE_GREEN_INTENSITY = 0xd0;
Expand Down Expand Up @@ -78,6 +78,6 @@ namespace kaleidoscope {
default: return CRGB(0, 0, 0);
}
}
}
}}

kaleidoscope::LEDDigitalRainEffect LEDDigitalRainEffect;
kaleidoscope::plugin::LEDDigitalRainEffect LEDDigitalRainEffect;
6 changes: 3 additions & 3 deletions src/Kaleidoscope-LEDEffect-DigitalRain.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "Kaleidoscope-LEDControl.h"

namespace kaleidoscope {
namespace kaleidoscope { namespace plugin {
class LEDDigitalRainEffect : public LEDMode {
public:
LEDDigitalRainEffect(void) {}
Expand Down Expand Up @@ -80,6 +80,6 @@ namespace kaleidoscope {
*/
cRGB getColorFromComponents(uint8_t primary, uint8_t secondary);
};
}
}}

extern kaleidoscope::LEDDigitalRainEffect LEDDigitalRainEffect;
extern kaleidoscope::plugin::LEDDigitalRainEffect LEDDigitalRainEffect;

0 comments on commit 24db529

Please sign in to comment.