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>
KaleidoscopePlugins::LEDEffects::TriColor JukeboxEffect((cRGB){0xc8, 0xe8, 0xee} /* TM */,
(cRGB){0xc3, 0xee, 0x8c} /* VCO */,
(cRGB){0x21, 0x38, 0xd7} /* RN */);
KaleidoscopePlugins::LEDEffects::TriColor JukeboxEffect((cRGB) {
0xc8, 0xe8, 0xee
} /* TM */,
(cRGB) {
0xc3, 0xee, 0x8c
} /* VCO */,
(cRGB) {
0x21, 0x38, 0xd7
} /* RN */);
KaleidoscopePlugins::LEDEffects::TriColor JukeboxAlternateEffect((cRGB){0xc8, 0xe8, 0xee} /* TM */,
(cRGB){0x21, 0x38, 0xd7} /* RN */,
(cRGB){0xc3, 0xee, 0x8c} /* VCO */);
KaleidoscopePlugins::LEDEffects::TriColor JukeboxAlternateEffect((cRGB) {
0xc8, 0xe8, 0xee
} /* TM */,
(cRGB) {
0x21, 0x38, 0xd7
} /* RN */,
(cRGB) {
0xc3, 0xee, 0x8c
} /* VCO */);

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

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

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

Loading…
Cancel
Save