make astyle

pull/389/head
Jesse Vincent 8 years ago
parent 41970ac689
commit 1f8fc546e5
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -20,24 +20,26 @@
#include <Kaleidoscope-Ranges.h> #include <Kaleidoscope-Ranges.h>
namespace KaleidoscopePlugins { namespace KaleidoscopePlugins {
namespace LEDEffects { namespace LEDEffects {
cRGB ActiveModColorEffect::highlightColor = (cRGB) {0xff, 0xff, 0xff}; cRGB ActiveModColorEffect::highlightColor = (cRGB) {
0xff, 0xff, 0xff
};
ActiveModColorEffect::ActiveModColorEffect (void) { ActiveModColorEffect::ActiveModColorEffect (void) {
} }
void void
ActiveModColorEffect::begin (void) { ActiveModColorEffect::begin (void) {
loop_hook_use (loopHook); loop_hook_use (loopHook);
} }
void void
ActiveModColorEffect::configure (const cRGB highlightColor_) { ActiveModColorEffect::configure (const cRGB highlightColor_) {
highlightColor = highlightColor_; highlightColor = highlightColor_;
} }
void void
ActiveModColorEffect::loopHook (bool postClear) { ActiveModColorEffect::loopHook (bool postClear) {
if (postClear) if (postClear)
return; return;
@ -58,9 +60,9 @@ namespace KaleidoscopePlugins {
LEDControl.led_set_crgb_at (r, c, highlightColor); LEDControl.led_set_crgb_at (r, c, highlightColor);
} }
} }
} }
}; };
}; };
KaleidoscopePlugins::LEDEffects::ActiveModColorEffect ActiveModColorEffect; KaleidoscopePlugins::LEDEffects::ActiveModColorEffect ActiveModColorEffect;

@ -20,8 +20,8 @@
#include <Kaleidoscope-LEDControl.h> #include <Kaleidoscope-LEDControl.h>
namespace KaleidoscopePlugins { namespace KaleidoscopePlugins {
namespace LEDEffects { namespace LEDEffects {
class ActiveModColorEffect : public KaleidoscopePlugin { class ActiveModColorEffect : public KaleidoscopePlugin {
public: public:
ActiveModColorEffect (void); ActiveModColorEffect (void);
@ -31,8 +31,8 @@ namespace KaleidoscopePlugins {
private: private:
static cRGB highlightColor; static cRGB highlightColor;
static void loopHook (bool postClear); static void loopHook (bool postClear);
}; };
}; };
}; };
extern KaleidoscopePlugins::LEDEffects::ActiveModColorEffect ActiveModColorEffect; extern KaleidoscopePlugins::LEDEffects::ActiveModColorEffect ActiveModColorEffect;

Loading…
Cancel
Save