diff options
Diffstat (limited to 'keyboards/work_louder/nano/config.h')
| -rw-r--r-- | keyboards/work_louder/nano/config.h | 78 |
1 files changed, 42 insertions, 36 deletions
diff --git a/keyboards/work_louder/nano/config.h b/keyboards/work_louder/nano/config.h index 4c897b7e5..1a47e725b 100644 --- a/keyboards/work_louder/nano/config.h +++ b/keyboards/work_louder/nano/config.h | |||
| @@ -24,15 +24,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 24 | #define PRODUCT_ID 0xE6EF | 24 | #define PRODUCT_ID 0xE6EF |
| 25 | #define DEVICE_VER 0x0001 | 25 | #define DEVICE_VER 0x0001 |
| 26 | #define MANUFACTURER Work Louder | 26 | #define MANUFACTURER Work Louder |
| 27 | #define PRODUCT nano | 27 | #define PRODUCT Nano Pad |
| 28 | 28 | ||
| 29 | /* key matrix size */ | 29 | /* key matrix size */ |
| 30 | #define MATRIX_ROWS 1 | 30 | #define MATRIX_ROWS 1 |
| 31 | #ifdef VIA_ENABLE | 31 | #define MATRIX_COLS 5 |
| 32 | # define MATRIX_COLS 5 | ||
| 33 | #else | ||
| 34 | # define MATRIX_COLS 3 | ||
| 35 | #endif | ||
| 36 | 32 | ||
| 37 | /* | 33 | /* |
| 38 | * Keyboard Matrix Assignments | 34 | * Keyboard Matrix Assignments |
| @@ -44,13 +40,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 44 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) |
| 45 | * | 41 | * |
| 46 | */ | 42 | */ |
| 47 | #define MATRIX_ROW_PINS { F7 } | 43 | #define MATRIX_ROW_PINS \ |
| 48 | #define MATRIX_COL_PINS { B5, B6, C6 } | 44 | { F7 } |
| 49 | #define UNUSED_PINS | 45 | #define MATRIX_COL_PINS \ |
| 46 | { B5, B6, C6, NO_PIN, NO_PIN } | ||
| 50 | 47 | ||
| 51 | /* COL2ROW, ROW2COL */ | 48 | /* COL2ROW, ROW2COL */ |
| 52 | #define DIODE_DIRECTION COL2ROW | 49 | #define DIODE_DIRECTION COL2ROW |
| 53 | |||
| 54 | 50 | ||
| 55 | //#define LED_NUM_LOCK_PIN B0 | 51 | //#define LED_NUM_LOCK_PIN B0 |
| 56 | //#define LED_CAPS_LOCK_PIN B1 | 52 | //#define LED_CAPS_LOCK_PIN B1 |
| @@ -62,25 +58,26 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 62 | //#define BACKLIGHT_LEVELS 3 | 58 | //#define BACKLIGHT_LEVELS 3 |
| 63 | //#define BACKLIGHT_BREATHING | 59 | //#define BACKLIGHT_BREATHING |
| 64 | 60 | ||
| 65 | #define RGBLIGHT_DI_PIN C7 | 61 | #define RGBLIGHT_DI_PIN C7 |
| 66 | # define RGBLED_NUM 6 | 62 | #define RGBLED_NUM 6 |
| 67 | //# define RGBLIGHT_HUE_STEP 8 | 63 | //# define RGBLIGHT_HUE_STEP 8 |
| 68 | //# define RGBLIGHT_SAT_STEP 8 | 64 | //# define RGBLIGHT_SAT_STEP 8 |
| 69 | //# define RGBLIGHT_VAL_STEP 8 | 65 | //# define RGBLIGHT_VAL_STEP 8 |
| 70 | //# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | 66 | #define RGBLIGHT_LIMIT_VAL 120 /* The maximum brightness level */ |
| 71 | # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | 67 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ |
| 72 | /*== all animations enable ==*/ | ||
| 73 | # define RGBLIGHT_ANIMATIONS | ||
| 74 | /*== or choose animations ==*/ | 68 | /*== or choose animations ==*/ |
| 75 | //# define RGBLIGHT_EFFECT_BREATHING | 69 | #define RGBLIGHT_EFFECT_BREATHING |
| 76 | //# define RGBLIGHT_EFFECT_RAINBOW_MOOD | 70 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD |
| 77 | //# define RGBLIGHT_EFFECT_RAINBOW_SWIRL | 71 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL |
| 78 | //# define RGBLIGHT_EFFECT_SNAKE | 72 | #define RGBLIGHT_EFFECT_SNAKE |
| 79 | //# define RGBLIGHT_EFFECT_KNIGHT | 73 | #define RGBLIGHT_EFFECT_KNIGHT |
| 80 | //# define RGBLIGHT_EFFECT_CHRISTMAS | 74 | #define RGBLIGHT_EFFECT_CHRISTMAS |
| 81 | //# define RGBLIGHT_EFFECT_STATIC_GRADIENT | 75 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT |
| 82 | //# define RGBLIGHT_EFFECT_RGB_TEST | 76 | #define RGBLIGHT_EFFECT_RGB_TEST |
| 83 | //# define RGBLIGHT_EFFECT_ALTERNATING | 77 | #define RGBLIGHT_EFFECT_TWINKLE |
| 78 | #define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_STATIC_LIGHT | ||
| 79 | #define RGBLIGHT_DEFAULT_HUE 170 | ||
| 80 | |||
| 84 | /*== customize breathing effect ==*/ | 81 | /*== customize breathing effect ==*/ |
| 85 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | 82 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ |
| 86 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | 83 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 |
| @@ -89,9 +86,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 89 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | 86 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 |
| 90 | //#endif | 87 | //#endif |
| 91 | 88 | ||
| 92 | #define RGB_DI_PIN F6 | 89 | #define RGB_DI_PIN F6 |
| 93 | #define DRIVER_LED_TOTAL 2 | 90 | #define DRIVER_LED_TOTAL 2 |
| 91 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 120 | ||
| 94 | #define RGB_MATRIX_DISABLE_KEYCODES | 92 | #define RGB_MATRIX_DISABLE_KEYCODES |
| 93 | #define RGB_DISABLE_WHEN_USB_SUSPENDED | ||
| 95 | 94 | ||
| 96 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | 95 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ |
| 97 | #define DEBOUNCE 5 | 96 | #define DEBOUNCE 5 |
| @@ -151,14 +150,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 151 | #define NO_ACTION_FUNCTION | 150 | #define NO_ACTION_FUNCTION |
| 152 | 151 | ||
| 153 | /* Bootmagic Lite key configuration */ | 152 | /* Bootmagic Lite key configuration */ |
| 154 | #define BOOTMAGIC_LITE_ROW 0 | 153 | #define BOOTMAGIC_LITE_ROW 0 |
| 155 | #define BOOTMAGIC_LITE_COLUMN 3 | 154 | #define BOOTMAGIC_LITE_COLUMN 2 |
| 156 | |||
| 157 | 155 | ||
| 158 | #define ENCODERS_PAD_A { D7 } | 156 | #define ENCODERS_PAD_A \ |
| 159 | #define ENCODERS_PAD_B { B4 } | 157 | { D7 } |
| 158 | #define ENCODERS_PAD_B \ | ||
| 159 | { B4 } | ||
| 160 | 160 | ||
| 161 | #define ENCODERS 1 | 161 | #define ENCODERS 1 |
| 162 | 162 | ||
| 163 | #define ENCODERS_CW_KEY { { 3, 0 } } | 163 | #define ENCODERS_CW_KEY \ |
| 164 | #define ENCODERS_CCW_KEY { { 4, 0 } } | 164 | { \ |
| 165 | { 3, 0 } \ | ||
| 166 | } | ||
| 167 | #define ENCODERS_CCW_KEY \ | ||
| 168 | { \ | ||
| 169 | { 4, 0 } \ | ||
| 170 | } | ||
