diff options
Diffstat (limited to 'keyboards/amjkeyboard/amj84/config.h')
| -rw-r--r-- | keyboards/amjkeyboard/amj84/config.h | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/keyboards/amjkeyboard/amj84/config.h b/keyboards/amjkeyboard/amj84/config.h new file mode 100644 index 000000000..279d1268e --- /dev/null +++ b/keyboards/amjkeyboard/amj84/config.h | |||
| @@ -0,0 +1,112 @@ | |||
| 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 0x00D8 //A+M+J | ||
| 10 | #define PRODUCT_ID 0x6068 | ||
| 11 | #define DEVICE_VER 0x0001 | ||
| 12 | #define MANUFACTURER Han Chen | ||
| 13 | #define PRODUCT AMJ84 | ||
| 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 { D0, F7, F6, F5, F4, D5 } | ||
| 30 | #define MATRIX_COL_PINS { F1, F0, E6, C7, C6, B0, D4, B1, B7, B5, B4, D7, D6, B3, D1 } | ||
| 31 | #define UNUSED_PINS | ||
| 32 | |||
| 33 | /* COL2ROW, ROW2COL */ | ||
| 34 | #define DIODE_DIRECTION COL2ROW | ||
| 35 | |||
| 36 | /* | ||
| 37 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
| 38 | */ | ||
| 39 | //#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
| 40 | |||
| 41 | //#define LED_NUM_LOCK_PIN B0 | ||
| 42 | //#define LED_CAPS_LOCK_PIN B2 | ||
| 43 | //#define LED_SCROLL_LOCK_PIN B2 | ||
| 44 | //#define LED_COMPOSE_PIN B3 | ||
| 45 | //#define LED_KANA_PIN B4 | ||
| 46 | |||
| 47 | #define BACKLIGHT_PIN B6 | ||
| 48 | #define BACKLIGHT_LEVELS 3 | ||
| 49 | #define BACKLIGHT_BREATHING | ||
| 50 | |||
| 51 | |||
| 52 | |||
| 53 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 54 | #define DEBOUNCE 5 | ||
| 55 | |||
| 56 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 57 | //#define MATRIX_HAS_GHOST | ||
| 58 | |||
| 59 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 60 | #define LOCKING_SUPPORT_ENABLE | ||
| 61 | /* Locking resynchronize hack */ | ||
| 62 | #define LOCKING_RESYNC_ENABLE | ||
| 63 | |||
| 64 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 65 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 66 | */ | ||
| 67 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 68 | |||
| 69 | /* | ||
| 70 | * Force NKRO | ||
| 71 | * | ||
| 72 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 73 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 74 | * makefile for this to work.) | ||
| 75 | * | ||
| 76 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 77 | * until the next keyboard reset. | ||
| 78 | * | ||
| 79 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 80 | * fully operational during normal computer usage. | ||
| 81 | * | ||
| 82 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 83 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 84 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 85 | * power-up. | ||
| 86 | * | ||
| 87 | */ | ||
| 88 | #define FORCE_NKRO | ||
| 89 | |||
| 90 | /* | ||
| 91 | * Feature disable options | ||
| 92 | * These options are also useful to firmware size reduction. | ||
| 93 | */ | ||
| 94 | |||
| 95 | /* disable debug print */ | ||
| 96 | //#define NO_DEBUG | ||
| 97 | |||
| 98 | /* disable print */ | ||
| 99 | //#define NO_PRINT | ||
| 100 | |||
| 101 | /* disable action features */ | ||
| 102 | //#define NO_ACTION_LAYER | ||
| 103 | //#define NO_ACTION_TAPPING | ||
| 104 | //#define NO_ACTION_ONESHOT | ||
| 105 | |||
| 106 | /* disable these deprecated features by default */ | ||
| 107 | #define NO_ACTION_MACRO | ||
| 108 | #define NO_ACTION_FUNCTION | ||
| 109 | |||
| 110 | /* Bootmagic Lite key configuration */ | ||
| 111 | #define BOOTMAGIC_LITE_ROW 0 | ||
| 112 | #define BOOTMAGIC_LITE_COLUMN 0 | ||
