diff options
Diffstat (limited to 'keyboards/cherrybstudio/cb87v2/config.h')
| -rw-r--r-- | keyboards/cherrybstudio/cb87v2/config.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/keyboards/cherrybstudio/cb87v2/config.h b/keyboards/cherrybstudio/cb87v2/config.h new file mode 100644 index 000000000..782262ebf --- /dev/null +++ b/keyboards/cherrybstudio/cb87v2/config.h | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | /* | ||
| 2 | This program is free software: you can redistribute it and/or modify | ||
| 3 | it under the terms of the GNU General Public License as published by | ||
| 4 | the Free Software Foundation, either version 2 of the License, or | ||
| 5 | (at your option) any later version. | ||
| 6 | This program is distributed in the hope that it will be useful, | ||
| 7 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 8 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 9 | GNU General Public License for more details. | ||
| 10 | You should have received a copy of the GNU General Public License | ||
| 11 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 12 | */ | ||
| 13 | |||
| 14 | #pragma once | ||
| 15 | |||
| 16 | #include "config_common.h" | ||
| 17 | |||
| 18 | /* USB Device descriptor parameter */ | ||
| 19 | #define VENDOR_ID 0x4342 // CB | ||
| 20 | #define PRODUCT_ID 0x8788 | ||
| 21 | #define DEVICE_VER 0x0001 | ||
| 22 | #define MANUFACTURER CherryB.Studio | ||
| 23 | #define PRODUCT CB87v2 | ||
| 24 | |||
| 25 | /* key matrix size */ | ||
| 26 | #define MATRIX_ROWS 10 | ||
| 27 | #define MATRIX_COLS 10 | ||
| 28 | |||
| 29 | /* | ||
| 30 | * Keyboard Matrix Assignments | ||
| 31 | * | ||
| 32 | * Change this to how you wired your keyboard | ||
| 33 | * COLS: AVR pins used for columns, left to right | ||
| 34 | * ROWS: AVR pins used for rows, top to bottom | ||
| 35 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 36 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 37 | * | ||
| 38 | * 0 1 2 3 4 5 6 7 8 9 | ||
| 39 | */ | ||
| 40 | #define MATRIX_ROW_PINS { B0, B1, B2, B3, B7, D0, D1, D2, D3, F6 } | ||
| 41 | #define MATRIX_COL_PINS { D5, D4, D6, D7, B4, B5, F5, C6, C7, F7 } | ||
| 42 | //#define UNUSED_PINS | ||
| 43 | |||
| 44 | /* COL2ROW, ROW2COL*/ | ||
| 45 | #define DIODE_DIRECTION COL2ROW | ||
| 46 | #define LED_CAPS_LOCK_PIN F0 | ||
| 47 | #define LED_SCROLL_LOCK_PIN F4 | ||
| 48 | #define LED_PIN_ON_STATE 0 | ||
| 49 | #define BACKLIGHT_PIN B6 | ||
| 50 | #ifdef BACKLIGHT_PIN | ||
| 51 | #define BACKLIGHT_LEVELS 3 | ||
| 52 | #endif | ||
| 53 | |||
| 54 | |||
| 55 | /* Set 0 if debouncing isn't needed */ | ||
| 56 | #define DEBOUNCE 5 | ||
| 57 | |||
| 58 | #define RGB_DI_PIN E6 | ||
| 59 | #ifdef RGB_DI_PIN | ||
| 60 | #define RGBLIGHT_EFFECT_BREATHING | ||
| 61 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 62 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 63 | #define RGBLIGHT_EFFECT_SNAKE | ||
| 64 | #define RGBLIGHT_EFFECT_KNIGHT | ||
| 65 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 66 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 67 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 68 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 69 | #define RGBLIGHT_EFFECT_TWINKLE | ||
| 70 | #define RGBLED_NUM 24 | ||
| 71 | #define RGBLIGHT_HUE_STEP 8 | ||
| 72 | #define RGBLIGHT_SAT_STEP 8 | ||
| 73 | #define RGBLIGHT_VAL_STEP 8 | ||
| 74 | #endif | ||
