make astyle

pull/389/head
Jesse Vincent 8 years ago
parent 07e19a5432
commit e1fd94e4ff
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -18,10 +18,22 @@
#include <Kaleidoscope-LEDEffects.h> #include <Kaleidoscope-LEDEffects.h>
KaleidoscopePlugins::LEDEffects::TriColor JukeboxEffect((cRGB){0xc8, 0xe8, 0xee} /* TM */, KaleidoscopePlugins::LEDEffects::TriColor JukeboxEffect((cRGB) {
(cRGB){0xc3, 0xee, 0x8c} /* VCO */, 0xc8, 0xe8, 0xee
(cRGB){0x21, 0x38, 0xd7} /* RN */); } /* TM */,
(cRGB) {
0xc3, 0xee, 0x8c
} /* VCO */,
(cRGB) {
0x21, 0x38, 0xd7
} /* RN */);
KaleidoscopePlugins::LEDEffects::TriColor JukeboxAlternateEffect((cRGB){0xc8, 0xe8, 0xee} /* TM */, KaleidoscopePlugins::LEDEffects::TriColor JukeboxAlternateEffect((cRGB) {
(cRGB){0x21, 0x38, 0xd7} /* RN */, 0xc8, 0xe8, 0xee
(cRGB){0xc3, 0xee, 0x8c} /* VCO */); } /* TM */,
(cRGB) {
0x21, 0x38, 0xd7
} /* RN */,
(cRGB) {
0xc3, 0xee, 0x8c
} /* VCO */);

@ -18,5 +18,9 @@
#include <Kaleidoscope-LEDEffects.h> #include <Kaleidoscope-LEDEffects.h>
KaleidoscopePlugins::LEDEffects::TriColor MiamiEffect((cRGB){0xd6, 0xd6, 0x4e} /* Cyan */, KaleidoscopePlugins::LEDEffects::TriColor MiamiEffect((cRGB) {
(cRGB){0xaf, 0x67, 0xfa} /* Magenta */); 0xd6, 0xd6, 0x4e
} /* Cyan */,
(cRGB) {
0xaf, 0x67, 0xfa
} /* Magenta */);

@ -19,16 +19,16 @@
#include <Kaleidoscope-LEDEffects.h> #include <Kaleidoscope-LEDEffects.h>
namespace KaleidoscopePlugins { namespace KaleidoscopePlugins {
namespace LEDEffects { namespace LEDEffects {
TriColor::TriColor (cRGB baseColor, cRGB modColor, cRGB escColor) { TriColor::TriColor (cRGB baseColor, cRGB modColor, cRGB escColor) {
this->baseColor = baseColor; this->baseColor = baseColor;
this->modColor = modColor; this->modColor = modColor;
this->escColor = escColor; this->escColor = escColor;
} }
void void
TriColor::update (void) { TriColor::update (void) {
for (uint8_t r = 0; r < ROWS; r++) { for (uint8_t r = 0; r < ROWS; r++) {
for (uint8_t c = 0; c < COLS; c++) { for (uint8_t c = 0; c < COLS; c++) {
Key k = Layer.lookup (r, c); Key k = Layer.lookup (r, c);
@ -58,6 +58,6 @@ namespace KaleidoscopePlugins {
LEDControl.led_set_crgb_at (r, c, color); LEDControl.led_set_crgb_at (r, c, color);
} }
} }
} }
}; };
}; };

@ -22,8 +22,8 @@
#include <Kaleidoscope-LEDControl.h> #include <Kaleidoscope-LEDControl.h>
namespace KaleidoscopePlugins { namespace KaleidoscopePlugins {
namespace LEDEffects { namespace LEDEffects {
class TriColor : public LEDMode { class TriColor : public LEDMode {
public: public:
TriColor (cRGB baseColor, cRGB modColor, cRGB escColor); TriColor (cRGB baseColor, cRGB modColor, cRGB escColor);
TriColor (cRGB baseColor, cRGB modColor) : TriColor (baseColor, modColor, modColor) {}; TriColor (cRGB baseColor, cRGB modColor) : TriColor (baseColor, modColor, modColor) {};
@ -34,6 +34,6 @@ namespace KaleidoscopePlugins {
cRGB baseColor; cRGB baseColor;
cRGB modColor; cRGB modColor;
cRGB escColor; cRGB escColor;
}; };
}; };
}; };

Loading…
Cancel
Save