diff options
Diffstat (limited to 'keyboards/naked64/rev1/config.h')
| -rw-r--r-- | keyboards/naked64/rev1/config.h | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/keyboards/naked64/rev1/config.h b/keyboards/naked64/rev1/config.h new file mode 100644 index 000000000..2e48edbc0 --- /dev/null +++ b/keyboards/naked64/rev1/config.h | |||
| @@ -0,0 +1,82 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 3 | Copyright 2015 Jack Humbert | ||
| 4 | |||
| 5 | This program is free software: you can redistribute it and/or modify | ||
| 6 | it under the terms of the GNU General Public License as published by | ||
| 7 | the Free Software Foundation, either version 2 of the License, or | ||
| 8 | (at your option) any later version. | ||
| 9 | |||
| 10 | This program is distributed in the hope that it will be useful, | ||
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | GNU General Public License for more details. | ||
| 14 | |||
| 15 | You should have received a copy of the GNU General Public License | ||
| 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #pragma once | ||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0xFEED | ||
| 23 | #define PRODUCT_ID 0x3060 | ||
| 24 | #define DEVICE_VER 0x0003 | ||
| 25 | #define MANUFACTURER Salicylic_Acid | ||
| 26 | #define PRODUCT naked64 | ||
| 27 | #define DESCRIPTION A custom keyboard | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 16 | ||
| 31 | #define MATRIX_COLS 8 | ||
| 32 | |||
| 33 | // wiring of each half | ||
| 34 | #define MATRIX_ROW_PINS { D1, D0, D4, C6, D7, E6, B4, B5 } | ||
| 35 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, D3 } | ||
| 36 | #define MATRIX_ROW_PINS_RIGHT { D4, C6, D7, E6, B4, B5, B2, B2 } | ||
| 37 | #define MATRIX_COL_PINS_RIGHT { F4, F5, F6, F7, B1, B3, B2, B6 } | ||
| 38 | |||
| 39 | /* Set 0 if debouncing isn't needed */ | ||
| 40 | #define DEBOUNCE 5 | ||
| 41 | |||
| 42 | /* serial.c configuration for split keyboard */ | ||
| 43 | #define SOFT_SERIAL_PIN D2 | ||
| 44 | |||
| 45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 46 | #define LOCKING_SUPPORT_ENABLE | ||
| 47 | /* Locking resynchronize hack */ | ||
| 48 | #define LOCKING_RESYNC_ENABLE | ||
| 49 | |||
| 50 | /* ws2812 RGB LED */ | ||
| 51 | #define RGB_DI_PIN B6 | ||
| 52 | |||
| 53 | #define RGBLED_NUM 12 // Number of LEDs | ||
| 54 | #define RGBLIGHT_LED_MAP { 0, 1, 3, 2, 2, 3, 2, 3, 4, 5, 6, 7 } | ||
| 55 | |||
| 56 | #ifndef IOS_DEVICE_ENABLE | ||
| 57 | #define RGBLIGHT_LIMIT_VAL 180 | ||
| 58 | #define RGBLIGHT_VAL_STEP 17 | ||
| 59 | #else | ||
| 60 | #define RGBLIGHT_LIMIT_VAL 50 | ||
| 61 | #define RGBLIGHT_VAL_STEP 4 | ||
| 62 | #endif | ||
| 63 | #define RGBLIGHT_HUE_STEP 10 | ||
| 64 | #define RGBLIGHT_SAT_STEP 17 | ||
| 65 | |||
| 66 | // Selection of RGBLIGHT MODE to use. | ||
| 67 | #define RGBLIGHT_EFFECT_BREATHING | ||
| 68 | #define RGBLIGHT_EFFECT_SNAKE | ||
| 69 | |||
| 70 | #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE) | ||
| 71 | // USB_MAX_POWER_CONSUMPTION value for naked48 keyboard | ||
| 72 | // 120 RGBoff, OLEDoff | ||
| 73 | // 120 OLED | ||
| 74 | // 330 RGB 6 | ||
| 75 | // 300 RGB 32 | ||
| 76 | // 310 OLED & RGB 32 | ||
| 77 | #define USB_MAX_POWER_CONSUMPTION 400 | ||
| 78 | #else | ||
| 79 | // fix iPhone and iPad power adapter issue | ||
| 80 | // iOS device need lessthan 100 | ||
| 81 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
| 82 | #endif | ||
