diff options
| author | aydenvis <38897937+aydenvis@users.noreply.github.com> | 2018-08-19 15:23:13 -0500 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-08-19 13:23:13 -0700 |
| commit | 4cc1edbb67beecd0081fb84d3b5365e55d1a41e1 (patch) | |
| tree | 91489e9826e203d428379f5e34431ff8576e199a /keyboards | |
| parent | d87ef88de0303309a317283a292c52e7e89d6449 (diff) | |
| download | qmk_firmware-4cc1edbb67beecd0081fb84d3b5365e55d1a41e1.tar.gz qmk_firmware-4cc1edbb67beecd0081fb84d3b5365e55d1a41e1.zip | |
Keyboard: Add QWERTYYdox keyboard (#3636)
* Add files via upload
* Update readme.md
* Update readme.md
* Update readme.md
* Add files via upload
* Delete split_util.h
* Delete split_util.c
* Delete serial.h
* Delete serial.c
* Delete matrix.c
* Delete i2c.h
* Delete i2c.c
* Update rules.mk
* Update config.h
* Update readme.md
* Update readme.md
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/qwertyydox/config.h | 90 | ||||
| -rw-r--r-- | keyboards/qwertyydox/info.json | 16 | ||||
| -rw-r--r-- | keyboards/qwertyydox/keymaps/default/config.h | 43 | ||||
| -rw-r--r-- | keyboards/qwertyydox/keymaps/default/keymap.c | 83 | ||||
| -rw-r--r-- | keyboards/qwertyydox/keymaps/default/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/qwertyydox/qwertyydox.c | 1 | ||||
| -rw-r--r-- | keyboards/qwertyydox/qwertyydox.h | 24 | ||||
| -rw-r--r-- | keyboards/qwertyydox/readme.md | 27 | ||||
| -rw-r--r-- | keyboards/qwertyydox/rev1/config.h | 91 | ||||
| -rw-r--r-- | keyboards/qwertyydox/rev1/rev1.c | 22 | ||||
| -rw-r--r-- | keyboards/qwertyydox/rev1/rev1.h | 37 | ||||
| -rw-r--r-- | keyboards/qwertyydox/rev1/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/qwertyydox/rules.mk | 69 |
13 files changed, 505 insertions, 0 deletions
diff --git a/keyboards/qwertyydox/config.h b/keyboards/qwertyydox/config.h new file mode 100644 index 000000000..5c4f8a6b2 --- /dev/null +++ b/keyboards/qwertyydox/config.h | |||
| @@ -0,0 +1,90 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2018 Ayden <aydenvis@gmail.com> | ||
| 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 REV1_CONFIG_H | ||
| 19 | #define REV1_CONFIG_H | ||
| 20 | |||
| 21 | #include "config_common.h" | ||
| 22 | |||
| 23 | /* USB Device descriptor parameter */ | ||
| 24 | #define VENDOR_ID 0xCEEB | ||
| 25 | #define PRODUCT_ID 0x1256 | ||
| 26 | #define DEVICE_VER 0x0100 | ||
| 27 | #define MANUFACTURER AYDENandDAD Youtube | ||
| 28 | #define PRODUCT QWERTYYdox | ||
| 29 | #define DESCRIPTION Split 45 percent ergonomic keyboard with two Y keys | ||
| 30 | |||
| 31 | /* key matrix size */ | ||
| 32 | // Rows are doubled-up | ||
| 33 | #define MATRIX_ROWS 8 | ||
| 34 | #define MATRIX_COLS 7 | ||
| 35 | |||
| 36 | // wiring of each half | ||
| 37 | #define MATRIX_ROW_PINS { B6, B2, B3, B1 } | ||
| 38 | #define MATRIX_COL_PINS { F7, F6, F5, C6, D7, D4, D1 } | ||
| 39 | |||
| 40 | /* COL2ROW or ROW2COL */ | ||
| 41 | #define DIODE_DIRECTION COL2ROW | ||
| 42 | |||
| 43 | /* define if matrix has ghost */ | ||
| 44 | //#define MATRIX_HAS_GHOST | ||
| 45 | |||
| 46 | /* number of backlight levels */ | ||
| 47 | // #define BACKLIGHT_LEVELS 3 | ||
| 48 | |||
| 49 | /* Set 0 if debouncing isn't needed */ | ||
| 50 | #define DEBOUNCING_DELAY 5 | ||
| 51 | |||
| 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 53 | #define LOCKING_SUPPORT_ENABLE | ||
| 54 | /* Locking resynchronize hack */ | ||
| 55 | #define LOCKING_RESYNC_ENABLE | ||
| 56 | |||
| 57 | /* key combination for command */ | ||
| 58 | #define IS_COMMAND() ( \ | ||
| 59 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 60 | ) | ||
| 61 | |||
| 62 | #define BACKLIGHT_PIN E6 | ||
| 63 | #define BACKLIGHT_LEVELS 5 | ||
| 64 | |||
| 65 | /* ws2812 RGB LED */ | ||
| 66 | #define RGB_DI_PIN D6 | ||
| 67 | #define RGBLIGHT_TIMER | ||
| 68 | #define RGBLED_NUM 12 // Number of LEDs | ||
| 69 | #define ws2812_PORTREG PORTD | ||
| 70 | #define ws2812_DDRREG DDRD | ||
| 71 | |||
| 72 | /* | ||
| 73 | * Feature disable options | ||
| 74 | * These options are also useful to firmware size reduction. | ||
| 75 | */ | ||
| 76 | |||
| 77 | /* disable debug print */ | ||
| 78 | // #define NO_DEBUG | ||
| 79 | |||
| 80 | /* disable print */ | ||
| 81 | // #define NO_PRINT | ||
| 82 | |||
| 83 | /* disable action features */ | ||
| 84 | //#define NO_ACTION_LAYER | ||
| 85 | //#define NO_ACTION_TAPPING | ||
| 86 | //#define NO_ACTION_ONESHOT | ||
| 87 | //#define NO_ACTION_MACRO | ||
| 88 | //#define NO_ACTION_FUNCTION | ||
| 89 | |||
| 90 | #endif | ||
diff --git a/keyboards/qwertyydox/info.json b/keyboards/qwertyydox/info.json new file mode 100644 index 000000000..0b762388e --- /dev/null +++ b/keyboards/qwertyydox/info.json | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "QWERTYYdox", | ||
| 3 | "manufacturer": "aydenvis", | ||
| 4 | "identifier": "0x1256", | ||
| 5 | "url": "", | ||
| 6 | "maintainer": "qmk", | ||
| 7 | "processor": "atmega32u4", | ||
| 8 | "width": 14, | ||
| 9 | "height": 4, | ||
| 10 | "layouts": { | ||
| 11 | "LAYOUT": { | ||
| 12 | "key_count": 53, | ||
| 13 | "layout": [{"label":"L00", "x":0, "y":0.375}, {"label":"L01", "x":1, "y":0.25}, {"label":"L02", "x":2, "y":0.125}, {"label":"L03", "x":3, "y":0}, {"label":"L04", "x":4, "y":0.125}, {"label":"L05", "x":5, "y":0.25}, {"label":"L06", "x":6, "y":0.5}, {"label":"R00", "x":9, "y":0.5}, {"label":"R01", "x":10, "y":0.25}, {"label":"R02", "x":11, "y":0.125}, {"label":"R03", "x":12, "y":0}, {"label":"R04", "x":13, "y":0.125}, {"label":"R05", "x":14, "y":0.25}, {"label":"R06", "x":15, "y":0.375}, {"label":"L10", "x":0, "y":1.375}, {"label":"L11", "x":1, "y":1.25}, {"label":"L12", "x":2, "y":1.125}, {"label":"L13", "x":3, "y":1}, {"label":"L14", "x":4, "y":1.125}, {"label":"L15", "x":5, "y":1.25}, {"label":"L16", "x":6, "y":1.5}, {"label":"R10", "x":9, "y":1.5}, {"label":"R11", "x":10, "y":1.25}, {"label":"R12", "x":11, "y":1.125}, {"label":"R13", "x":12, "y":1}, {"label":"R14", "x":13, "y":1.125}, {"label":"R15", "x":14, "y":1.25}, {"label":"R16", "x":15, "y":1.375}, {"label":"L20", "x":0, "y":2.375}, {"label":"L21", "x":1, "y":2.25}, {"label":"L22", "x":2, "y":2.125}, {"label":"L23", "x":3, "y":2}, {"label":"L24", "x":4, "y":2.125}, {"label":"L25", "x":5, "y":2.25}, {"label":"L26", "x":6.5, "y":3}, {"label":"R20", "x":8.5, "y":3}, {"label":"R21", "x":10, "y":2.25}, {"label":"R22", "x":11, "y":2.125}, {"label":"R23", "x":12, "y":2}, {"label":"R24", "x":13, "y":2.125}, {"label":"R25", "x":14, "y":2.25}, {"label":"R26", "x":15, "y":2.375}, {"label":"L30", "x":0, "y":3.375}, {"label":"L31", "x":1, "y":3.25}, {"label":"L32", "x":2, "y":3.125}, {"label":"L33", "x":3, "y":3}, {"label":"L34", "x":5.5, "y":4}, {"label":"L35", "x":6.5, "y":4}, {"label":"R30", "x":8.5, "y":4}, {"label":"R31", "x":9.5, "y":4}, {"label":"R32", "x":12, "y":3}, {"label":"R33", "x":13, "y":3.125}, {"label":"R34", "x":14, "y":3.25}, {"label":"R35", "x":15, "y":3.375}] | ||
| 14 | } | ||
| 15 | } | ||
| 16 | } | ||
diff --git a/keyboards/qwertyydox/keymaps/default/config.h b/keyboards/qwertyydox/keymaps/default/config.h new file mode 100644 index 000000000..6b4e3fe96 --- /dev/null +++ b/keyboards/qwertyydox/keymaps/default/config.h | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2018 Ayden <aydenvis@gmail.com | ||
| 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 | /* Use I2C or Serial, not both */ | ||
| 21 | |||
| 22 | #define USE_SERIAL | ||
| 23 | // #define USE_I2C | ||
| 24 | |||
| 25 | /* Select hand configuration */ | ||
| 26 | |||
| 27 | // #define MASTER_LEFT | ||
| 28 | #define MASTER_RIGHT | ||
| 29 | // #define EE_HANDS | ||
| 30 | |||
| 31 | #undef RGBLED_NUM | ||
| 32 | #define RGBLIGHT_ANIMATIONS | ||
| 33 | #define RGBLED_NUM 12 | ||
| 34 | #define RGBLIGHT_HUE_STEP 8 | ||
| 35 | #define RGBLIGHT_SAT_STEP 8 | ||
| 36 | #define RGBLIGHT_VAL_STEP 8 | ||
| 37 | |||
| 38 | #define MOUSEKEY_DELAY 150 | ||
| 39 | #define MOUSEKEY_INTERVAL 20 | ||
| 40 | #define MOUSEKEY_MAX_SPEED 10 | ||
| 41 | #define MOUSEKEY_TIME_TO_MAX 10 | ||
| 42 | #define MOUSEKEY_WHEEL_MAX_SPEED 8 | ||
| 43 | #define MOUSEKEY_WHEEL_TIME_TO_MAX 40 \ No newline at end of file | ||
diff --git a/keyboards/qwertyydox/keymaps/default/keymap.c b/keyboards/qwertyydox/keymaps/default/keymap.c new file mode 100644 index 000000000..5967c5146 --- /dev/null +++ b/keyboards/qwertyydox/keymaps/default/keymap.c | |||
| @@ -0,0 +1,83 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | extern keymap_config_t keymap_config; | ||
| 4 | |||
| 5 | #define _QWERTY 0 | ||
| 6 | #define _NUM 1 | ||
| 7 | #define _NAV 2 | ||
| 8 | enum custom_keycodes { | ||
| 9 | qwerty = SAFE_RANGE, | ||
| 10 | nav, | ||
| 11 | num, | ||
| 12 | EQL | ||
| 13 | }; | ||
| 14 | |||
| 15 | // #define KC_ KC_TRNS | ||
| 16 | #define __ KC_NO | ||
| 17 | #define NAV TO(2) | ||
| 18 | #define NUM TO(1) | ||
| 19 | #define ALPHA TO(0) | ||
| 20 | #define NPLUS KC_KP_PLUS | ||
| 21 | #define NMINUS KC_KP_MINUS | ||
| 22 | #define NSTAR KC_KP_ASTERISK | ||
| 23 | #define NSLASH KC_KP_SLASH | ||
| 24 | |||
| 25 | |||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | |||
| 28 | [_QWERTY] = LAYOUT( | ||
| 29 | //,--------+--------+--------+--------+--------+--------+--------. ,--------+--------+--------+--------+--------+--------+--------. | ||
| 30 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, | ||
| 31 | //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
| 32 | 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_BSLS, | ||
| 33 | //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
| 34 | KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, __, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC, | ||
| 35 | //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
| 36 | KC_LCTL, KC_LGUI, KC_LALT, qwerty, KC_ENT, KC_DEL, NUM, NAV, KC_SPC, KC_BSPC, KC_LEFT, KC_RALT, KC_RGUI, KC_RCTL | ||
| 37 | //`--------+--------+--------+--------+--------+--------+--------/ \--------+--------+--------+--------+--------+--------+--------' | ||
| 38 | ), | ||
| 39 | |||
| 40 | [_NUM] = LAYOUT( | ||
| 41 | //,--------+--------+--------+--------+--------+--------+--------. ,--------+--------+--------+--------+--------+--------+--------. | ||
| 42 | 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_PSCR, KC_NO, | ||
| 43 | //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
| 44 | 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, | ||
| 45 | //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
| 46 | KC_LSFT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, __, KC_NO, KC_PPLS, KC_PMNS, EQL, KC_PAST, KC_PSLS, | ||
| 47 | //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
| 48 | KC_LCTL, KC_ESC, KC_NO, num, KC_ENT, KC_LSFT, NAV, ALPHA, KC_SPC, KC_BSPC, KC_LEFT, KC_RALT, KC_RGUI, KC_RCTL | ||
| 49 | //`--------+--------+--------+--------+--------+--------+--------/ \--------+--------+--------+--------+--------+--------+--------' | ||
| 50 | ), | ||
| 51 | |||
| 52 | [_NAV] = LAYOUT( | ||
| 53 | //,--------+--------+--------+--------+--------+--------+--------. ,--------+--------+--------+--------+--------+--------+--------. | ||
| 54 | KC_ESC, KC_NO, KC_ACL0, KC_ACL1, KC_ACL2, KC_WH_L, KC_WH_R, KC_ESC, KC_NO, KC_UP, NSLASH, NSTAR, NMINUS, NPLUS, | ||
| 55 | //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
| 56 | KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_WH_U, KC_NO, KC_LEFT, KC_DOWN, KC_RIGHT,KC_NO, KC_NO, KC_NO, | ||
| 57 | //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
| 58 | KC_INS, KC_HOME, KC_PGUP, KC_BTN1, KC_BTN2, KC_WH_D, __, KC_MS_L, KC_MS_U, KC_MS_D, KC_MS_R, KC_NO, KC_NO, | ||
| 59 | //|--------+--------+--------+--------+--------+--------+--------| |--------+--------+--------+--------+--------+--------+--------| | ||
| 60 | KC_DEL, KC_END, KC_PGDN, nav, KC_LCTL, KC_SPC, ALPHA, NUM, KC_LSFT, KC_BSPC, KC_NO, KC_NO, KC_NO, RESET | ||
| 61 | //`--------+--------+--------+--------+--------+--------+--------/ \--------+--------+--------+--------+--------+--------+--------' | ||
| 62 | ) | ||
| 63 | }; | ||
| 64 | |||
| 65 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 66 | if (record->event.pressed) { | ||
| 67 | switch(keycode) { | ||
| 68 | case qwerty: | ||
| 69 | SEND_STRING("-QWERTY"); | ||
| 70 | return false; | ||
| 71 | case nav: | ||
| 72 | SEND_STRING("-NAV"); // selects all and copies | ||
| 73 | return false; | ||
| 74 | case num: | ||
| 75 | SEND_STRING("-NUM"); // selects all and copies | ||
| 76 | return false; | ||
| 77 | case EQL: | ||
| 78 | SEND_STRING("="); // selects all and copies | ||
| 79 | return false; | ||
| 80 | } | ||
| 81 | } | ||
| 82 | return true; | ||
| 83 | }; | ||
diff --git a/keyboards/qwertyydox/keymaps/default/rules.mk b/keyboards/qwertyydox/keymaps/default/rules.mk new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/keyboards/qwertyydox/keymaps/default/rules.mk | |||
| @@ -0,0 +1 @@ | |||
diff --git a/keyboards/qwertyydox/qwertyydox.c b/keyboards/qwertyydox/qwertyydox.c new file mode 100644 index 000000000..53c3eca64 --- /dev/null +++ b/keyboards/qwertyydox/qwertyydox.c | |||
| @@ -0,0 +1 @@ | |||
| #include "qwertyydox.h" | |||
diff --git a/keyboards/qwertyydox/qwertyydox.h b/keyboards/qwertyydox/qwertyydox.h new file mode 100644 index 000000000..57bd0dc54 --- /dev/null +++ b/keyboards/qwertyydox/qwertyydox.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | #ifndef QWERTYYDOX_H | ||
| 2 | #define QWERTYYDOX_H | ||
| 3 | |||
| 4 | #ifdef KEYBOARD_qwertyydox_rev1 | ||
| 5 | #include "rev1.h" | ||
| 6 | #endif | ||
| 7 | |||
| 8 | #include "quantum.h" | ||
| 9 | |||
| 10 | // Used to create a keymap using only KC_ prefixed keys | ||
| 11 | #define LAYOUT_kc( \ | ||
| 12 | L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ | ||
| 13 | L10, L11, L12, L13, L14, L15, L16, R10, R11, R12, R13, R14, R15, R16, \ | ||
| 14 | L20, L21, L22, L23, L24, L25, L26, R20, R21, R22, R23, R24, R25, R26, \ | ||
| 15 | L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35 \ | ||
| 16 | ) \ | ||
| 17 | LAYOUT( \ | ||
| 18 | KC_##L00, KC_##L01, KC_##L02, KC_##L03, KC_##L04, KC_##L05, KC_##L06, KC_##R00, KC_##R01, KC_##R02, KC_##R03, KC_##R04, KC_##R05, KC_##R06, \ | ||
| 19 | KC_##L10, KC_##L11, KC_##L12, KC_##L13, KC_##L14, KC_##L15, KC_##L16, KC_##R10, KC_##R11, KC_##R12, KC_##R13, KC_##R14, KC_##R15, KC_##R16, \ | ||
| 20 | KC_##L20, KC_##L21, KC_##L22, KC_##L23, KC_##L24, KC_##L25, KC_##L26, KC_##R20, KC_##R21, KC_##R22, KC_##R23, KC_##R24, KC_##R25, KC_##R26, \ | ||
| 21 | KC_##L30, KC_##L31, KC_##L32, KC_##L33, KC_##L34, KC_##L35, KC_##R30, KC_##R31, KC_##R32, KC_##R33, KC_##R34, KC_##R35 \ | ||
| 22 | ) | ||
| 23 | |||
| 24 | #endif \ No newline at end of file | ||
diff --git a/keyboards/qwertyydox/readme.md b/keyboards/qwertyydox/readme.md new file mode 100644 index 000000000..1fa984e03 --- /dev/null +++ b/keyboards/qwertyydox/readme.md | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | QWERTYYdox | ||
| 2 | ==== | ||
| 3 | |||
| 4 |  | ||
| 5 | |||
| 6 | |||
| 7 | A split ergo 4x7 keyboard with 3 thumb keys and 2 Y keys. | ||
| 8 | |||
| 9 | **Status** The QWERTYYdox is a personal project, however it is completely functional. | ||
| 10 | |||
| 11 | Keyboard Maintainer: /u/aydenvis | ||
| 12 | |||
| 13 | Hardware Supported: Pro Micro (ATmega32U4) | ||
| 14 | |||
| 15 | Hardware Availability: The whole thing is handwired with plates cut by [/u/JOlimon](stratakb.com) | ||
| 16 | |||
| 17 | |||
| 18 | Make example for this keyboard (after setting up your build environment): | ||
| 19 | |||
| 20 | make qwertyydox/rev1:default | ||
| 21 | |||
| 22 | Example of flashing this keyboard: | ||
| 23 | |||
| 24 | make qwertyydox/rev1:default:avrdude | ||
| 25 | |||
| 26 | 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. | ||
| 27 | |||
diff --git a/keyboards/qwertyydox/rev1/config.h b/keyboards/qwertyydox/rev1/config.h new file mode 100644 index 000000000..c5c4daa3d --- /dev/null +++ b/keyboards/qwertyydox/rev1/config.h | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2018 Ayden <aydenvis@gmail.com> | ||
| 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 REV1_CONFIG_H | ||
| 19 | #define REV1_CONFIG_H | ||
| 20 | |||
| 21 | #include QMK_KEYBOARD_CONFIG_H | ||
| 22 | |||
| 23 | /* USB Device descriptor parameter */ | ||
| 24 | #define VENDOR_ID 0xCEEB | ||
| 25 | #define PRODUCT_ID 0x1256 | ||
| 26 | #define DEVICE_VER 0x0100 | ||
| 27 | #define MANUFACTURER AYDENandDAD | ||
| 28 | #define PRODUCT QWERTYdox Keyboard | ||
| 29 | #define DESCRIPTION Split 40 percent keyboard | ||
| 30 | |||
| 31 | /* key matrix size */ | ||
| 32 | // Rows are doubled-up | ||
| 33 | #define MATRIX_ROWS 8 | ||
| 34 | #define MATRIX_COLS 7 | ||
| 35 | |||
| 36 | // wiring of each half | ||
| 37 | #define MATRIX_ROW_PINS { B6, B2, B3, B1 } | ||
| 38 | #define MATRIX_COL_PINS { F7, F6, F5, C6, D7, D4, D1 } | ||
| 39 | |||
| 40 | /* COL2ROW or ROW2COL */ | ||
| 41 | #define DIODE_DIRECTION COL2ROW | ||
| 42 | |||
| 43 | /* define if matrix has ghost */ | ||
| 44 | //#define MATRIX_HAS_GHOST | ||
| 45 | |||
| 46 | /* number of backlight levels */ | ||
| 47 | // #define BACKLIGHT_LEVELS 3 | ||
| 48 | |||
| 49 | /* Set 0 if debouncing isn't needed */ | ||
| 50 | #define DEBOUNCING_DELAY 5 | ||
| 51 | |||
| 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 53 | #define LOCKING_SUPPORT_ENABLE | ||
| 54 | /* Locking resynchronize hack */ | ||
| 55 | #define LOCKING_RESYNC_ENABLE | ||
| 56 | |||
| 57 | /* key combination for command */ | ||
| 58 | #define IS_COMMAND() ( \ | ||
| 59 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
| 60 | ) | ||
| 61 | |||
| 62 | #define BACKLIGHT_PIN E6 | ||
| 63 | #define BACKLIGHT_LEVELS 5 | ||
| 64 | |||
| 65 | /* ws2812 RGB LED */ | ||
| 66 | #define RGB_DI_PIN D6 | ||
| 67 | #define RGBLIGHT_TIMER | ||
| 68 | #define RGBLED_NUM 12 // Number of LEDs | ||
| 69 | #define ws2812_PORTREG PORTD | ||
| 70 | #define ws2812_DDRREG DDRD | ||
| 71 | |||
| 72 | |||
| 73 | /* | ||
| 74 | * Feature disable options | ||
| 75 | * These options are also useful to firmware size reduction. | ||
| 76 | */ | ||
| 77 | |||
| 78 | /* disable debug print */ | ||
| 79 | // #define NO_DEBUG | ||
| 80 | |||
| 81 | /* disable print */ | ||
| 82 | // #define NO_PRINT | ||
| 83 | |||
| 84 | /* disable action features */ | ||
| 85 | //#define NO_ACTION_LAYER | ||
| 86 | //#define NO_ACTION_TAPPING | ||
| 87 | //#define NO_ACTION_ONESHOT | ||
| 88 | //#define NO_ACTION_MACRO | ||
| 89 | //#define NO_ACTION_FUNCTION | ||
| 90 | |||
| 91 | #endif | ||
diff --git a/keyboards/qwertyydox/rev1/rev1.c b/keyboards/qwertyydox/rev1/rev1.c new file mode 100644 index 000000000..609c479eb --- /dev/null +++ b/keyboards/qwertyydox/rev1/rev1.c | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | #include "rev1.h" | ||
| 2 | |||
| 3 | |||
| 4 | #ifdef SSD1306OLED | ||
| 5 | void led_set_kb(uint8_t usb_led) { | ||
| 6 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
| 7 | led_set_user(usb_led); | ||
| 8 | } | ||
| 9 | #endif | ||
| 10 | |||
| 11 | void matrix_init_kb(void) { | ||
| 12 | |||
| 13 | // // green led on | ||
| 14 | // DDRD |= (1<<5); | ||
| 15 | // PORTD &= ~(1<<5); | ||
| 16 | |||
| 17 | // // orange led on | ||
| 18 | // DDRB |= (1<<0); | ||
| 19 | // PORTB &= ~(1<<0); | ||
| 20 | |||
| 21 | matrix_init_user(); | ||
| 22 | }; | ||
diff --git a/keyboards/qwertyydox/rev1/rev1.h b/keyboards/qwertyydox/rev1/rev1.h new file mode 100644 index 000000000..d620e6210 --- /dev/null +++ b/keyboards/qwertyydox/rev1/rev1.h | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | #ifndef REV1_H | ||
| 2 | #define REV1_H | ||
| 3 | |||
| 4 | #include "qwertyydox.h" | ||
| 5 | |||
| 6 | //void promicro_bootloader_jmp(bool program); | ||
| 7 | #include "quantum.h" | ||
| 8 | |||
| 9 | |||
| 10 | #ifdef USE_I2C | ||
| 11 | #include <stddef.h> | ||
| 12 | #ifdef __AVR__ | ||
| 13 | #include <avr/io.h> | ||
| 14 | #include <avr/interrupt.h> | ||
| 15 | #endif | ||
| 16 | #endif | ||
| 17 | |||
| 18 | //void promicro_bootloader_jmp(bool program); | ||
| 19 | |||
| 20 | #define LAYOUT( \ | ||
| 21 | L00, L01, L02, L03, L04, L05, L06, R00, R01, R02, R03, R04, R05, R06, \ | ||
| 22 | L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, R16, \ | ||
| 23 | L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, R26, \ | ||
| 24 | L30, L31, L32, L33, L34, L35, L36, R30, R31, R32, R33, R34, R35, R36 \ | ||
| 25 | ) \ | ||
| 26 | { \ | ||
| 27 | { L00, L01, L02, L03, L04, L05, L06 }, \ | ||
| 28 | { L10, L11, L12, L13, L14, L15, KC_NO }, \ | ||
| 29 | { L20, L21, L22, L23, L24, L25, KC_NO }, \ | ||
| 30 | { L30, L31, L32, L33, L34, L35, L36 }, \ | ||
| 31 | { R06, R05, R04, R03, R02, R01, R00 }, \ | ||
| 32 | { R16, R15, R14, R13, R12, R11, R10 }, \ | ||
| 33 | { R26, R25, R24, R23, R22, R21, R20, }, \ | ||
| 34 | { R36, R35, R34, R33, R32, R31, R30 } \ | ||
| 35 | } | ||
| 36 | |||
| 37 | #endif | ||
diff --git a/keyboards/qwertyydox/rev1/rules.mk b/keyboards/qwertyydox/rev1/rules.mk new file mode 100644 index 000000000..7b30c0bef --- /dev/null +++ b/keyboards/qwertyydox/rev1/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| BACKLIGHT_ENABLE = no | |||
diff --git a/keyboards/qwertyydox/rules.mk b/keyboards/qwertyydox/rules.mk new file mode 100644 index 000000000..d8a287bbc --- /dev/null +++ b/keyboards/qwertyydox/rules.mk | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | # MCU name | ||
| 2 | #MCU = at90usb1287 | ||
| 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 | # LUFA specific | ||
| 20 | # | ||
| 21 | # Target architecture (see library "Board Types" documentation). | ||
| 22 | ARCH = AVR8 | ||
| 23 | |||
| 24 | # Input clock frequency. | ||
| 25 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 26 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 27 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 28 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 29 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 30 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 31 | # source code. | ||
| 32 | # | ||
| 33 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 34 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 35 | F_USB = $(F_CPU) | ||
| 36 | |||
| 37 | # Bootloader | ||
| 38 | # This definition is optional, and if your keyboard supports multiple bootloaders of | ||
| 39 | # different sizes, comment this out, and the correct address will be loaded | ||
| 40 | # automatically (+60). See bootloader.mk for all options. | ||
| 41 | BOOTLOADER = caterina | ||
| 42 | |||
| 43 | # Interrupt driven control endpoint task(+60) | ||
| 44 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 45 | |||
| 46 | # Build Options | ||
| 47 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 48 | # the appropriate keymap folder that will get included automatically | ||
| 49 | # | ||
| 50 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 51 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
| 52 | EXTRAKEY_ENABLE = no # Audio control and System control(+450) | ||
| 53 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 54 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 55 | NKRO_ENABLE = no # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 56 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 57 | MIDI_ENABLE = no # MIDI controls | ||
| 58 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 59 | UNICODE_ENABLE = no # Unicode | ||
| 60 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 61 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 62 | SUBPROJECT_rev1 = yes | ||
| 63 | USE_I2C = yes # I2C is used between the sides | ||
| 64 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 65 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 66 | |||
| 67 | SPLIT_KEYBOARD = yes | ||
| 68 | |||
| 69 | DEFAULT_FOLDER = qwertyydox/rev1 | ||
