diff options
Diffstat (limited to 'keyboards/ada/infinity81/config.h')
| -rw-r--r-- | keyboards/ada/infinity81/config.h | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/keyboards/ada/infinity81/config.h b/keyboards/ada/infinity81/config.h new file mode 100644 index 000000000..1cbce8472 --- /dev/null +++ b/keyboards/ada/infinity81/config.h | |||
| @@ -0,0 +1,126 @@ | |||
| 1 | // Copyright 2022 peepeetee (@peepeetee) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 6 | #include "config_common.h" | ||
| 7 | |||
| 8 | /* USB Device descriptor parameter */ | ||
| 9 | #define VENDOR_ID 0xADA0 | ||
| 10 | #define PRODUCT_ID 0x0081 | ||
| 11 | #define DEVICE_VER 0x0001 | ||
| 12 | #define MANUFACTURER Ada | ||
| 13 | #define PRODUCT infinity81 | ||
| 14 | |||
| 15 | /* key matrix size */ | ||
| 16 | #define MATRIX_ROWS 6 | ||
| 17 | #define MATRIX_COLS 15 | ||
| 18 | |||
| 19 | /* | ||
| 20 | * Keyboard Matrix Assignments | ||
| 21 | * | ||
| 22 | * Change this to how you wired your keyboard | ||
| 23 | * COLS: AVR pins used for columns, left to right | ||
| 24 | * ROWS: AVR pins used for rows, top to bottom | ||
| 25 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 26 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 27 | * | ||
| 28 | */ | ||
| 29 | #define MATRIX_ROW_PINS { B3, B2, B1, B0, F6, B7 } | ||
| 30 | #define MATRIX_COL_PINS { D1, D2, D3, D5, D4, D6, D7, B4, B5, B6, C6, C7, F5, F1, F4 } | ||
| 31 | #define UNUSED_PINS | ||
| 32 | |||
| 33 | /* COL2ROW, ROW2COL */ | ||
| 34 | #define DIODE_DIRECTION COL2ROW | ||
| 35 | |||
| 36 | |||
| 37 | //#define LED_NUM_LOCK_PIN B0 | ||
| 38 | //#define LED_CAPS_LOCK_PIN B1 | ||
| 39 | //#define LED_SCROLL_LOCK_PIN B2 | ||
| 40 | //#define LED_COMPOSE_PIN B3 | ||
| 41 | //#define LED_KANA_PIN B4 | ||
| 42 | |||
| 43 | //#define BACKLIGHT_PIN B7 | ||
| 44 | //#define BACKLIGHT_LEVELS 3 | ||
| 45 | //#define BACKLIGHT_BREATHING | ||
| 46 | |||
| 47 | #define RGB_DI_PIN D0 | ||
| 48 | #ifdef RGB_DI_PIN | ||
| 49 | # define RGBLED_NUM 107 | ||
| 50 | # define RGBLIGHT_HUE_STEP 8 | ||
| 51 | # define RGBLIGHT_SAT_STEP 8 | ||
| 52 | # define RGBLIGHT_VAL_STEP 8 | ||
| 53 | # define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 54 | # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 55 | #define RGBLIGHT_EFFECT_BREATHING | ||
| 56 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 57 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 58 | #define RGBLIGHT_EFFECT_SNAKE | ||
| 59 | #define RGBLIGHT_EFFECT_KNIGHT | ||
| 60 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 61 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 62 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 63 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 64 | #define RGBLIGHT_EFFECT_TWINKLE | ||
| 65 | #endif | ||
| 66 | |||
| 67 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 68 | #define DEBOUNCE 5 | ||
| 69 | |||
| 70 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 71 | //#define MATRIX_HAS_GHOST | ||
| 72 | |||
| 73 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 74 | #define LOCKING_SUPPORT_ENABLE | ||
| 75 | /* Locking resynchronize hack */ | ||
| 76 | #define LOCKING_RESYNC_ENABLE | ||
| 77 | |||
| 78 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 79 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 80 | */ | ||
| 81 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 82 | |||
| 83 | /* | ||
| 84 | * Force NKRO | ||
| 85 | * | ||
| 86 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 87 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 88 | * makefile for this to work.) | ||
| 89 | * | ||
| 90 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 91 | * until the next keyboard reset. | ||
| 92 | * | ||
| 93 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 94 | * fully operational during normal computer usage. | ||
| 95 | * | ||
| 96 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 97 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 98 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 99 | * power-up. | ||
| 100 | * | ||
| 101 | */ | ||
| 102 | //#define FORCE_NKRO | ||
| 103 | |||
| 104 | /* | ||
| 105 | * Feature disable options | ||
| 106 | * These options are also useful to firmware size reduction. | ||
| 107 | */ | ||
| 108 | |||
| 109 | /* disable debug print */ | ||
| 110 | //#define NO_DEBUG | ||
| 111 | |||
| 112 | /* disable print */ | ||
| 113 | //#define NO_PRINT | ||
| 114 | |||
| 115 | /* disable action features */ | ||
| 116 | //#define NO_ACTION_LAYER | ||
| 117 | //#define NO_ACTION_TAPPING | ||
| 118 | //#define NO_ACTION_ONESHOT | ||
| 119 | |||
| 120 | /* disable these deprecated features by default */ | ||
| 121 | #define NO_ACTION_MACRO | ||
| 122 | #define NO_ACTION_FUNCTION | ||
| 123 | |||
| 124 | /* Bootmagic Lite key configuration */ | ||
| 125 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 126 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
