diff options
| author | mechmerlin <30334081+mechmerlin@users.noreply.github.com> | 2017-09-29 14:51:12 -0700 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2017-09-29 11:51:12 -1000 |
| commit | 6ec7ccec63a5f434af3b6d5726fac858adfdbb61 (patch) | |
| tree | 0a270d8c56ba1fbc16d715a66d255aed0b6abdd0 | |
| parent | 791b9cc6520004f7010072529fdf749750d2d7ca (diff) | |
| download | qmk_firmware-6ec7ccec63a5f434af3b6d5726fac858adfdbb61.tar.gz qmk_firmware-6ec7ccec63a5f434af3b6d5726fac858adfdbb61.zip | |
Support for KBP V60 Type R 60% keyboard (#1770)
* Support for KBP V60 Type R 60% keyboard
Support does not include in switch or underglow lighting for Polestar Edition.
* rename v60type_r to v60_type_r
* Remove old v60type_r
* Modify readme.md to adhere with QMK readme formatting.
| -rw-r--r-- | keyboards/v60_type_r/config.h | 190 | ||||
| -rw-r--r-- | keyboards/v60_type_r/keymaps/default/keymap.c | 103 | ||||
| -rw-r--r-- | keyboards/v60_type_r/keymaps/default/readme.md | 12 | ||||
| -rw-r--r-- | keyboards/v60_type_r/readme.md | 31 | ||||
| -rw-r--r-- | keyboards/v60_type_r/rules.mk | 68 | ||||
| -rw-r--r-- | keyboards/v60_type_r/v60_type_r.c | 43 | ||||
| -rw-r--r-- | keyboards/v60_type_r/v60_type_r.h | 56 |
7 files changed, 503 insertions, 0 deletions
diff --git a/keyboards/v60_type_r/config.h b/keyboards/v60_type_r/config.h new file mode 100644 index 000000000..c20bfe3a6 --- /dev/null +++ b/keyboards/v60_type_r/config.h | |||
| @@ -0,0 +1,190 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2017 REPLACE_WITH_YOUR_NAME | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef CONFIG_H | ||
| 19 | #define CONFIG_H | ||
| 20 | |||
| 21 | #include "config_common.h" | ||
| 22 | |||
| 23 | /* USB Device descriptor parameter */ | ||
| 24 | #define VENDOR_ID 0xFEED | ||
| 25 | #define PRODUCT_ID 0x6060 | ||
| 26 | #define DEVICE_VER 0x0001 | ||
| 27 | #define MANUFACTURER KB Paradise | ||
| 28 | #define PRODUCT V60 Type R | ||
| 29 | #define DESCRIPTION First fully programmable KBP 60% keyboard | ||
| 30 | |||
| 31 | /* key matrix size */ | ||
| 32 | #define MATRIX_ROWS 8 | ||
| 33 | #define MATRIX_COLS 8 | ||
| 34 | |||
| 35 | /* | ||
| 36 | * Keyboard Matrix Assignments | ||
| 37 | * | ||
| 38 | * Change this to how you wired your keyboard | ||
| 39 | * COLS: AVR pins used for columns, left to right | ||
| 40 | * ROWS: AVR pins used for rows, top to bottom | ||
| 41 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 42 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 43 | * | ||
| 44 | */ | ||
| 45 | #define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5, B6, B7 } | ||
| 46 | #define MATRIX_COL_PINS { D0, D1, D2, D3, D4, D5, D6, D7 } | ||
| 47 | #define UNUSED_PINS | ||
| 48 | |||
| 49 | /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */ | ||
| 50 | #define DIODE_DIRECTION COL2ROW | ||
| 51 | |||
| 52 | // #define BACKLIGHT_PIN B7 | ||
| 53 | // #define BACKLIGHT_BREATHING | ||
| 54 | // #define BACKLIGHT_LEVELS 3 | ||
| 55 | |||
| 56 | |||
| 57 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 58 | #define DEBOUNCING_DELAY 5 | ||
| 59 | |||
| 60 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 61 | //#define MATRIX_HAS_GHOST | ||
| 62 | |||
| 63 | /* number of backlight levels */ | ||
| 64 | |||
| 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 | ||
| 69 | |||
| 70 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 71 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 72 | */ | ||
| 73 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 74 | |||
| 75 | /* | ||
| 76 | * Force NKRO | ||
| 77 | * | ||
| 78 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 79 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 80 | * makefile for this to work.) | ||
| 81 | * | ||
| 82 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 83 | * until the next keyboard reset. | ||
| 84 | * | ||
| 85 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 86 | * fully operational during normal computer usage. | ||
| 87 | * | ||
| 88 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 89 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 90 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 91 | * power-up. | ||
| 92 | * | ||
| 93 | */ | ||
| 94 | //#define FORCE_NKRO | ||
| 95 | |||
| 96 | /* | ||
| 97 | * Magic Key Options | ||
| 98 | * | ||
| 99 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 100 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 101 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 102 | * | ||
| 103 | * The options below allow the magic key functionality to be changed. This is | ||
| 104 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 105 | * | ||
| 106 | */ | ||
| 107 | |||
| 108 | /* key combination for magic key command */ | ||
| 109 | #define IS_COMMAND() ( \ | ||
| 110 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 111 | ) | ||
| 112 | |||
| 113 | /* control how magic key switches layers */ | ||
| 114 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 115 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 116 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 117 | |||
| 118 | /* override magic key keymap */ | ||
| 119 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 120 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 121 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 122 | //#define MAGIC_KEY_HELP1 H | ||
| 123 | //#define MAGIC_KEY_HELP2 SLASH | ||
| 124 | //#define MAGIC_KEY_DEBUG D | ||
| 125 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 126 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 127 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 128 | //#define MAGIC_KEY_VERSION V | ||
| 129 | //#define MAGIC_KEY_STATUS S | ||
| 130 | //#define MAGIC_KEY_CONSOLE C | ||
| 131 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
| 132 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
| 133 | //#define MAGIC_KEY_LAYER0 0 | ||
| 134 | //#define MAGIC_KEY_LAYER1 1 | ||
| 135 | //#define MAGIC_KEY_LAYER2 2 | ||
| 136 | //#define MAGIC_KEY_LAYER3 3 | ||
| 137 | //#define MAGIC_KEY_LAYER4 4 | ||
| 138 | //#define MAGIC_KEY_LAYER5 5 | ||
| 139 | //#define MAGIC_KEY_LAYER6 6 | ||
| 140 | //#define MAGIC_KEY_LAYER7 7 | ||
| 141 | //#define MAGIC_KEY_LAYER8 8 | ||
| 142 | //#define MAGIC_KEY_LAYER9 9 | ||
| 143 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
| 144 | //#define MAGIC_KEY_LOCK CAPS | ||
| 145 | //#define MAGIC_KEY_EEPROM E | ||
| 146 | //#define MAGIC_KEY_NKRO N | ||
| 147 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 148 | |||
| 149 | /* | ||
| 150 | * Feature disable options | ||
| 151 | * These options are also useful to firmware size reduction. | ||
| 152 | */ | ||
| 153 | |||
| 154 | /* disable debug print */ | ||
| 155 | //#define NO_DEBUG | ||
| 156 | |||
| 157 | /* disable print */ | ||
| 158 | //#define NO_PRINT | ||
| 159 | |||
| 160 | /* disable action features */ | ||
| 161 | //#define NO_ACTION_LAYER | ||
| 162 | //#define NO_ACTION_TAPPING | ||
| 163 | //#define NO_ACTION_ONESHOT | ||
| 164 | //#define NO_ACTION_MACRO | ||
| 165 | //#define NO_ACTION_FUNCTION | ||
| 166 | |||
| 167 | /* | ||
| 168 | * MIDI options | ||
| 169 | */ | ||
| 170 | |||
| 171 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 172 | //#define MIDI_ENABLE_STRICT 1 | ||
| 173 | |||
| 174 | /* enable basic MIDI features: | ||
| 175 | - MIDI notes can be sent when in Music mode is on | ||
| 176 | */ | ||
| 177 | //#define MIDI_BASIC | ||
| 178 | |||
| 179 | /* enable advanced MIDI features: | ||
| 180 | - MIDI notes can be added to the keymap | ||
| 181 | - Octave shift and transpose | ||
| 182 | - Virtual sustain, portamento, and modulation wheel | ||
| 183 | - etc. | ||
| 184 | */ | ||
| 185 | //#define MIDI_ADVANCED | ||
| 186 | |||
| 187 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 188 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
| 189 | |||
| 190 | #endif | ||
diff --git a/keyboards/v60_type_r/keymaps/default/keymap.c b/keyboards/v60_type_r/keymaps/default/keymap.c new file mode 100644 index 000000000..58ae81c4b --- /dev/null +++ b/keyboards/v60_type_r/keymaps/default/keymap.c | |||
| @@ -0,0 +1,103 @@ | |||
| 1 | /* Copyright 2017 REPLACE_WITH_YOUR_NAME | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | /* This is the default layout provided by the KBP V60 Type R | ||
| 18 | * as depicted in their manual and on the stock keycaps. | ||
| 19 | */ | ||
| 20 | #include "v60_type_r.h" | ||
| 21 | |||
| 22 | |||
| 23 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 24 | /* Keymap 0: Default Layer (Qwerty) | ||
| 25 | * ,-----------------------------------------------------------. | ||
| 26 | * |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| Bs | | ||
| 27 | * |-----------------------------------------------------------| | ||
| 28 | * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| \| | ||
| 29 | * |-----------------------------------------------------------| | ||
| 30 | * |Caps | A| S| D| F| G| H| J| K| L| ;| '|Return | | ||
| 31 | * |-----------------------------------------------------------| | ||
| 32 | * |LShift | Z| X| C| V| B| N| M| ,| .| /| RShift | | ||
| 33 | * |-----------------------------------------------------------| | ||
| 34 | * |Ctrl|Gui |Alt | Space |Fn0 |Gui |App|Ctrl| | ||
| 35 | * `-----------------------------------------------------------' | ||
| 36 | */ | ||
| 37 | [0] = KEYMAP( | ||
| 38 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_NO, KC_BSPC, \ | ||
| 39 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, \ | ||
| 40 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, \ | ||
| 41 | KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_NO, \ | ||
| 42 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_RGUI, KC_APP, KC_RCTL), | ||
| 43 | |||
| 44 | /* Keymap 1: FN Layer | ||
| 45 | * ,-----------------------------------------------------------. | ||
| 46 | * |` | F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| Del | | ||
| 47 | * |-----------------------------------------------------------| | ||
| 48 | * | | |Up | | | | | |Prt|Scl|Pau|Up| | Ins | | ||
| 49 | * |-----------------------------------------------------------| | ||
| 50 | * | |Lft|Dwn|Rig| | | | |Hme|PgU|Lef|Rig| | | ||
| 51 | * |-----------------------------------------------------------| | ||
| 52 | * | | | | | |VolD|VolU|Mut|End|PgD|Dwn| | | ||
| 53 | * |-----------------------------------------------------------| | ||
| 54 | * | | | | | | | | | | ||
| 55 | * `-----------------------------------------------------------' | ||
| 56 | */ | ||
| 57 | [1] = KEYMAP( | ||
| 58 | KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_DEL, \ | ||
| 59 | KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_UP, KC_TRNS, KC_INS, \ | ||
| 60 | KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGUP, KC_LEFT, KC_RIGHT, KC_TRNS, \ | ||
| 61 | KC_TRNS, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_END, KC_PGDN, KC_DOWN, KC_TRNS, KC_NO, \ | ||
| 62 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,KC_TRNS, KC_TRNS), | ||
| 63 | |||
| 64 | }; | ||
| 65 | |||
| 66 | |||
| 67 | |||
| 68 | |||
| 69 | const uint16_t PROGMEM fn_actions[] = { | ||
| 70 | |||
| 71 | }; | ||
| 72 | |||
| 73 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
| 74 | { | ||
| 75 | // MACRODOWN only works in this function | ||
| 76 | switch(id) { | ||
| 77 | case 0: | ||
| 78 | if (record->event.pressed) { | ||
| 79 | register_code(KC_RSFT); | ||
| 80 | } else { | ||
| 81 | unregister_code(KC_RSFT); | ||
| 82 | } | ||
| 83 | break; | ||
| 84 | } | ||
| 85 | return MACRO_NONE; | ||
| 86 | }; | ||
| 87 | |||
| 88 | |||
| 89 | void matrix_init_user(void) { | ||
| 90 | |||
| 91 | } | ||
| 92 | |||
| 93 | void matrix_scan_user(void) { | ||
| 94 | |||
| 95 | } | ||
| 96 | |||
| 97 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 98 | return true; | ||
| 99 | } | ||
| 100 | |||
| 101 | void led_set_user(uint8_t usb_led) { | ||
| 102 | |||
| 103 | } | ||
diff --git a/keyboards/v60_type_r/keymaps/default/readme.md b/keyboards/v60_type_r/keymaps/default/readme.md new file mode 100644 index 000000000..57ac901ad --- /dev/null +++ b/keyboards/v60_type_r/keymaps/default/readme.md | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | KB Paradise V60 Type R Default Layout | ||
| 2 | ====================== | ||
| 3 | |||
| 4 | This is the default layout as defined by the KBP V60 Type R manual/keycaps | ||
| 5 | |||
| 6 | ## Keymap Notes | ||
| 7 | - Does not support control for in-switch or underglow lighting | ||
| 8 | - Keymap is not the same as other KBP V60 keyboards | ||
| 9 | |||
| 10 | |||
| 11 | ### Build | ||
| 12 | To build this keymap, simply run `make KEYMAP=default`. \ No newline at end of file | ||
diff --git a/keyboards/v60_type_r/readme.md b/keyboards/v60_type_r/readme.md new file mode 100644 index 000000000..685fcba93 --- /dev/null +++ b/keyboards/v60_type_r/readme.md | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | KBParadise V60 Type R | ||
| 2 | ====================== | ||
| 3 | |||
| 4 | Released in 2017, the KBP V60 Type R is KB Paradise's first foray into the world of fully programmable keyboards. It utilizes an atmega32u4, Cherry MX switches, standard layout plate, Cherry style stabilizers, and plastic 60% case. | ||
| 5 | |||
| 6 | The keyboard comes in two flavors: | ||
| 7 | 1. V60 Type R | ||
| 8 | 2. V60 Type R Polestar | ||
| 9 | |||
| 10 | The Polestar comes with both in switch and underglow lighting, while the regular Type R has neither. | ||
| 11 | |||
| 12 | Please note that other variants of the KBP V60 are not fully programmable. | ||
| 13 | |||
| 14 | In switch and underglow lighting is currently not supported, but the hex file generated by QMK can still be used for either type r board. | ||
| 15 | |||
| 16 | The KB Paradise preferred way of creating the hex file is by using https://tkg.io/, selecting Fantastic60 and then defining your keymap. | ||
| 17 | |||
| 18 | You will then have to use tkg-toolkit to finish the flashing | ||
| 19 | |||
| 20 | Keyboard Maintainer: QMK Community | ||
| 21 | Hardware Supported: KBP V60 Type R PCB | ||
| 22 | Hardware Availability: [mechanicalkeyboards.com](https://mechanicalkeyboards.com/search.php?keyword=kbp+v60+type+r), [Massdrop](https://www.massdrop.com/buy/kbparadise-v60-type-r-mechanical-keyboard) | ||
| 23 | |||
| 24 | Make example for this keyboard (after setting up your build environment): | ||
| 25 | |||
| 26 | make v60_type_r-default | ||
| 27 | |||
| 28 | See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information. | ||
| 29 | |||
| 30 | |||
| 31 | |||
diff --git a/keyboards/v60_type_r/rules.mk b/keyboards/v60_type_r/rules.mk new file mode 100644 index 000000000..a3571e8de --- /dev/null +++ b/keyboards/v60_type_r/rules.mk | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | # MCU name | ||
| 2 | #MCU = at90usb1286 | ||
| 3 | MCU = atmega32u4 | ||
| 4 | |||
| 5 | # Processor frequency. | ||
| 6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 9 | # automatically to create a 32-bit value in your source code. | ||
| 10 | # | ||
| 11 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 13 | # does not *change* the processor frequency - it should merely be updated to | ||
| 14 | # reflect the processor speed set externally so that the code can use accurate | ||
| 15 | # software delays. | ||
| 16 | F_CPU = 16000000 | ||
| 17 | |||
| 18 | |||
| 19 | # | ||
| 20 | # LUFA specific | ||
| 21 | # | ||
| 22 | # Target architecture (see library "Board Types" documentation). | ||
| 23 | ARCH = AVR8 | ||
| 24 | |||
| 25 | # Input clock frequency. | ||
| 26 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 27 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 28 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 29 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 30 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 31 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 32 | # source code. | ||
| 33 | # | ||
| 34 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 35 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 36 | F_USB = $(F_CPU) | ||
| 37 | |||
| 38 | # Interrupt driven control endpoint task(+60) | ||
| 39 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 40 | |||
| 41 | |||
| 42 | # Boot Section Size in *bytes* | ||
| 43 | # Teensy halfKay 512 | ||
| 44 | # Teensy++ halfKay 1024 | ||
| 45 | # Atmel DFU loader 4096 | ||
| 46 | # LUFA bootloader 4096 | ||
| 47 | # USBaspLoader 2048 | ||
| 48 | OPT_DEFS += -DBOOTLOADER_SIZE=512 | ||
| 49 | |||
| 50 | |||
| 51 | # Build Options | ||
| 52 | # change yes to no to disable | ||
| 53 | # | ||
| 54 | BOOTMAGIC_ENABLE ?= no # Virtual DIP switch configuration(+1000) | ||
| 55 | MOUSEKEY_ENABLE ?= yes # Mouse keys(+4700) | ||
| 56 | EXTRAKEY_ENABLE ?= yes # Audio control and System control(+450) | ||
| 57 | CONSOLE_ENABLE ?= yes # Console for debug(+400) | ||
| 58 | COMMAND_ENABLE ?= yes # Commands for debug and configuration | ||
| 59 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 60 | SLEEP_LED_ENABLE ?= no # Breathing sleep LED during USB suspend | ||
| 61 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 62 | NKRO_ENABLE ?= no # USB Nkey Rollover | ||
| 63 | BACKLIGHT_ENABLE ?= no # Enable keyboard backlight functionality on B7 by default | ||
| 64 | MIDI_ENABLE ?= no # MIDI support (+2400 to 4200, depending on config) | ||
| 65 | UNICODE_ENABLE ?= no # Unicode | ||
| 66 | BLUETOOTH_ENABLE ?= no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 67 | AUDIO_ENABLE ?= no # Audio output on port C6 | ||
| 68 | FAUXCLICKY_ENABLE ?= no # Use buzzer to emulate clicky switches | ||
diff --git a/keyboards/v60_type_r/v60_type_r.c b/keyboards/v60_type_r/v60_type_r.c new file mode 100644 index 000000000..4f88919bc --- /dev/null +++ b/keyboards/v60_type_r/v60_type_r.c | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | /* Copyright 2017 REPLACE_WITH_YOUR_NAME | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include "v60_type_r.h" | ||
| 17 | |||
| 18 | void matrix_init_kb(void) { | ||
| 19 | // put your keyboard start-up code here | ||
| 20 | // runs once when the firmware starts up | ||
| 21 | |||
| 22 | matrix_init_user(); | ||
| 23 | } | ||
| 24 | |||
| 25 | void matrix_scan_kb(void) { | ||
| 26 | // put your looping keyboard code here | ||
| 27 | // runs every cycle (a lot) | ||
| 28 | |||
| 29 | matrix_scan_user(); | ||
| 30 | } | ||
| 31 | |||
| 32 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
| 33 | // put your per-action keyboard code here | ||
| 34 | // runs for every action, just before processing by the firmware | ||
| 35 | |||
| 36 | return process_record_user(keycode, record); | ||
| 37 | } | ||
| 38 | |||
| 39 | void led_set_kb(uint8_t usb_led) { | ||
| 40 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
| 41 | |||
| 42 | led_set_user(usb_led); | ||
| 43 | } | ||
diff --git a/keyboards/v60_type_r/v60_type_r.h b/keyboards/v60_type_r/v60_type_r.h new file mode 100644 index 000000000..77d871e53 --- /dev/null +++ b/keyboards/v60_type_r/v60_type_r.h | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | /* Copyright 2017 REPLACE_WITH_YOUR_NAME | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #ifndef V60_TYPE_R_H | ||
| 17 | #define V60_TYPE_R_H | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | // This a shortcut to help you visually see your layout. | ||
| 22 | // The first section contains all of the arguments | ||
| 23 | // The second converts the arguments into a two-dimensional array | ||
| 24 | |||
| 25 | /* Default layout | ||
| 26 | * ,-----------------------------------------------------------------------------------------. | ||
| 27 | * | K00 | K01 | K02 | K03 | K04 | K05 | K06 | K07 | K08 | K09 | K0A | K0B | K0C | K0D | K0E | | ||
| 28 | * |-----------------------------------------------------------------------------------------+ | ||
| 29 | * | K10 | K11 | K12 | K13 | K14 | K15 | K16 | K17 | K18 | K19 | K1A | K1B | K1C | K1D | | ||
| 30 | * |-----------------------------------------------------------------------------------------+ | ||
| 31 | * | K20 | K21 | K22 | K23 | K24 | K25 | K26 | K27 | K28 | K29 | K2A | K2B | K2C | | ||
| 32 | * |-----------------------------------------------------------------------------------------+ | ||
| 33 | * | K30 | K31 | K32 | K33 | K34 | K35 | K36 | K37 | K38 | K39 | K3A | K3B | K3C | K3D | | ||
| 34 | * |-----------------------------------------------------------------------------------------+ | ||
| 35 | * | K40 | K41 | K42 | K43 | K44 | K45 | K46 | K47 | | ||
| 36 | * `-----------------------------------------------------------------------------------------' | ||
| 37 | */ | ||
| 38 | |||
| 39 | #define KEYMAP( \ | ||
| 40 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, \ | ||
| 41 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, \ | ||
| 42 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, \ | ||
| 43 | k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, \ | ||
| 44 | k40, k41, k42, k43, k44, k45, k46, k47 \ | ||
| 45 | ) { \ | ||
| 46 | { k00, k01, k02, k03, k04, k05, k06, k07 }, \ | ||
| 47 | { k08, k09, k0a, k0b, k0c, k0d, k0e, k10 }, \ | ||
| 48 | { k11, k12, k13, k14, k15, k16, k17, k18 }, \ | ||
| 49 | { k19, k1a, k1b, k1c, k1d, k20, k21, k22 }, \ | ||
| 50 | { k23, k24, k25, k26, k27, k28, k29, k2a }, \ | ||
| 51 | { k2b, k2c, k30, k31, k32, k33, k34, k35 }, \ | ||
| 52 | { k36, k37, k38, k39, k3a, k3b, k3c, k3d }, \ | ||
| 53 | { k40, k41, k42, k43, k44, k45, k46, k47 } \ | ||
| 54 | } | ||
| 55 | |||
| 56 | #endif | ||
