2 Copyright 2012 Jun Wako <wakojun@gmail.com>
3 Copyright 2015 Jack Humbert
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.
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.
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/>.
21 /* USB Device descriptor parameter */
22 #define VENDOR_ID 0xFEED
23 #define PRODUCT_ID 0x3060
24 #define DEVICE_VER 0x0001
25 #define MANUFACTURER Salicylic_Acid
26 #define PRODUCT naked48
27 #define DESCRIPTION Ortholinear 48 Keys Keyboard
29 /* Use I2C or Serial */
32 //#define USE_MATRIX_I2C
34 /* Select hand configuration */
36 // #define MASTER_RIGHT
40 // see ./rules.mk: OLED_ENABLE=yes or no
47 #define MATRIX_COLS 14
49 // Rows are doubled-up
50 #define MATRIX_ROW_PINS { D1, D0, D4, C6 }
52 // wiring of each half
53 #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, D7, E6, B4, B5 }
54 // #define MATRIX_COL_PINS { B5, B4, E6, D7, D6, B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order
56 /* define if matrix has ghost */
57 //#define MATRIX_HAS_GHOST
59 /* number of backlight levels */
60 // #define BACKLIGHT_LEVELS 3
62 /* Set 0 if debouncing isn't needed */
65 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
66 //#define LOCKING_SUPPORT_ENABLE
67 /* Locking resynchronize hack */
68 //#define LOCKING_RESYNC_ENABLE
72 #define RGBLIGHT_TIMER
73 #define ws2812_PORTREG PORTD
74 #define ws2812_DDRREG DDRD
76 // naked48 keyboard RGB LED support
77 //#define RGBLIGHT_ANIMATIONS : see ./rules.mk: LED_ANIMATIONS = yes or no
78 // see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes
81 #ifndef IOS_DEVICE_ENABLE
82 #define RGBLIGHT_LIMIT_VAL 180
83 #define RGBLIGHT_VAL_STEP 17
85 #define RGBLIGHT_LIMIT_VAL 50
86 #define RGBLIGHT_VAL_STEP 4
88 #define RGBLIGHT_HUE_STEP 10
89 #define RGBLIGHT_SAT_STEP 17
91 #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
92 // USB_MAX_POWER_CONSUMPTION value for naked48 keyboard
93 // 120 RGBoff, OLEDoff
98 #define USB_MAX_POWER_CONSUMPTION 400
100 // fix iPhone and iPad power adapter issue
101 // iOS device need lessthan 100
102 #define USB_MAX_POWER_CONSUMPTION 100
106 * Feature disable options
107 * These options are also useful to firmware size reduction.
110 /* disable debug print */
116 /* disable action features */
117 //#define NO_ACTION_LAYER
118 //#define NO_ACTION_TAPPING
119 //#define NO_ACTION_ONESHOT
120 //#define NO_ACTION_MACRO
121 //#define NO_ACTION_FUNCTION