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>
namespace KaleidoscopePlugins {
namespace LEDEffects {
cRGB ActiveModColorEffect::highlightColor = (cRGB) {0xff, 0xff, 0xff};
namespace LEDEffects {
cRGB ActiveModColorEffect::highlightColor = (cRGB) {
0xff, 0xff, 0xff
};
ActiveModColorEffect::ActiveModColorEffect (void) {
}
ActiveModColorEffect::ActiveModColorEffect (void) {
}
void
ActiveModColorEffect::begin (void) {
void
ActiveModColorEffect::begin (void) {
loop_hook_use (loopHook);
}
}
void
ActiveModColorEffect::configure (const cRGB highlightColor_) {
void
ActiveModColorEffect::configure (const cRGB highlightColor_) {
highlightColor = highlightColor_;
}
}
void
ActiveModColorEffect::loopHook (bool postClear) {
void
ActiveModColorEffect::loopHook (bool postClear) {
if (postClear)
return;
@ -58,9 +60,9 @@ namespace KaleidoscopePlugins {
LEDControl.led_set_crgb_at (r, c, highlightColor);
}
}
}
}
};
};
};
KaleidoscopePlugins::LEDEffects::ActiveModColorEffect ActiveModColorEffect;

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

Loading…
Cancel
Save