astyle with current project style guidelines

pull/365/head
Jesse Vincent 8 years ago
parent 69a8a8830f
commit b32d2737b8
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -1,10 +1,10 @@
#include "Kaleidoscope-LEDEffect-Rainbow.h"
LEDRainbowEffect_::LEDRainbowEffect_ (void) {
LEDRainbowEffect_::LEDRainbowEffect_(void) {
}
void
LEDRainbowEffect_::update (void) {
LEDRainbowEffect_::update(void) {
if (rainbow_current_ticks++ < rainbow_ticks) {
return;
} else {
@ -24,11 +24,11 @@ LEDRainbowEffect_ LEDRainbowEffect;
// ---------
LEDRainbowWaveEffect_::LEDRainbowWaveEffect_ (void) {
LEDRainbowWaveEffect_::LEDRainbowWaveEffect_(void) {
}
void
LEDRainbowWaveEffect_::update (void) {
LEDRainbowWaveEffect_::update(void) {
if (rainbow_current_ticks++ < rainbow_wave_ticks) {
return;
} else {
@ -41,7 +41,7 @@ LEDRainbowWaveEffect_::update (void) {
key_hue -= 255;
}
cRGB rainbow = hsv_to_rgb(key_hue, rainbow_saturation, rainbow_value);
LEDControl.led_set_crgb_at (i, rainbow);
LEDControl.led_set_crgb_at(i, rainbow);
}
rainbow_hue += rainbow_wave_steps;
if (rainbow_hue >= 255) {

@ -5,9 +5,9 @@
class LEDRainbowEffect_ : public LEDMode {
public:
LEDRainbowEffect_ (void);
LEDRainbowEffect_(void);
virtual void update (void) final;
virtual void update(void) final;
private:
uint16_t rainbow_hue = 0; //stores 0 to 614
@ -25,9 +25,9 @@ extern LEDRainbowEffect_ LEDRainbowEffect;
class LEDRainbowWaveEffect_ : public LEDMode {
public:
LEDRainbowWaveEffect_ (void);
LEDRainbowWaveEffect_(void);
virtual void update (void) final;
virtual void update(void) final;
private:
uint16_t rainbow_hue = 0; //stores 0 to 614

Loading…
Cancel
Save