From 8158473464935ff51a364450898ba78b6206c073 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Thu, 22 Jul 2021 00:53:18 -0700 Subject: [PATCH] [Keyboard] Fix clawsome/hatchback and reviung5 compile issues (#13607) --- .../hatchback/{hatcback.h => hatchback.h} | 2 ++ keyboards/reviung5/config.h | 33 ++++++++++--------- 2 files changed, 20 insertions(+), 15 deletions(-) rename keyboards/clawsome/hatchback/{hatcback.h => hatchback.h} (98%) diff --git a/keyboards/clawsome/hatchback/hatcback.h b/keyboards/clawsome/hatchback/hatchback.h similarity index 98% rename from keyboards/clawsome/hatchback/hatcback.h rename to keyboards/clawsome/hatchback/hatchback.h index b30eda09f4..b55f6adc28 100644 --- a/keyboards/clawsome/hatchback/hatcback.h +++ b/keyboards/clawsome/hatchback/hatchback.h @@ -18,6 +18,7 @@ #include "quantum.h" +// clang-format off #define LAYOUT( \ K00, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07, K18, K09, \ K20, K30, K21, K31, K22, K32, K23, K33, K24, K34, K25, K35, K26, K36, K27, K38, K29, \ @@ -39,3 +40,4 @@ { KA0, KA1, KA2, KA3, KA4, KA5, KA6, KA7, KC_NO, KA9 }, \ { KB0, KC_NO, KC_NO, KC_NO, KC_NO, KB5, KB6, KC_NO, KB8, KC_NO }, \ } +// clang-format on diff --git a/keyboards/reviung5/config.h b/keyboards/reviung5/config.h index 493cc6af99..b06c5797fd 100644 --- a/keyboards/reviung5/config.h +++ b/keyboards/reviung5/config.h @@ -27,8 +27,8 @@ along with this program. If not, see . #define PRODUCT reviung5 /* key matrix size */ -#define MATRIX_ROWS 1 -#define MATRIX_COLS 5 +#define MATRIX_ROWS 1 +#define MATRIX_COLS 5 /* * Keyboard Matrix Assignments @@ -40,28 +40,31 @@ along with this program. If not, see . * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) * */ -#define MATRIX_ROW_PINS { F4 } -#define MATRIX_COL_PINS { D4, C6, D7, E6, B4 } +#define MATRIX_ROW_PINS \ + { F4 } +#define MATRIX_COL_PINS \ + { D4, C6, D7, E6, B4 } #define UNUSED_PINS /* COL2ROW, ROW2COL */ #define DIODE_DIRECTION COL2ROW /* Encoder */ -#define ENCODERS_PAD_A { D0 } -#define ENCODERS_PAD_B { D1 } - +#define ENCODERS_PAD_A \ + { D0 } +#define ENCODERS_PAD_B \ + { D1 } #define RGB_DI_PIN D3 #ifdef RGB_DI_PIN -# define RGBLED_NUM 4 -# define RGBLIGHT_HUE_STEP 16 -# define RGBLIGHT_SAT_STEP 16 -# define RGBLIGHT_VAL_STEP 16 -# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ -# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ - /*== all animations enable ==*/ -# define RGBLIGHT_ANIMATIONS +# define RGBLED_NUM 4 +# define RGBLIGHT_HUE_STEP 16 +# define RGBLIGHT_SAT_STEP 16 +# define RGBLIGHT_VAL_STEP 16 +# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ +# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ +/*== all animations enable ==*/ +# define RGBLIGHT_ANIMATIONS /*== or choose animations ==*/ //# define RGBLIGHT_EFFECT_BREATHING //# define RGBLIGHT_EFFECT_RAINBOW_MOOD