diff options
Diffstat (limited to 'keyboards/nckiibs/vanana/rev2/config.h')
| -rw-r--r-- | keyboards/nckiibs/vanana/rev2/config.h | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/keyboards/nckiibs/vanana/rev2/config.h b/keyboards/nckiibs/vanana/rev2/config.h new file mode 100644 index 000000000..8893bb09f --- /dev/null +++ b/keyboards/nckiibs/vanana/rev2/config.h | |||
| @@ -0,0 +1,100 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 noclew | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | /* USB Device descriptor parameter */ | ||
| 21 | #define DEVICE_VER 0x0002 | ||
| 22 | #define PRODUCT Vanana rev2 | ||
| 23 | |||
| 24 | /* key matrix size */ | ||
| 25 | #define MATRIX_ROWS 6 | ||
| 26 | #define MATRIX_COLS 10 | ||
| 27 | |||
| 28 | /* | ||
| 29 | * Keyboard Matrix Assignments | ||
| 30 | * | ||
| 31 | * Change this to how you wired your keyboard | ||
| 32 | * COLS: AVR pins used for columns, left to right | ||
| 33 | * ROWS: AVR pins used for rows, top to bottom | ||
| 34 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 35 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 36 | * | ||
| 37 | */ | ||
| 38 | #define MATRIX_ROW_PINS { D1, C6, E6, B4, B5, F5} | ||
| 39 | #define MATRIX_COL_PINS { B3, B1, F7, F6, F4, D2, D3, D0, D4, D7 } | ||
| 40 | #define UNUSED_PINS | ||
| 41 | |||
| 42 | /* COL2ROW, ROW2COL */ | ||
| 43 | #define DIODE_DIRECTION COL2ROW | ||
| 44 | |||
| 45 | /* Rotary Encoder and Buzzer */ | ||
| 46 | #define ENCODERS_PAD_A { B6, F0 } | ||
| 47 | #define ENCODERS_PAD_B { B2, F1 } | ||
| 48 | #define B7_AUDIO | ||
| 49 | |||
| 50 | #define RGB_DI_PIN C7 | ||
| 51 | #ifdef RGB_DI_PIN | ||
| 52 | # define RGBLED_NUM 16 | ||
| 53 | # define RGBLIGHT_HUE_STEP 8 | ||
| 54 | # define RGBLIGHT_SAT_STEP 8 | ||
| 55 | # define RGBLIGHT_VAL_STEP 8 | ||
| 56 | # define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 57 | # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 58 | /*== all animations enable ==*/ | ||
| 59 | // # define RGBLIGHT_ANIMATIONS | ||
| 60 | /*== or choose animations ==*/ | ||
| 61 | //# define RGBLIGHT_EFFECT_BREATHING | ||
| 62 | # define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 63 | # define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 64 | //# define RGBLIGHT_EFFECT_SNAKE | ||
| 65 | //# define RGBLIGHT_EFFECT_KNIGHT | ||
| 66 | //# define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 67 | # define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 68 | //# define RGBLIGHT_EFFECT_RGB_TEST | ||
| 69 | //# define RGBLIGHT_EFFECT_ALTERNATING | ||
| 70 | /*== customize breathing effect ==*/ | ||
| 71 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 72 | # define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 73 | /*==== use exp() and sin() ====*/ | ||
| 74 | # define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 75 | # define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 76 | #endif | ||
| 77 | |||
| 78 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 79 | #define DEBOUNCE 5 | ||
| 80 | |||
| 81 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 82 | //#define MATRIX_HAS_GHOST | ||
| 83 | |||
| 84 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 85 | #define LOCKING_SUPPORT_ENABLE | ||
| 86 | /* Locking resynchronize hack */ | ||
| 87 | #define LOCKING_RESYNC_ENABLE | ||
| 88 | |||
| 89 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 90 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 91 | */ | ||
| 92 | #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 93 | |||
| 94 | /* disable these deprecated features by default */ | ||
| 95 | #define NO_ACTION_MACRO | ||
| 96 | #define NO_ACTION_FUNCTION | ||
| 97 | |||
| 98 | /* Bootmagic Lite key configuration */ | ||
| 99 | #define BOOTMAGIC_LITE_ROW 0 | ||
| 100 | #define BOOTMAGIC_LITE_COLUMN 0 | ||
