diff options
| author | yiancar <yiangosyiangou@cytanet.com.cy> | 2019-12-28 08:06:42 +0000 |
|---|---|---|
| committer | James Young <18669334+noroadsleft@users.noreply.github.com> | 2019-12-28 00:06:42 -0800 |
| commit | c329a0ec8ef894aadec3eb11ee44b136955cb1ca (patch) | |
| tree | e19d2fcb463e4d2cb32d9232025bf428650ef5df /keyboards/doppelganger | |
| parent | 26a823082b17ee30aa8a0c5e39a32d854449ce15 (diff) | |
| download | qmk_firmware-c329a0ec8ef894aadec3eb11ee44b136955cb1ca.tar.gz qmk_firmware-c329a0ec8ef894aadec3eb11ee44b136955cb1ca.zip | |
[Keyboard] Doppelganger (#7682)
* Initial commit
* Update info.json
* Update doppelganger.c
* Update keyboards/doppelganger/readme.md
* Update keyboards/doppelganger/readme.md
* Update keyboards/doppelganger/readme.md
* Update keyboards/doppelganger/rules.mk
* Update keyboards/doppelganger/rules.mk
* Update keyboards/doppelganger/rules.mk
* Update keyboards/doppelganger/rules.mk
* More fixes my g:)
* Update keyboards/doppelganger/rules.mk
* Update keyboards/doppelganger/rules.mk
* More prettying
* Update rules.mk
* Minor spacing
* Init pins
* Update rules.mk
* Update keyboards/doppelganger/info.json
Diffstat (limited to 'keyboards/doppelganger')
| -rw-r--r-- | keyboards/doppelganger/config.h | 229 | ||||
| -rw-r--r-- | keyboards/doppelganger/doppelganger.c | 39 | ||||
| -rw-r--r-- | keyboards/doppelganger/doppelganger.h | 46 | ||||
| -rw-r--r-- | keyboards/doppelganger/info.json | 12 | ||||
| -rw-r--r-- | keyboards/doppelganger/keymaps/default/keymap.c | 33 | ||||
| -rw-r--r-- | keyboards/doppelganger/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/doppelganger/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/doppelganger/rules.mk | 34 |
8 files changed, 409 insertions, 0 deletions
diff --git a/keyboards/doppelganger/config.h b/keyboards/doppelganger/config.h new file mode 100644 index 000000000..c19fa5179 --- /dev/null +++ b/keyboards/doppelganger/config.h | |||
| @@ -0,0 +1,229 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 Yiancar-Designs | ||
| 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 | #pragma once | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0x8968 | ||
| 24 | #define PRODUCT_ID 0x4447 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Yiancar-Designs | ||
| 27 | #define PRODUCT Doppelganger | ||
| 28 | #define DESCRIPTION A custom split keyboard | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 10 | ||
| 32 | #define MATRIX_COLS 9 | ||
| 33 | |||
| 34 | /* | ||
| 35 | * Keyboard Matrix Assignments | ||
| 36 | * | ||
| 37 | * Change this to how you wired your keyboard | ||
| 38 | * COLS: AVR pins used for columns, left to right | ||
| 39 | * ROWS: AVR pins used for rows, top to bottom | ||
| 40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 42 | * | ||
| 43 | */ | ||
| 44 | #define SPLIT_HAND_PIN D4 | ||
| 45 | |||
| 46 | #define MATRIX_ROW_PINS { E6, F1, C7, F7, F6 } | ||
| 47 | #define MATRIX_COL_PINS { F4, F0, B7, B3, B2, B1, D5, D3, D2 } | ||
| 48 | #define UNUSED_PINS | ||
| 49 | |||
| 50 | #define MATRIX_ROW_PINS_RIGHT { D7, D6, D4, E6, B5 } | ||
| 51 | #define MATRIX_COL_PINS_RIGHT { F1, F0, F4, F5, F6, F7, C7, C6, B6 } | ||
| 52 | |||
| 53 | /* COL2ROW, ROW2COL*/ | ||
| 54 | #define DIODE_DIRECTION COL2ROW | ||
| 55 | |||
| 56 | /* | ||
| 57 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
| 58 | */ | ||
| 59 | // #define USE_I2C | ||
| 60 | #define SOFT_SERIAL_PIN D1 // or D1, D2, D3, E6 | ||
| 61 | |||
| 62 | // #define BACKLIGHT_PIN B7 | ||
| 63 | // #define BACKLIGHT_BREATHING | ||
| 64 | // #define BACKLIGHT_LEVELS 3 | ||
| 65 | |||
| 66 | #define RGB_DI_PIN B4 | ||
| 67 | // #ifdef RGB_DI_PIN | ||
| 68 | #define RGBLED_NUM 2 | ||
| 69 | #define RGBLIGHT_SPLIT | ||
| 70 | #define RGBLED_SPLIT { 1, 1 } | ||
| 71 | // #define RGBLIGHT_HUE_STEP 8 | ||
| 72 | // #define RGBLIGHT_SAT_STEP 8 | ||
| 73 | // #define RGBLIGHT_VAL_STEP 8 | ||
| 74 | // #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 75 | // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 76 | // /*== all animations enable ==*/ | ||
| 77 | // #define RGBLIGHT_ANIMATIONS | ||
| 78 | // /*== or choose animations ==*/ | ||
| 79 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 80 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 81 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 82 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 83 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 84 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 85 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 86 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 87 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 88 | // /*== customize breathing effect ==*/ | ||
| 89 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 90 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 91 | // /*==== use exp() and sin() ====*/ | ||
| 92 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 93 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 94 | // #endif | ||
| 95 | |||
| 96 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 97 | #define DEBOUNCE 5 | ||
| 98 | |||
| 99 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 100 | //#define MATRIX_HAS_GHOST | ||
| 101 | |||
| 102 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 103 | #define LOCKING_SUPPORT_ENABLE | ||
| 104 | /* Locking resynchronize hack */ | ||
| 105 | #define LOCKING_RESYNC_ENABLE | ||
| 106 | |||
| 107 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 108 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 109 | */ | ||
| 110 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 111 | |||
| 112 | /* | ||
| 113 | * Force NKRO | ||
| 114 | * | ||
| 115 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 116 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 117 | * makefile for this to work.) | ||
| 118 | * | ||
| 119 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 120 | * until the next keyboard reset. | ||
| 121 | * | ||
| 122 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 123 | * fully operational during normal computer usage. | ||
| 124 | * | ||
| 125 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 126 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 127 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 128 | * power-up. | ||
| 129 | * | ||
| 130 | */ | ||
| 131 | //#define FORCE_NKRO | ||
| 132 | |||
| 133 | /* | ||
| 134 | * Magic Key Options | ||
| 135 | * | ||
| 136 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 137 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 138 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 139 | * | ||
| 140 | * The options below allow the magic key functionality to be changed. This is | ||
| 141 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 142 | * | ||
| 143 | */ | ||
| 144 | |||
| 145 | /* key combination for magic key command */ | ||
| 146 | /* defined by default; to change, uncomment and set to the combination you want */ | ||
| 147 | // #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT) | ||
| 148 | |||
| 149 | /* control how magic key switches layers */ | ||
| 150 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 151 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 152 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 153 | |||
| 154 | /* override magic key keymap */ | ||
| 155 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 156 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 157 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 158 | //#define MAGIC_KEY_HELP H | ||
| 159 | //#define MAGIC_KEY_HELP_ALT SLASH | ||
| 160 | //#define MAGIC_KEY_DEBUG D | ||
| 161 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 162 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 163 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 164 | //#define MAGIC_KEY_VERSION V | ||
| 165 | //#define MAGIC_KEY_STATUS S | ||
| 166 | //#define MAGIC_KEY_CONSOLE C | ||
| 167 | //#define MAGIC_KEY_LAYER0 0 | ||
| 168 | //#define MAGIC_KEY_LAYER0_ALT GRAVE | ||
| 169 | //#define MAGIC_KEY_LAYER1 1 | ||
| 170 | //#define MAGIC_KEY_LAYER2 2 | ||
| 171 | //#define MAGIC_KEY_LAYER3 3 | ||
| 172 | //#define MAGIC_KEY_LAYER4 4 | ||
| 173 | //#define MAGIC_KEY_LAYER5 5 | ||
| 174 | //#define MAGIC_KEY_LAYER6 6 | ||
| 175 | //#define MAGIC_KEY_LAYER7 7 | ||
| 176 | //#define MAGIC_KEY_LAYER8 8 | ||
| 177 | //#define MAGIC_KEY_LAYER9 9 | ||
| 178 | //#define MAGIC_KEY_BOOTLOADER B | ||
| 179 | //#define MAGIC_KEY_BOOTLOADER_ALT ESC | ||
| 180 | //#define MAGIC_KEY_LOCK CAPS | ||
| 181 | //#define MAGIC_KEY_EEPROM E | ||
| 182 | //#define MAGIC_KEY_EEPROM_CLEAR BSPACE | ||
| 183 | //#define MAGIC_KEY_NKRO N | ||
| 184 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 185 | |||
| 186 | /* | ||
| 187 | * Feature disable options | ||
| 188 | * These options are also useful to firmware size reduction. | ||
| 189 | */ | ||
| 190 | |||
| 191 | /* disable debug print */ | ||
| 192 | //#define NO_DEBUG | ||
| 193 | |||
| 194 | /* disable print */ | ||
| 195 | //#define NO_PRINT | ||
| 196 | |||
| 197 | /* disable action features */ | ||
| 198 | //#define NO_ACTION_LAYER | ||
| 199 | //#define NO_ACTION_TAPPING | ||
| 200 | //#define NO_ACTION_ONESHOT | ||
| 201 | //#define NO_ACTION_MACRO | ||
| 202 | //#define NO_ACTION_FUNCTION | ||
| 203 | |||
| 204 | /* | ||
| 205 | * MIDI options | ||
| 206 | */ | ||
| 207 | |||
| 208 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 209 | //#define MIDI_ENABLE_STRICT 1 | ||
| 210 | |||
| 211 | /* enable basic MIDI features: | ||
| 212 | - MIDI notes can be sent when in Music mode is on | ||
| 213 | */ | ||
| 214 | //#define MIDI_BASIC | ||
| 215 | |||
| 216 | /* enable advanced MIDI features: | ||
| 217 | - MIDI notes can be added to the keymap | ||
| 218 | - Octave shift and transpose | ||
| 219 | - Virtual sustain, portamento, and modulation wheel | ||
| 220 | - etc. | ||
| 221 | */ | ||
| 222 | //#define MIDI_ADVANCED | ||
| 223 | |||
| 224 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 225 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
| 226 | |||
| 227 | /* Bootmagic Lite key configuration */ | ||
| 228 | #define BOOTMAGIC_LITE_ROW 0 | ||
| 229 | #define BOOTMAGIC_LITE_COLUMN 2 | ||
diff --git a/keyboards/doppelganger/doppelganger.c b/keyboards/doppelganger/doppelganger.c new file mode 100644 index 000000000..04d19480d --- /dev/null +++ b/keyboards/doppelganger/doppelganger.c | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | /* Copyright 2019 Yiancar-Designs | ||
| 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 "doppelganger.h" | ||
| 17 | |||
| 18 | void keyboard_pre_init_kb (void) { | ||
| 19 | setPinOutput(C6); | ||
| 20 | setPinOutput(B0); | ||
| 21 | } | ||
| 22 | |||
| 23 | bool led_update_kb(led_t led_state) { | ||
| 24 | bool res = led_update_user(led_state); | ||
| 25 | if(res) { | ||
| 26 | // writePin sets the pin high for 1 and low for 0. | ||
| 27 | // In this example the pins are inverted, setting | ||
| 28 | // it low/0 turns it on, and high/1 turns the LED off. | ||
| 29 | // This behavior depends on whether the LED is between the pin | ||
| 30 | // and VCC or the pin and GND. | ||
| 31 | writePin(C6, !led_state.caps_lock); | ||
| 32 | } | ||
| 33 | return res; | ||
| 34 | } | ||
| 35 | |||
| 36 | __attribute__((weak)) layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 37 | writePin(B0, !(state & (1UL << 1))); | ||
| 38 | return state; | ||
| 39 | } | ||
diff --git a/keyboards/doppelganger/doppelganger.h b/keyboards/doppelganger/doppelganger.h new file mode 100644 index 000000000..c065c28c4 --- /dev/null +++ b/keyboards/doppelganger/doppelganger.h | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | /* Copyright 2019 Yiancar-Designs | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | /* This a shortcut to help you visually see your layout. | ||
| 21 | * | ||
| 22 | * The first section contains all of the arguments representing the physical | ||
| 23 | * layout of the board and position of the keys. | ||
| 24 | * | ||
| 25 | * The second converts the arguments into a two-dimensional array which | ||
| 26 | * represents the switch matrix. | ||
| 27 | */ | ||
| 28 | #define LAYOUT( \ | ||
| 29 | L01, L02, L03, L04, L05, L06, L07, L08, R00, R01, R02, R03, R04, R05, R06, R07, \ | ||
| 30 | L10, L11, L12, L13, L14, L15, L16, L17, R10, R11, R12, R13, R14, R15, R16, R17, R18, \ | ||
| 31 | L20, L21, L22, L23, L24, L25, L26, L27, R20, R21, R22, R23, R24, R25, R26, R27, R28, \ | ||
| 32 | L30, L31, L32, L33, L34, L35, L36, L37, L38, R31, R32, R33, R34, R35, R36, R37, R38, \ | ||
| 33 | L40, L41, L42, L43, L44, L45, L46, R42, R43, R44, R45, R46, R47, R48 \ | ||
| 34 | ) \ | ||
| 35 | { \ | ||
| 36 | { KC_NO, L01, L02, L03, L04, L05, L06, L07, L08 }, \ | ||
| 37 | { L10, L11, L12, L13, L14, L15, L16, L17, KC_NO }, \ | ||
| 38 | { L20, L21, L22, L23, L24, L25, L26, L27, KC_NO }, \ | ||
| 39 | { L30, L31, L32, L33, L34, L35, L36, L37, L38 }, \ | ||
| 40 | { L40, L41, L42, L43, L44, L45, L46, KC_NO, KC_NO }, \ | ||
| 41 | { R00, R01, R02, R03, R04, R05, R06, R07, KC_NO }, \ | ||
| 42 | { R10, R11, R12, R13, R14, R15, R16, R17, R18 }, \ | ||
| 43 | { R20, R21, R22, R23, R24, R25, R26, R27, R28 }, \ | ||
| 44 | { KC_NO, R31, R32, R33, R34, R35, R36, R37, R38 }, \ | ||
| 45 | { KC_NO, KC_NO, R42, R43, R44, R45, R46, R47, R48 }, \ | ||
| 46 | } | ||
diff --git a/keyboards/doppelganger/info.json b/keyboards/doppelganger/info.json new file mode 100644 index 000000000..4de98961a --- /dev/null +++ b/keyboards/doppelganger/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Doppelganger", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "yiancar", | ||
| 5 | "width": 20, | ||
| 6 | "height": 5.25, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [{"label":"F1", "x":1, "y":0}, {"label":"Esc", "x":2.5, "y":0}, {"label":"1", "x":3.5, "y":0}, {"label":"2", "x":4.5, "y":0}, {"label":"3", "x":5.5, "y":0}, {"label":"4", "x":6.5, "y":0}, {"label":"5", "x":7.5, "y":0}, {"label":"6", "x":8.5, "y":0}, {"label":"7", "x":10.5, "y":0}, {"label":"8", "x":11.5, "y":0}, {"label":"9", "x":12.5, "y":0}, {"label":"0", "x":13.5, "y":0}, {"label":"_", "x":14.5, "y":0}, {"label":"+", "x":15.5, "y":0}, {"x":16.5, "y":0}, {"x":17.5, "y":0}, {"label":"F2", "x":0, "y":1}, {"label":"F3", "x":1, "y":1}, {"label":"Tab", "x":2.5, "y":1, "w":1.5}, {"label":"Q", "x":4, "y":1}, {"label":"W", "x":5, "y":1}, {"label":"E", "x":6, "y":1}, {"label":"R", "x":7, "y":1}, {"label":"T", "x":8, "y":1}, {"label":"Y", "x":10, "y":1}, {"label":"U", "x":11, "y":1}, {"label":"I", "x":12, "y":1}, {"label":"O", "x":13, "y":1}, {"label":"P", "x":14, "y":1}, {"label":"{", "x":15, "y":1}, {"label":"}", "x":16, "y":1}, {"label":"|", "x":17, "y":1, "w":1.5}, {"label":"Pg Up", "x":19, "y":1}, {"label":"F4", "x":0, "y":2}, {"label":"F5", "x":1, "y":2}, {"label":"Caps Lock", "x":2.5, "y":2, "w":1.75}, {"label":"A", "x":4.25, "y":2}, {"label":"S", "x":5.25, "y":2}, {"label":"D", "x":6.25, "y":2}, {"label":"F", "x":7.25, "y":2}, {"label":"G", "x":8.25, "y":2}, {"label":"H", "x":10.25, "y":2}, {"label":"J", "x":11.25, "y":2}, {"label":"K", "x":12.25, "y":2}, {"label":"L", "x":13.25, "y":2}, {"label":":", "x":14.25, "y":2}, {"label":"\"", "x":15.25, "y":2}, {"label":"~", "x":16.25, "y":2}, {"label":"Enter", "x":17.25, "y":2, "w":1.25}, {"label":"Pg Dn", "x":19, "y":2}, {"label":"F6", "x":0, "y":3}, {"label":"F7", "x":1, "y":3}, {"label":"Shift", "x":2.5, "y":3, "w":1.25}, {"label":"|", "x":3.75, "y":3}, {"label":"Z", "x":4.75, "y":3}, {"label":"X", "x":5.75, "y":3}, {"label":"C", "x":6.75, "y":3}, {"label":"V", "x":7.75, "y":3}, {"label":"B", "x":8.75, "y":3}, {"label":"N", "x":10.75, "y":3}, {"label":"M", "x":11.75, "y":3}, {"label":"<", "x":12.75, "y":3}, {"label":">", "x":13.75, "y":3}, {"label":"?", "x":14.75, "y":3}, {"label":"Shift", "x":15.75, "y":3, "w":1.75}, {"label":"Up", "x":17.75, "y":3.25}, {"label":"Fn", "x":19, "y":3}, {"label":"F8", "x":0, "y":4}, {"label":"F9", "x":1, "y":4}, {"label":"Ctrl", "x":2.5, "y":4, "w":1.25}, {"label":"Win", "x":3.75, "y":4}, {"label":"Alt", "x":4.75, "y":4, "w":1.25}, {"x":6, "y":4, "w":2.25}, {"x":8.25, "y":4}, {"x":10.25, "y":4, "w":2.75}, {"label":"Alt", "x":13, "y":4, "w":1.25}, {"x":14.25, "y":4}, {"label":"Win", "x":15.25, "y":4, "w":1.25}, {"label":"Left", "x":16.75, "y":4.25}, {"label":"Down", "x":17.75, "y":4.25}, {"label":"Right", "x":18.75, "y":4.25}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/keyboards/doppelganger/keymaps/default/keymap.c b/keyboards/doppelganger/keymaps/default/keymap.c new file mode 100644 index 000000000..dedbd2394 --- /dev/null +++ b/keyboards/doppelganger/keymaps/default/keymap.c | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* Copyright 2019 Yiancar-Designs | ||
| 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 QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT( /* Base */ | ||
| 20 | KC_F1, KC_GESC, 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_BSPC, KC_DEL, | ||
| 21 | KC_F2, KC_F3, 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, KC_DEL, | ||
| 22 | KC_F4, KC_F5, 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_NUHS, KC_ENT, KC_PGUP, | ||
| 23 | KC_F6, KC_F7, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, | ||
| 24 | KC_F8, KC_F9, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_SPC, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 25 | ), | ||
| 26 | [1] = LAYOUT( /* FN1 */ | ||
| 27 | RGB_TOG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 28 | RGB_MOD, RGB_RMOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 29 | RGB_HUI, RGB_HUD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 30 | RGB_SAI, RGB_SAD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 31 | RGB_VAI, RGB_VAD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 32 | ), | ||
| 33 | }; | ||
diff --git a/keyboards/doppelganger/keymaps/default/readme.md b/keyboards/doppelganger/keymaps/default/readme.md new file mode 100644 index 000000000..9e9824f4d --- /dev/null +++ b/keyboards/doppelganger/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for doppelganger | |||
diff --git a/keyboards/doppelganger/readme.md b/keyboards/doppelganger/readme.md new file mode 100644 index 000000000..52a12942c --- /dev/null +++ b/keyboards/doppelganger/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # Doppelganger | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A Split keyboard co-designed with Cable Car designs | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [Yiancar-Designs](https://github.com/yiancar) | ||
| 8 | * Hardware Supported: The specific set of pcbs which use 2 ATMEGA-32u4 | ||
| 9 | * Hardware Availability: Contact Noahf#2971 on discord! | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make doppelganger:default | ||
| 14 | |||
| 15 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/doppelganger/rules.mk b/keyboards/doppelganger/rules.mk new file mode 100644 index 000000000..9e1bd63ab --- /dev/null +++ b/keyboards/doppelganger/rules.mk | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = atmel-dfu | ||
| 13 | |||
| 14 | # Build Options | ||
| 15 | # change yes to no to disable | ||
| 16 | # | ||
| 17 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 18 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 20 | CONSOLE_ENABLE = no # Console for debug | ||
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 25 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 26 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 27 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 28 | MIDI_ENABLE = no # MIDI support | ||
| 29 | UNICODE_ENABLE = no # Unicode | ||
| 30 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 31 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 32 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 33 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs | ||
| 34 | SPLIT_KEYBOARD = yes | ||
