diff options
Diffstat (limited to 'keyboards/zinc/rev1/config.h')
| -rw-r--r-- | keyboards/zinc/rev1/config.h | 61 |
1 files changed, 35 insertions, 26 deletions
diff --git a/keyboards/zinc/rev1/config.h b/keyboards/zinc/rev1/config.h index 6713b3098..1eb63df5b 100644 --- a/keyboards/zinc/rev1/config.h +++ b/keyboards/zinc/rev1/config.h | |||
| @@ -18,9 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 18 | 18 | ||
| 19 | #pragma once | 19 | #pragma once |
| 20 | 20 | ||
| 21 | //#ifndef REV1_CONFIG_H | ||
| 22 | //#define REV1_CONFIG_H | ||
| 23 | |||
| 24 | /* USB Device descriptor parameter */ | 21 | /* USB Device descriptor parameter */ |
| 25 | #define VENDOR_ID 0xFEED | 22 | #define VENDOR_ID 0xFEED |
| 26 | #define PRODUCT_ID 0x9991 | 23 | #define PRODUCT_ID 0x9991 |
| @@ -33,9 +30,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 33 | #define TAPPING_TERM 100 | 30 | #define TAPPING_TERM 100 |
| 34 | 31 | ||
| 35 | /* Use I2C or Serial */ | 32 | /* Use I2C or Serial */ |
| 36 | //#define USE_I2C | ||
| 37 | #define USE_SERIAL | 33 | #define USE_SERIAL |
| 38 | //#define USE_MATRIX_I2C | 34 | #define SOFT_SERIAL_PIN D2 |
| 39 | 35 | ||
| 40 | /* Select hand configuration */ | 36 | /* Select hand configuration */ |
| 41 | #define MASTER_LEFT | 37 | #define MASTER_LEFT |
| @@ -44,18 +40,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 44 | 40 | ||
| 45 | /* key matrix size */ | 41 | /* key matrix size */ |
| 46 | // Rows are doubled-up | 42 | // Rows are doubled-up |
| 47 | #define MATRIX_ROWS 8 | 43 | #define MATRIX_ROWS 8 |
| 48 | #define MATRIX_ROW_PINS { F6, F7, B1, B3 } | 44 | #define MATRIX_ROW_PINS { F6, F7, B1, B3 } |
| 49 | 45 | ||
| 50 | // wiring of each half | 46 | // wiring of each half |
| 51 | #define MATRIX_COLS 6 | 47 | #define MATRIX_COLS 6 |
| 52 | #define MATRIX_COL_PINS { F4, D4, C6, D7, E6, B4 } | 48 | #define MATRIX_COL_PINS { F4, D4, C6, D7, E6, B4 } |
| 53 | 49 | ||
| 54 | /* define if matrix has ghost */ | 50 | #define DIODE_DIRECTION COL2ROW |
| 55 | //#define MATRIX_HAS_GHOST | ||
| 56 | |||
| 57 | /* number of backlight levels */ | ||
| 58 | // #define BACKLIGHT_LEVELS 3 | ||
| 59 | 51 | ||
| 60 | /* Set 0 if debouncing isn't needed */ | 52 | /* Set 0 if debouncing isn't needed */ |
| 61 | #define DEBOUNCE 5 | 53 | #define DEBOUNCE 5 |
| @@ -67,25 +59,44 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 67 | 59 | ||
| 68 | /* ws2812 RGB LED */ | 60 | /* ws2812 RGB LED */ |
| 69 | #define RGB_DI_PIN D3 | 61 | #define RGB_DI_PIN D3 |
| 70 | #define RGBLIGHT_TIMER | ||
| 71 | //#define RGBLED_NUM 12 // Number of LEDs. see ./keymaps/default/config.h | ||
| 72 | #define ws2812_PORTREG PORTD | ||
| 73 | #define ws2812_DDRREG DDRD | ||
| 74 | 62 | ||
| 75 | // RGB LED support | 63 | // RGB LED support |
| 76 | //#define RGBLIGHT_ANIMATIONS : see ./rules.mk: LED_ANIMATIONS = yes or no | 64 | //#define RGBLIGHT_ANIMATIONS : see ./rules.mk: LED_ANIMATIONS = yes or no |
| 77 | // see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes | 65 | // see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes |
| 78 | #ifdef RGBLED_BACK | 66 | #ifdef RGBLIGHT_ENABLE |
| 79 | #define RGBLED_NUM 24 | 67 | #define RGBLIGHT_SPLIT |
| 80 | #else | 68 | #ifdef RGBLED_BACK |
| 81 | #define RGBLED_NUM 6 | 69 | #ifdef RGBLED_CONT |
| 70 | #define RGBLED_NUM 48 | ||
| 71 | #define RGBLED_SPLIT { 24, 24 } | ||
| 72 | #else | ||
| 73 | #define RGBLED_NUM 24 | ||
| 74 | #endif | ||
| 75 | #else | ||
| 76 | #ifdef RGBLED_BOTH | ||
| 77 | #ifdef RGBLED_CONT | ||
| 78 | #define RGBLED_NUM 60 | ||
| 79 | #define RGBLED_SPLIT { 30, 30 } | ||
| 80 | // #define RGBLIGHT_LED_MAP {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29} | ||
| 81 | #else | ||
| 82 | #define RGBLED_NUM 30 | ||
| 83 | #endif | ||
| 84 | #else | ||
| 85 | #ifdef RGBLED_CONT | ||
| 86 | #define RGBLED_NUM 12 | ||
| 87 | #define RGBLED_SPLIT { 6, 6 } | ||
| 88 | #else | ||
| 89 | #define RGBLED_NUM 6 | ||
| 90 | #endif | ||
| 91 | #endif | ||
| 92 | #endif | ||
| 82 | #endif | 93 | #endif |
| 83 | 94 | ||
| 84 | #ifndef IOS_DEVICE_ENABLE | 95 | #ifndef IOS_DEVICE_ENABLE |
| 85 | #if RGBLED_NUM <= 6 | 96 | #if (RGBLED_NUM <= 6) || (defined(RGBLED_CONT) && (RGBLED_NUM <= 12)) |
| 86 | #define RGBLIGHT_LIMIT_VAL 255 | 97 | #define RGBLIGHT_LIMIT_VAL 255 |
| 87 | #else | 98 | #else |
| 88 | #if RGBLED_NUM <= 16 | 99 | #if (RGBLED_NUM <= 16) || (defined(RGBLED_CONT) && (RGBLED_NUM <= 32)) |
| 89 | #define RGBLIGHT_LIMIT_VAL 130 | 100 | #define RGBLIGHT_LIMIT_VAL 130 |
| 90 | #else | 101 | #else |
| 91 | #define RGBLIGHT_LIMIT_VAL 120 | 102 | #define RGBLIGHT_LIMIT_VAL 120 |
| @@ -93,10 +104,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 93 | #endif | 104 | #endif |
| 94 | #define RGBLIGHT_VAL_STEP 17 | 105 | #define RGBLIGHT_VAL_STEP 17 |
| 95 | #else | 106 | #else |
| 96 | #if RGBLED_NUM <= 6 | 107 | #if (RGBLED_NUM <= 6) || (defined(RGBLED_CONT) && (RGBLED_NUM <= 12)) |
| 97 | #define RGBLIGHT_LIMIT_VAL 90 | 108 | #define RGBLIGHT_LIMIT_VAL 90 |
| 98 | #else | 109 | #else |
| 99 | #if RGBLED_NUM <= 16 | 110 | #if (RGBLED_NUM <= 16) || (defined(RGBLED_CONT) && (RGBLED_NUM <= 32)) |
| 100 | #define RGBLIGHT_LIMIT_VAL 45 | 111 | #define RGBLIGHT_LIMIT_VAL 45 |
| 101 | #else | 112 | #else |
| 102 | #define RGBLIGHT_LIMIT_VAL 35 | 113 | #define RGBLIGHT_LIMIT_VAL 35 |
| @@ -136,5 +147,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 136 | //#define NO_ACTION_ONESHOT | 147 | //#define NO_ACTION_ONESHOT |
| 137 | //#define NO_ACTION_MACRO | 148 | //#define NO_ACTION_MACRO |
| 138 | //#define NO_ACTION_FUNCTION | 149 | //#define NO_ACTION_FUNCTION |
| 139 | |||
| 140 | //#endif | ||
