diff options
Diffstat (limited to 'keyboards/unison/v04/config.h')
| -rw-r--r-- | keyboards/unison/v04/config.h | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/keyboards/unison/v04/config.h b/keyboards/unison/v04/config.h new file mode 100644 index 000000000..88807811a --- /dev/null +++ b/keyboards/unison/v04/config.h | |||
| @@ -0,0 +1,125 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Takeshi Nishio | ||
| 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 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0xB9DD | ||
| 24 | #define PRODUCT_ID 0x176A | ||
| 25 | #define DEVICE_VER 0x0040 | ||
| 26 | #define MANUFACTURER jpskenn | ||
| 27 | #define PRODUCT Unison | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | /* NOTE: With Round-Robin matrix, set same size for both. */ | ||
| 31 | #define MATRIX_ROWS 10 | ||
| 32 | #define MATRIX_COLS 10 | ||
| 33 | |||
| 34 | /* key matrix pins */ | ||
| 35 | /* NOTE: With Round-Robin matrix, set same pins for both. */ | ||
| 36 | #define MATRIX_ROW_PINS { B3, E6, F1, F5, F7, B2, F0, F4, F6, C7 } | ||
| 37 | #define MATRIX_COL_PINS { B3, E6, F1, F5, F7, B2, F0, F4, F6, C7 } | ||
| 38 | #define UNUSED_PINS | ||
| 39 | |||
| 40 | #define DIODE_DIRECTION COL2ROW | ||
| 41 | |||
| 42 | /* Rotary Encoder */ | ||
| 43 | #ifdef ENCODER_ENABLE | ||
| 44 | #define ENCODERS_PAD_A { B0, D2, D5, D6, B4 } | ||
| 45 | #define ENCODERS_PAD_B { B1, D3, D4, D7, B5 } | ||
| 46 | #define ENCODER_RESOLUTION 4 //the default & suggested is 4 | ||
| 47 | #endif | ||
| 48 | |||
| 49 | /* Audio */ | ||
| 50 | #ifdef AUDIO_ENABLE | ||
| 51 | #define AUDIO_PIN C6 | ||
| 52 | #define AUDIO_PIN_ALT B6 | ||
| 53 | #define AUDIO_CLICKY | ||
| 54 | #define MUSIC_MAP | ||
| 55 | #endif | ||
| 56 | |||
| 57 | /* RGB Lighting */ | ||
| 58 | #define RGB_DI_PIN B7 | ||
| 59 | #ifdef RGB_DI_PIN | ||
| 60 | #define RGBLED_NUM 7 // Layer Indicator(2) + Rotary Encoder(5) | ||
| 61 | #define RGBLIGHT_LED_MAP {1, 2, 0, 3, 4, 5, 6} // align LEDs from Left to Right | ||
| 62 | #define RGBLIGHT_HUE_STEP 4 | ||
| 63 | #define RGBLIGHT_SAT_STEP 8 | ||
| 64 | #define RGBLIGHT_VAL_STEP 8 | ||
| 65 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 66 | // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 67 | /*== Lighting Layers ==*/ | ||
| 68 | #define RGBLIGHT_LAYERS | ||
| 69 | // #define RGBLIGHT_MAX_LAYERS 2 | ||
| 70 | #define RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF // Overriding RGB Lighting on/off status | ||
| 71 | /*== all animations enable ==*/ | ||
| 72 | // #define RGBLIGHT_ANIMATIONS | ||
| 73 | /*== or choose animations ==*/ | ||
| 74 | #define RGBLIGHT_EFFECT_BREATHING | ||
| 75 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 76 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 77 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 78 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 79 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 80 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 81 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 82 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 83 | #define RGBLIGHT_EFFECT_TWINKLE | ||
| 84 | // /*== customize breathing effect ==*/ | ||
| 85 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 86 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 87 | // /*==== use exp() and sin() ====*/ | ||
| 88 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 89 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 90 | #endif | ||
| 91 | |||
| 92 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 93 | #define DEBOUNCE 5 | ||
| 94 | |||
| 95 | /* | ||
| 96 | * BOOTMAGIC Lite | ||
| 97 | * Hold Left-Top key to enter bootloader. | ||
| 98 | * | ||
| 99 | * NOTE: | ||
| 100 | * With Round-Robin matrix, diagonal position is always High. | ||
| 101 | * So, the default (0,0) is always judged as hold and keyboard enters bootloader. | ||
| 102 | * To prevent this, set specific position for it. | ||
| 103 | */ | ||
| 104 | #define BOOTMAGIC_LITE_ROW 5 | ||
| 105 | #define BOOTMAGIC_LITE_COLUMN 0 | ||
| 106 | |||
| 107 | /* | ||
| 108 | * Feature disable options | ||
| 109 | * These options are also useful to firmware size reduction. | ||
| 110 | */ | ||
| 111 | |||
| 112 | /* disable debug print */ | ||
| 113 | //#define NO_DEBUG | ||
| 114 | |||
| 115 | /* disable print */ | ||
| 116 | //#define NO_PRINT | ||
| 117 | |||
| 118 | /* disable action features */ | ||
| 119 | //#define NO_ACTION_LAYER | ||
| 120 | //#define NO_ACTION_TAPPING | ||
| 121 | //#define NO_ACTION_ONESHOT | ||
| 122 | |||
| 123 | /* disable these deprecated features by default */ | ||
| 124 | #define NO_ACTION_MACRO | ||
| 125 | #define NO_ACTION_FUNCTION | ||
