From ede5fdba6c96e70fefc5243a0edb49601a2bd9aa Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 26 May 2017 16:38:02 -0700 Subject: [PATCH] astyle with astyle 3.0, which matters for this code --- src/Kaleidoscope/AlphaSquare-Effect.h | 4 +- src/Kaleidoscope/LED-AlphaSquare.cpp | 216 +++++++++++++------------- src/Kaleidoscope/LED-AlphaSquare.h | 2 +- 3 files changed, 111 insertions(+), 111 deletions(-) diff --git a/src/Kaleidoscope/AlphaSquare-Effect.h b/src/Kaleidoscope/AlphaSquare-Effect.h index 7ffbec73..3d4f79a7 100644 --- a/src/Kaleidoscope/AlphaSquare-Effect.h +++ b/src/Kaleidoscope/AlphaSquare-Effect.h @@ -24,14 +24,14 @@ namespace KaleidoscopePlugins { namespace LEDEffects { class AlphaSquareEffect : public LEDMode { - public: +public: AlphaSquareEffect (void); virtual void begin (void) final; virtual void update (void) final; static uint16_t length; - private: +private: static uint32_t endTimeLeft, endTimeRight; static Key lastKeyLeft, lastKeyRight; static uint8_t us; diff --git a/src/Kaleidoscope/LED-AlphaSquare.cpp b/src/Kaleidoscope/LED-AlphaSquare.cpp index 2a2c02ba..6b64d10b 100644 --- a/src/Kaleidoscope/LED-AlphaSquare.cpp +++ b/src/Kaleidoscope/LED-AlphaSquare.cpp @@ -22,150 +22,150 @@ namespace KaleidoscopePlugins { static const uint16_t alphabet[] PROGMEM = { SYM4x4(1, 1, 1, 1, - 1, 0, 0, 1, - 1, 1, 1, 1, - 1, 0, 0, 1), // A + 1, 0, 0, 1, + 1, 1, 1, 1, + 1, 0, 0, 1), // A SYM4x4(1, 1, 1, 1, - 1, 0, 1, 1, - 1, 1, 0, 1, - 1, 1, 1, 1), // B + 1, 0, 1, 1, + 1, 1, 0, 1, + 1, 1, 1, 1), // B SYM4x4(1, 1, 1, 1, - 1, 0, 0, 0, - 1, 0, 0, 0, - 1, 1, 1, 1), // C + 1, 0, 0, 0, + 1, 0, 0, 0, + 1, 1, 1, 1), // C SYM4x4(1, 1, 1, 0, - 1, 0, 0, 1, - 1, 0, 0, 1, - 1, 1, 1, 0), // D + 1, 0, 0, 1, + 1, 0, 0, 1, + 1, 1, 1, 0), // D SYM4x4(1, 1, 1, 1, - 1, 1, 0, 0, - 1, 0, 0, 0, - 1, 1, 1, 1), // E + 1, 1, 0, 0, + 1, 0, 0, 0, + 1, 1, 1, 1), // E SYM4x4(1, 1, 1, 1, - 1, 0, 0, 0, - 1, 1, 1, 0, - 1, 0, 0, 0), // F + 1, 0, 0, 0, + 1, 1, 1, 0, + 1, 0, 0, 0), // F SYM4x4(1, 1, 1, 0, - 1, 0, 0, 0, - 1, 0, 0, 1, - 1, 1, 1, 1), // G + 1, 0, 0, 0, + 1, 0, 0, 1, + 1, 1, 1, 1), // G SYM4x4(1, 0, 0, 1, - 1, 1, 1, 1, - 1, 0, 0, 1, - 1, 0, 0, 1), // H + 1, 1, 1, 1, + 1, 0, 0, 1, + 1, 0, 0, 1), // H SYM4x4(1, 1, 1, 1, - 0, 1, 1, 0, - 0, 1, 1, 0, - 1, 1, 1, 1), // I + 0, 1, 1, 0, + 0, 1, 1, 0, + 1, 1, 1, 1), // I SYM4x4(1, 1, 1, 1, - 0, 0, 0, 1, - 1, 0, 0, 1, - 0, 1, 1, 0), // J + 0, 0, 0, 1, + 1, 0, 0, 1, + 0, 1, 1, 0), // J SYM4x4(1, 0, 0, 1, - 1, 1, 0, 0, - 1, 1, 0, 0, - 1, 0, 1, 1), // K + 1, 1, 0, 0, + 1, 1, 0, 0, + 1, 0, 1, 1), // K SYM4x4(1, 0, 0, 0, - 1, 0, 0, 0, - 1, 0, 0, 0, - 1, 1, 1, 1), // L + 1, 0, 0, 0, + 1, 0, 0, 0, + 1, 1, 1, 1), // L SYM4x4(1, 0, 1, 1, - 1, 1, 1, 1, - 1, 1, 0, 1, - 1, 0, 0, 1), // M + 1, 1, 1, 1, + 1, 1, 0, 1, + 1, 0, 0, 1), // M SYM4x4(1, 0, 0, 1, - 1, 1, 0, 1, - 1, 0, 1, 1, - 1, 0, 0, 1), // N + 1, 1, 0, 1, + 1, 0, 1, 1, + 1, 0, 0, 1), // N SYM4x4(1, 1, 1, 1, - 1, 0, 0, 1, - 1, 0, 0, 1, - 1, 1, 1, 1), // O + 1, 0, 0, 1, + 1, 0, 0, 1, + 1, 1, 1, 1), // O SYM4x4(1, 1, 1, 1, - 1, 0, 0, 1, - 1, 1, 1, 1, - 1, 0, 0, 0), // P + 1, 0, 0, 1, + 1, 1, 1, 1, + 1, 0, 0, 0), // P SYM4x4(1, 1, 1, 1, - 1, 0, 0, 1, - 1, 0, 1, 1, - 1, 1, 1, 1), // Q + 1, 0, 0, 1, + 1, 0, 1, 1, + 1, 1, 1, 1), // Q SYM4x4(1, 1, 1, 1, - 1, 0, 0, 1, - 1, 1, 1, 0, - 1, 0, 1, 1), // R + 1, 0, 0, 1, + 1, 1, 1, 0, + 1, 0, 1, 1), // R SYM4x4(1, 1, 1, 1, - 1, 1, 0, 0, - 0, 0, 1, 1, - 1, 1, 1, 1), // S + 1, 1, 0, 0, + 0, 0, 1, 1, + 1, 1, 1, 1), // S SYM4x4(1, 1, 1, 1, - 0, 1, 1, 0, - 0, 1, 1, 0, - 0, 1, 1, 0), // T + 0, 1, 1, 0, + 0, 1, 1, 0, + 0, 1, 1, 0), // T SYM4x4(1, 0, 0, 1, - 1, 0, 0, 1, - 1, 0, 0, 1, - 1, 1, 1, 1), // U + 1, 0, 0, 1, + 1, 0, 0, 1, + 1, 1, 1, 1), // U SYM4x4(1, 0, 0, 1, - 1, 0, 0, 1, - 1, 0, 0, 1, - 0, 1, 1, 0), // V + 1, 0, 0, 1, + 1, 0, 0, 1, + 0, 1, 1, 0), // V SYM4x4(1, 0, 0, 1, - 1, 0, 1, 1, - 1, 1, 1, 1, - 1, 0, 1, 1), // W + 1, 0, 1, 1, + 1, 1, 1, 1, + 1, 0, 1, 1), // W SYM4x4(1, 0, 0, 1, - 0, 1, 1, 0, - 0, 1, 1, 0, - 1, 0, 0, 1), // X + 0, 1, 1, 0, + 0, 1, 1, 0, + 1, 0, 0, 1), // X SYM4x4(1, 0, 0, 1, - 1, 1, 1, 1, - 0, 1, 1, 0, - 0, 1, 1, 0), // Y + 1, 1, 1, 1, + 0, 1, 1, 0, + 0, 1, 1, 0), // Y SYM4x4(1, 1, 1, 1, - 0, 0, 1, 1, - 1, 1, 0, 0, - 1, 1, 1, 1), // Z + 0, 0, 1, 1, + 1, 1, 0, 0, + 1, 1, 1, 1), // Z // --------------------- SYM4x4(0, 1, 1, 0, - 1, 0, 1, 0, - 0, 0, 1, 0, - 1, 1, 1, 1), // 1 + 1, 0, 1, 0, + 0, 0, 1, 0, + 1, 1, 1, 1), // 1 SYM4x4(0, 1, 1, 0, - 1, 0, 0, 1, - 0, 0, 1, 0, - 1, 1, 0, 1), // 2 + 1, 0, 0, 1, + 0, 0, 1, 0, + 1, 1, 0, 1), // 2 SYM4x4(1, 1, 1, 1, - 0, 0, 1, 1, - 0, 0, 0, 1, - 1, 1, 1, 1), // 3 + 0, 0, 1, 1, + 0, 0, 0, 1, + 1, 1, 1, 1), // 3 SYM4x4(1, 0, 0, 1, - 1, 1, 1, 1, - 0, 0, 0, 1, - 0, 0, 0, 1), // 4 + 1, 1, 1, 1, + 0, 0, 0, 1, + 0, 0, 0, 1), // 4 SYM4x4(1, 1, 1, 1, - 1, 0, 0, 0, - 0, 1, 1, 1, - 1, 1, 1, 1), // 5 + 1, 0, 0, 0, + 0, 1, 1, 1, + 1, 1, 1, 1), // 5 SYM4x4(0, 1, 1, 0, - 1, 0, 0, 0, - 1, 1, 1, 1, - 1, 1, 1, 1), // 6 + 1, 0, 0, 0, + 1, 1, 1, 1, + 1, 1, 1, 1), // 6 SYM4x4(1, 1, 1, 1, - 0, 0, 0, 1, - 0, 0, 1, 0, - 0, 1, 0, 0), // 7 + 0, 0, 0, 1, + 0, 0, 1, 0, + 0, 1, 0, 0), // 7 SYM4x4(1, 1, 1, 0, - 1, 0, 1, 1, - 1, 1, 0, 1, - 0, 1, 1, 1), // 8 + 1, 0, 1, 1, + 1, 1, 0, 1, + 0, 1, 1, 1), // 8 SYM4x4(1, 1, 1, 1, - 1, 0, 0, 1, - 1, 1, 1, 1, - 0, 0, 0, 1), // 9 + 1, 0, 0, 1, + 1, 1, 1, 1, + 0, 0, 0, 1), // 9 SYM4x4(0, 1, 1, 0, - 1, 0, 0, 1, - 1, 0, 0, 1, - 0, 1, 1, 0), // 0 + 1, 0, 0, 1, + 1, 0, 0, 1, + 0, 1, 1, 0), // 0 }; cRGB AlphaSquare::color = {0x80, 0x80, 0x80}; diff --git a/src/Kaleidoscope/LED-AlphaSquare.h b/src/Kaleidoscope/LED-AlphaSquare.h index 71588c78..a980f979 100644 --- a/src/Kaleidoscope/LED-AlphaSquare.h +++ b/src/Kaleidoscope/LED-AlphaSquare.h @@ -36,7 +36,7 @@ namespace KaleidoscopePlugins { class AlphaSquare : public KaleidoscopePlugin { - public: +public: AlphaSquare (void); virtual void begin (void) final;