diff options
Diffstat (limited to 'keyboards/jagdpietr')
| -rw-r--r-- | keyboards/jagdpietr/drakon/config.h | 114 | ||||
| -rw-r--r-- | keyboards/jagdpietr/drakon/drakon.c | 225 | ||||
| -rw-r--r-- | keyboards/jagdpietr/drakon/drakon.h | 91 | ||||
| -rw-r--r-- | keyboards/jagdpietr/drakon/info.json | 15 | ||||
| -rw-r--r-- | keyboards/jagdpietr/drakon/keymaps/default/keymap.c | 49 | ||||
| -rw-r--r-- | keyboards/jagdpietr/drakon/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/jagdpietr/drakon/keymaps/wkl/keymap.c | 50 | ||||
| -rw-r--r-- | keyboards/jagdpietr/drakon/keymaps/wkl/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/jagdpietr/drakon/readme.md | 14 | ||||
| -rw-r--r-- | keyboards/jagdpietr/drakon/rules.mk | 27 |
10 files changed, 587 insertions, 0 deletions
diff --git a/keyboards/jagdpietr/drakon/config.h b/keyboards/jagdpietr/drakon/config.h new file mode 100644 index 000000000..f9565e41a --- /dev/null +++ b/keyboards/jagdpietr/drakon/config.h | |||
| @@ -0,0 +1,114 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 jagdpietr | ||
| 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 0xFEED | ||
| 24 | #define PRODUCT_ID 0x7776 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER jagdpietr | ||
| 27 | #define PRODUCT drakon | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 6 | ||
| 31 | #define MATRIX_COLS 14 | ||
| 32 | |||
| 33 | /* | ||
| 34 | * Keyboard Matrix Assignments | ||
| 35 | * | ||
| 36 | * Change this to how you wired your keyboard | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | #define MATRIX_ROW_PINS { C7, B5, B6, B0, B1, F1 } | ||
| 44 | #define MATRIX_COL_PINS { F4, F5, F6, F7, C6, B2, B3, B7, D3, D5, D4, D6, D7, B4 } | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL*/ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | #define ENCODERS_PAD_A { D2 } | ||
| 51 | #define ENCODERS_PAD_B { F0 } | ||
| 52 | |||
| 53 | /* | ||
| 54 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
| 55 | */ | ||
| 56 | #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
| 57 | |||
| 58 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 59 | #define DEBOUNCE 5 | ||
| 60 | |||
| 61 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 62 | //#define MATRIX_HAS_GHOST | ||
| 63 | |||
| 64 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 65 | #define LOCKING_SUPPORT_ENABLE | ||
| 66 | /* Locking resynchronize hack */ | ||
| 67 | #define LOCKING_RESYNC_ENABLE | ||
| 68 | |||
| 69 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 70 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 71 | */ | ||
| 72 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 73 | |||
| 74 | /* | ||
| 75 | * Force NKRO | ||
| 76 | * | ||
| 77 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 78 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 79 | * makefile for this to work.) | ||
| 80 | * | ||
| 81 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 82 | * until the next keyboard reset. | ||
| 83 | * | ||
| 84 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 85 | * fully operational during normal computer usage. | ||
| 86 | * | ||
| 87 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 88 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 89 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 90 | * power-up. | ||
| 91 | * | ||
| 92 | */ | ||
| 93 | //#define FORCE_NKRO | ||
| 94 | |||
| 95 | |||
| 96 | /* | ||
| 97 | * Feature disable options | ||
| 98 | * These options are also useful to firmware size reduction. | ||
| 99 | */ | ||
| 100 | |||
| 101 | /* disable debug print */ | ||
| 102 | //#define NO_DEBUG | ||
| 103 | |||
| 104 | /* disable print */ | ||
| 105 | //#define NO_PRINT | ||
| 106 | |||
| 107 | /* disable action features */ | ||
| 108 | //#define NO_ACTION_LAYER | ||
| 109 | //#define NO_ACTION_TAPPING | ||
| 110 | //#define NO_ACTION_ONESHOT | ||
| 111 | |||
| 112 | /* disable these deprecated features by default */ | ||
| 113 | #define NO_ACTION_MACRO | ||
| 114 | #define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/jagdpietr/drakon/drakon.c b/keyboards/jagdpietr/drakon/drakon.c new file mode 100644 index 000000000..ca25ac317 --- /dev/null +++ b/keyboards/jagdpietr/drakon/drakon.c | |||
| @@ -0,0 +1,225 @@ | |||
| 1 | /* Copyright 2020 jagdpietr | ||
| 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 | #include "drakon.h" | ||
| 18 | |||
| 19 | char wpm_str[10]; | ||
| 20 | |||
| 21 | __attribute__((weak)) | ||
| 22 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 23 | if (clockwise) { | ||
| 24 | tap_code(KC_VOLU); | ||
| 25 | } else { | ||
| 26 | tap_code(KC_VOLD); | ||
| 27 | } | ||
| 28 | } | ||
| 29 | |||
| 30 | #ifdef OLED_DRIVER_ENABLE | ||
| 31 | |||
| 32 | // Defines names for use in layer keycodes and the keymap | ||
| 33 | enum Layer_names { | ||
| 34 | _Base, | ||
| 35 | _FN, | ||
| 36 | _Lyr2 | ||
| 37 | }; | ||
| 38 | |||
| 39 | __attribute__((weak)) | ||
| 40 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | ||
| 41 | return OLED_ROTATION_90; // flips the display 90 degrees if offhand | ||
| 42 | |||
| 43 | } | ||
| 44 | |||
| 45 | static void render_status(void) { | ||
| 46 | //Host Keyboard Layer Status | ||
| 47 | oled_set_cursor(0,10); | ||
| 48 | oled_write_P(PSTR("Lyr: "), false); | ||
| 49 | |||
| 50 | switch (get_highest_layer(layer_state)) { | ||
| 51 | case _Base: | ||
| 52 | oled_write_P(PSTR("Base\n"), false); | ||
| 53 | break; | ||
| 54 | case _FN: | ||
| 55 | oled_write_P(PSTR("FN\n"), false); | ||
| 56 | break; | ||
| 57 | case _Lyr2: | ||
| 58 | oled_write_P(PSTR("Lyr2\n"), false); | ||
| 59 | break; | ||
| 60 | default: | ||
| 61 | // Or use the write_ln shortcut over adding '\n' to the end of your string | ||
| 62 | oled_write_ln_P(PSTR("Undefined"), false); | ||
| 63 | } | ||
| 64 | // Host Keyboard LED Status | ||
| 65 | led_t led_state = host_keyboard_led_state(); | ||
| 66 | oled_set_cursor(0,12); | ||
| 67 | oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false); | ||
| 68 | |||
| 69 | } | ||
| 70 | |||
| 71 | // WPM-responsive animation stuff here | ||
| 72 | #define IDLE_FRAMES 5 | ||
| 73 | #define IDLE_SPEED 40 // below this wpm value your animation will idle | ||
| 74 | |||
| 75 | // #define PREP_FRAMES 1 // uncomment if >1 | ||
| 76 | |||
| 77 | #define TAP_FRAMES 2 | ||
| 78 | #define TAP_SPEED 60 // above this wpm value typing animation to triggere | ||
| 79 | |||
| 80 | #define ANIM_FRAME_DURATION 200 // how long each frame lasts in ms | ||
| 81 | // #define SLEEP_TIMER 60000 // should sleep after this period of 0 wpm, needs fixing | ||
| 82 | #define ANIM_SIZE 128 // number of bytes in array, minimize for adequate firmware size, max is 1024 | ||
| 83 | |||
| 84 | uint32_t anim_timer = 0; | ||
| 85 | uint32_t anim_sleep = 0; | ||
| 86 | uint8_t current_idle_frame = 0; | ||
| 87 | // uint8_t current_prep_frame = 0; // uncomment if PREP_FRAMES >1 | ||
| 88 | uint8_t current_tap_frame = 0; | ||
| 89 | |||
| 90 | // Images credit j-inc(/James Incandenza) and pixelbenny. Credit to obosob for initial animation approach. | ||
| 91 | static void render_anim(void) { | ||
| 92 | static const char PROGMEM idle[IDLE_FRAMES][ANIM_SIZE] = { | ||
| 93 | { | ||
| 94 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xc0, 0x60, 0x30, 0x18, 0x60, | ||
| 95 | 0xc0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 96 | 0x00, 0x00, 0x00, 0xc0, 0x20, 0x10, 0x0c, 0x06, 0x03, 0x81, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, | ||
| 97 | 0x00, 0x00, 0x01, 0x01, 0x03, 0x06, 0x04, 0x0c, 0x18, 0x10, 0x18, 0x08, 0xf8, 0x00, 0x00, 0x00, | ||
| 98 | 0x00, 0x3e, 0x23, 0x20, 0x20, 0x20, 0x30, 0x10, 0x10, 0x10, 0x30, 0x21, 0x21, 0x63, 0x43, 0x42, | ||
| 99 | 0xc0, 0x80, 0x88, 0x8c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x73, 0xc0, 0x00, 0x00, | ||
| 100 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 101 | 0x00, 0x00, 0x05, 0x08, 0x08, 0x08, 0x08, 0x04, 0x04, 0x06, 0x04, 0x0c, 0x08, 0x0b, 0x08, 0x00 | ||
| 102 | }, | ||
| 103 | { | ||
| 104 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, | ||
| 105 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 106 | 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x60, 0x30, 0x10, 0x08, 0x04, 0x04, 0x06, 0x01, 0x01, 0x06, | ||
| 107 | 0x04, 0x0c, 0x08, 0x18, 0x10, 0x30, 0x20, 0x40, 0xc0, 0x80, 0x80, 0x80, 0xc0, 0xc0, 0x00, 0x00, | ||
| 108 | 0xe0, 0x98, 0x04, 0x03, 0x01, 0x80, 0x80, 0x80, 0x80, 0x84, 0x86, 0x80, 0x08, 0x18, 0x10, 0x00, | ||
| 109 | 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x78, 0x87, 0x00, 0x00, | ||
| 110 | 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x02, | ||
| 111 | 0x02, 0x02, 0x0e, 0x3e, 0x20, 0x20, 0x20, 0x10, 0x10, 0x18, 0x18, 0x10, 0x10, 0x33, 0x3e, 0x00 | ||
| 112 | }, | ||
| 113 | { | ||
| 114 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xc0, 0x60, 0x30, 0x18, 0x60, | ||
| 115 | 0xc0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 116 | 0x00, 0x00, 0x00, 0xc0, 0x20, 0x10, 0x0c, 0x06, 0x03, 0x81, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, | ||
| 117 | 0x00, 0x00, 0x01, 0x01, 0x03, 0x06, 0x04, 0x0c, 0x18, 0x10, 0x18, 0x08, 0xf8, 0x00, 0x00, 0x00, | ||
| 118 | 0x00, 0x3e, 0x23, 0x20, 0x20, 0x20, 0x30, 0x10, 0x10, 0x10, 0x30, 0x21, 0x21, 0x63, 0x43, 0x42, | ||
| 119 | 0xc0, 0x80, 0x88, 0x8c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x73, 0xc0, 0x00, 0x00, | ||
| 120 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 121 | 0x00, 0x00, 0x05, 0x08, 0x08, 0x08, 0x08, 0x04, 0x04, 0x06, 0x04, 0x0c, 0x08, 0x0b, 0x08, 0x00 | ||
| 122 | }, | ||
| 123 | { | ||
| 124 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, | ||
| 125 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 126 | 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x60, 0x30, 0x10, 0x08, 0x04, 0x04, 0x06, 0x01, 0x01, 0x06, | ||
| 127 | 0x04, 0x0c, 0x08, 0x18, 0x10, 0x30, 0x20, 0x40, 0xc0, 0x80, 0x80, 0x80, 0xc0, 0xc0, 0x00, 0x00, | ||
| 128 | 0xe0, 0x98, 0x04, 0x03, 0x01, 0x80, 0x80, 0x80, 0x80, 0x84, 0x86, 0x80, 0x08, 0x18, 0x10, 0x00, | ||
| 129 | 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x78, 0x87, 0x00, 0x00, | ||
| 130 | 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x02, | ||
| 131 | 0x02, 0x02, 0x0e, 0x3e, 0x20, 0x20, 0x20, 0x10, 0x10, 0x18, 0x18, 0x10, 0x10, 0x33, 0x3e, 0x00 | ||
| 132 | }, | ||
| 133 | { | ||
| 134 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xc0, 0x60, 0x30, 0x18, 0x60, | ||
| 135 | 0xc0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 136 | 0x00, 0x00, 0x00, 0xc0, 0x20, 0x10, 0x0c, 0x06, 0x03, 0x81, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, | ||
| 137 | 0x00, 0x00, 0x01, 0x01, 0x03, 0x06, 0x04, 0x0c, 0x18, 0x10, 0x18, 0x08, 0xf8, 0x00, 0x00, 0x00, | ||
| 138 | 0x00, 0x3e, 0x23, 0x20, 0x20, 0x20, 0x30, 0x10, 0x10, 0x10, 0x30, 0x21, 0x21, 0x63, 0x43, 0x42, | ||
| 139 | 0xc0, 0x80, 0x88, 0x8c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x73, 0xc0, 0x00, 0x00, | ||
| 140 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 141 | 0x00, 0x00, 0x05, 0x08, 0x08, 0x08, 0x08, 0x04, 0x04, 0x06, 0x04, 0x0c, 0x08, 0x0b, 0x08, 0x00 | ||
| 142 | } | ||
| 143 | }; | ||
| 144 | static const char PROGMEM prep[][ANIM_SIZE] = { | ||
| 145 | { | ||
| 146 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xc0, 0x40, 0x30, 0x18, 0x0c, 0x38, | ||
| 147 | 0x60, 0xc0, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 148 | 0x00, 0xf8, 0x18, 0x0c, 0x0c, 0x38, 0x0c, 0x06, 0x03, 0x01, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, | ||
| 149 | 0x00, 0x00, 0x00, 0x01, 0x03, 0x02, 0x06, 0x04, 0x08, 0x18, 0x30, 0x18, 0x18, 0xf8, 0x00, 0x00, | ||
| 150 | 0x00, 0x07, 0x0c, 0x18, 0x18, 0x10, 0x10, 0x10, 0x20, 0x60, 0x61, 0x41, 0x42, 0xc2, 0x86, 0x84, | ||
| 151 | 0x80, 0x00, 0x00, 0x18, 0x10, 0xfc, 0x02, 0x02, 0x04, 0x1c, 0x00, 0x00, 0x3e, 0xe1, 0x00, 0x00, | ||
| 152 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, | ||
| 153 | 0x01, 0x03, 0x03, 0x02, 0x06, 0x07, 0x06, 0x0c, 0x0c, 0x0c, 0x10, 0x10, 0x30, 0x20, 0x3f, 0x00 | ||
| 154 | } | ||
| 155 | }; | ||
| 156 | static const char PROGMEM tap[TAP_FRAMES][ANIM_SIZE] = { | ||
| 157 | { | ||
| 158 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xc0, 0x40, 0x30, 0x18, 0x0c, 0x38, | ||
| 159 | 0x60, 0xc0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 160 | 0xfe, 0xfe, 0x80, 0xc0, 0x60, 0x18, 0x0c, 0x02, 0x01, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 161 | 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0x06, 0x04, 0x08, 0x10, 0x10, 0x18, 0x08, 0xfc, 0x00, 0x00, | ||
| 162 | 0xf9, 0xff, 0xe3, 0xe0, 0xc0, 0x40, 0x60, 0x20, 0x20, 0x60, 0x41, 0x40, 0xc3, 0x82, 0x86, 0x04, | ||
| 163 | 0x00, 0x00, 0x00, 0x18, 0x18, 0xfc, 0x06, 0x06, 0x04, 0x38, 0x00, 0x00, 0x1c, 0xe7, 0x00, 0x00, | ||
| 164 | 0xf0, 0xfc, 0x03, 0x00, 0x01, 0x07, 0x7c, 0x78, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, | ||
| 165 | 0x01, 0x03, 0x02, 0x02, 0x06, 0x07, 0x04, 0x0c, 0x08, 0x08, 0x18, 0x10, 0x30, 0x21, 0x3f, 0x38 | ||
| 166 | }, | ||
| 167 | { | ||
| 168 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x40, 0x60, 0x30, 0x18, 0x0c, 0x38, | ||
| 169 | 0x60, 0x40, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 170 | 0xe0, 0xf8, 0x04, 0x04, 0x0c, 0x3c, 0x06, 0x03, 0x01, 0xc0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 171 | 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0x02, 0x06, 0x0c, 0x18, 0x98, 0x08, 0x0c, 0xfc, 0x00, 0x00, | ||
| 172 | 0x03, 0x07, 0x04, 0x0c, 0x08, 0x08, 0x18, 0x10, 0x10, 0x30, 0x20, 0x20, 0x61, 0x43, 0x43, 0xc2, | ||
| 173 | 0x80, 0x80, 0x80, 0x8c, 0x80, 0x00, 0x00, 0xe0, 0xf8, 0x7e, 0x3f, 0x1f, 0x1f, 0x7d, 0x80, 0x00, | ||
| 174 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xe0, 0xe0, 0xe0, 0xf0, 0xf0, 0x70, | ||
| 175 | 0x30, 0x38, 0x19, 0x0f, 0x1e, 0x1c, 0x79, 0xf8, 0xe8, 0xc4, 0x84, 0x08, 0x08, 0x18, 0x1f, 0x1c | ||
| 176 | }, | ||
| 177 | }; | ||
| 178 | |||
| 179 | //assumes 1 frame prep stage | ||
| 180 | void animation_phase(void) { | ||
| 181 | if(get_current_wpm() <=IDLE_SPEED){ | ||
| 182 | current_idle_frame = (current_idle_frame + 1) % IDLE_FRAMES; | ||
| 183 | oled_write_raw_P(idle[abs((IDLE_FRAMES-1)-current_idle_frame)], ANIM_SIZE); | ||
| 184 | } | ||
| 185 | if(get_current_wpm() >IDLE_SPEED && get_current_wpm() <TAP_SPEED){ | ||
| 186 | // oled_write_raw_P(prep[abs((PREP_FRAMES-1)-current_prep_frame)], ANIM_SIZE); // uncomment if IDLE_FRAMES >1 | ||
| 187 | oled_write_raw_P(prep[0], ANIM_SIZE); // remove if IDLE_FRAMES >1 | ||
| 188 | } | ||
| 189 | if(get_current_wpm() >=TAP_SPEED){ | ||
| 190 | current_tap_frame = (current_tap_frame + 1) % TAP_FRAMES; | ||
| 191 | oled_write_raw_P(tap[abs((TAP_FRAMES-1)-current_tap_frame)], ANIM_SIZE); | ||
| 192 | } | ||
| 193 | } | ||
| 194 | if(get_current_wpm() != 000) { | ||
| 195 | oled_on(); // not essential but turns on animation OLED with any alpha keypress | ||
| 196 | if(timer_elapsed32(anim_timer) > ANIM_FRAME_DURATION) { | ||
| 197 | anim_timer = timer_read32(); | ||
| 198 | animation_phase(); | ||
| 199 | } | ||
| 200 | anim_sleep = timer_read32(); | ||
| 201 | } else { | ||
| 202 | if(timer_elapsed32(anim_sleep) > OLED_TIMEOUT) { | ||
| 203 | oled_off(); | ||
| 204 | } else { | ||
| 205 | if(timer_elapsed32(anim_timer) > ANIM_FRAME_DURATION) { | ||
| 206 | anim_timer = timer_read32(); | ||
| 207 | animation_phase(); | ||
| 208 | } | ||
| 209 | } | ||
| 210 | } | ||
| 211 | } | ||
| 212 | __attribute__((weak)) | ||
| 213 | void oled_task_user(void) { | ||
| 214 | |||
| 215 | render_anim(); | ||
| 216 | oled_set_cursor(0,6); | ||
| 217 | sprintf(wpm_str, " WPM: %03d", get_current_wpm()); | ||
| 218 | oled_set_cursor(0,5); | ||
| 219 | oled_write(wpm_str, false); | ||
| 220 | |||
| 221 | render_status(); | ||
| 222 | |||
| 223 | } | ||
| 224 | |||
| 225 | #endif | ||
diff --git a/keyboards/jagdpietr/drakon/drakon.h b/keyboards/jagdpietr/drakon/drakon.h new file mode 100644 index 000000000..68315914d --- /dev/null +++ b/keyboards/jagdpietr/drakon/drakon.h | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | /* Copyright 2020 jagdpietr | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | #define XXX KC_NO | ||
| 22 | |||
| 23 | /* This is a shortcut to help you visually see your layout. | ||
| 24 | * | ||
| 25 | * The first section contains all of the arguments representing the physical | ||
| 26 | * layout of the board and position of the keys. | ||
| 27 | * | ||
| 28 | * The second converts the arguments into a two-dimensional array which | ||
| 29 | * represents the switch matrix. | ||
| 30 | */ | ||
| 31 | |||
| 32 | |||
| 33 | /* LAYOUT_ansi | ||
| 34 | * ,---------------------------------------------------------. .---. | ||
| 35 | * |00 |01 |02 |03 |04 |05 |06 |07 |08 |09 |0A |0B |0C |0D|2D| |5C | | ||
| 36 | * |---------------------------------------------------------| ,-----------. | ||
| 37 | * |10 |11 |12 |13 |14 |15 |16 |17 |18 |19 |1A |1B |1C |1D | |5A |5D |59 | | ||
| 38 | * |---------------------------------------------------------| `-----------' | ||
| 39 | * |20 |21 |22 |23 |24 |25 |26 |27 |28 |29 |2A |2B |2C | |5B | | ||
| 40 | * |---------------------------------------------------------. `---' | ||
| 41 | * |30 |31 |32 |33 |34 |35 |36 |37 |38 |39 |3A |3B | |3C | | ||
| 42 | * |--------------------------------------------------'--`---'---. | ||
| 43 | * |40 |41 |42 | 43 |49 |4A | |4B |4C |4D | | ||
| 44 | * `----------------------------------------------' `-----------' | ||
| 45 | */ | ||
| 46 | |||
| 47 | #define LAYOUT_ansi( \ | ||
| 48 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K2D, K5C, \ | ||
| 49 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K5A, K5D, K59, \ | ||
| 50 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K5B, \ | ||
| 51 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, \ | ||
| 52 | K40, K41, K42, K43, K49, K4A, K4B, K4C, K4D \ | ||
| 53 | ) \ | ||
| 54 | { \ | ||
| 55 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \ | ||
| 56 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \ | ||
| 57 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \ | ||
| 58 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, XXX }, \ | ||
| 59 | { K40, K41, K42, K43, XXX, XXX, XXX, XXX, XXX, K49, K4A, K4B, K4C, K4D }, \ | ||
| 60 | { XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, K59, K5A, K5B, K5C, K5D } \ | ||
| 61 | } | ||
| 62 | |||
| 63 | /* LAYOUT_wkl | ||
| 64 | * ,---------------------------------------------------------. .---. | ||
| 65 | * |00 |01 |02 |03 |04 |05 |06 |07 |08 |09 |0A |0B |0C |0D|2D| |5C | | ||
| 66 | * |---------------------------------------------------------| ,-----------. | ||
| 67 | * |10 |11 |12 |13 |14 |15 |16 |17 |18 |19 |1A |1B |1C |1D | |5A |5D |59 | | ||
| 68 | * |---------------------------------------------------------| `-----------' | ||
| 69 | * |20 |21 |22 |23 |24 |25 |26 |27 |28 |29 |2A |2B |2C | |5B | | ||
| 70 | * |---------------------------------------------------------. `---' | ||
| 71 | * |30 |31 |32 |33 |34 |35 |36 |37 |38 |39 |3A |3B | |3C | | ||
| 72 | * |--------------------------------------------------'--`---'---. | ||
| 73 | * |40 | |42 | 43 |49 |4A | |4B |4C |4D | | ||
| 74 | * `----------------------------------------------' `-----------' | ||
| 75 | */ | ||
| 76 | |||
| 77 | #define LAYOUT_wkl( \ | ||
| 78 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K2D, K5C, \ | ||
| 79 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K5A, K5D, K59, \ | ||
| 80 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K5B, \ | ||
| 81 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, \ | ||
| 82 | K40, K42, K43, K49, K4A, K4B, K4C, K4D \ | ||
| 83 | ) \ | ||
| 84 | { \ | ||
| 85 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \ | ||
| 86 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \ | ||
| 87 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \ | ||
| 88 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, XXX }, \ | ||
| 89 | { K40, XXX, K42, K43, XXX, XXX, XXX, XXX, XXX, K49, K4A, K4B, K4C, K4D }, \ | ||
| 90 | { XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, K59, K5A, K5B, K5C, K5D } \ | ||
| 91 | } | ||
diff --git a/keyboards/jagdpietr/drakon/info.json b/keyboards/jagdpietr/drakon/info.json new file mode 100644 index 000000000..328bdba9e --- /dev/null +++ b/keyboards/jagdpietr/drakon/info.json | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "drakon", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "jagdpietr", | ||
| 5 | "width": 18.25, | ||
| 6 | "height": 5.25, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_ansi": { | ||
| 9 | "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"x":16.25, "y":0}, {"x":0, "y":1, "w":1.5}, {"x":1.5, "y":1}, {"x":2.5, "y":1}, {"x":3.5, "y":1}, {"x":4.5, "y":1}, {"x":5.5, "y":1}, {"x":6.5, "y":1}, {"x":7.5, "y":1}, {"x":8.5, "y":1}, {"x":9.5, "y":1}, {"x":10.5, "y":1}, {"x":11.5, "y":1}, {"x":12.5, "y":1}, {"x":13.5, "y":1, "w":1.5}, {"x":15.25, "y":1}, {"x":16.25, "y":1}, {"x":17.25, "y":1}, {"x":0, "y":2, "w":1.75}, {"x":1.75, "y":2}, {"x":2.75, "y":2}, {"x":3.75, "y":2}, {"x":4.75, "y":2}, {"x":5.75, "y":2}, {"x":6.75, "y":2}, {"x":7.75, "y":2}, {"x":8.75, "y":2}, {"x":9.75, "y":2}, {"x":10.75, "y":2}, {"x":11.75, "y":2}, {"x":12.75, "y":2, "w":2.25}, {"x":16.25, "y":2}, {"x":0, "y":3, "w":2.25}, {"x":2.25, "y":3}, {"x":3.25, "y":3}, {"x":4.25, "y":3}, {"x":5.25, "y":3}, {"x":6.25, "y":3}, {"x":7.25, "y":3}, {"x":8.25, "y":3}, {"x":9.25, "y":3}, {"x":10.25, "y":3}, {"x":11.25, "y":3}, {"x":12.25, "y":3, "w":1.25}, {"x":13.75, "y":3.25}, {"x":0, "y":4, "w":1.25}, {"x":1.25, "y":4, "w":1.25}, {"x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"x":10, "y":4, "w":1.25}, {"x":11.25, "y":4, "w":1.25}, {"x":12.75, "y":4.25}, {"x":13.75, "y":4.25}, {"x":14.75, "y":4.25}] | ||
| 10 | }, | ||
| 11 | "LAYOUT_wkl": { | ||
| 12 | "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"x":16.25, "y":0}, {"x":0, "y":1, "w":1.5}, {"x":1.5, "y":1}, {"x":2.5, "y":1}, {"x":3.5, "y":1}, {"x":4.5, "y":1}, {"x":5.5, "y":1}, {"x":6.5, "y":1}, {"x":7.5, "y":1}, {"x":8.5, "y":1}, {"x":9.5, "y":1}, {"x":10.5, "y":1}, {"x":11.5, "y":1}, {"x":12.5, "y":1}, {"x":13.5, "y":1, "w":1.5}, {"x":15.25, "y":1}, {"x":16.25, "y":1}, {"x":17.25, "y":1}, {"x":0, "y":2, "w":1.75}, {"x":1.75, "y":2}, {"x":2.75, "y":2}, {"x":3.75, "y":2}, {"x":4.75, "y":2}, {"x":5.75, "y":2}, {"x":6.75, "y":2}, {"x":7.75, "y":2}, {"x":8.75, "y":2}, {"x":9.75, "y":2}, {"x":10.75, "y":2}, {"x":11.75, "y":2}, {"x":12.75, "y":2, "w":2.25}, {"x":16.25, "y":2}, {"x":0, "y":3, "w":2.25}, {"x":2.25, "y":3}, {"x":3.25, "y":3}, {"x":4.25, "y":3}, {"x":5.25, "y":3}, {"x":6.25, "y":3}, {"x":7.25, "y":3}, {"x":8.25, "y":3}, {"x":9.25, "y":3}, {"x":10.25, "y":3}, {"x":11.25, "y":3}, {"x":12.25, "y":3, "w":1.25}, {"x":13.75, "y":3.25}, {"x":0, "y":4, "w":1.25}, {"x":1.75, "y":4, "w":1.25}, {"x":3, "y":4, "w":7}, {"x":10, "y":4, "w":1.25}, {"x":11.25, "y":4, "w":1.25}, {"x":12.75, "y":4.25}, {"x":13.75, "y":4.25}, {"x":14.75, "y":4.25}] | ||
| 13 | } | ||
| 14 | } | ||
| 15 | } | ||
diff --git a/keyboards/jagdpietr/drakon/keymaps/default/keymap.c b/keyboards/jagdpietr/drakon/keymaps/default/keymap.c new file mode 100644 index 000000000..70ec6845b --- /dev/null +++ b/keyboards/jagdpietr/drakon/keymaps/default/keymap.c | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | /* Copyright 2020 jagdpietr | ||
| 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 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum Layer_names { | ||
| 20 | _Base, | ||
| 21 | _FN, | ||
| 22 | _Lyr2 | ||
| 23 | }; | ||
| 24 | |||
| 25 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 26 | [_Base] = LAYOUT_ansi( | ||
| 27 | 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, KC_MUTE, | ||
| 28 | 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_MPRV, KC_MPLY, KC_MNXT, | ||
| 29 | 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, KC_MSTP, | ||
| 30 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, | ||
| 31 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_APP, MO(_FN), KC_LEFT, KC_DOWN, KC_RIGHT | ||
| 32 | ), | ||
| 33 | |||
| 34 | [_FN] = LAYOUT_ansi( | ||
| 35 | KC_TRNS, 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_DEL, KC_TRNS, KC_TRNS, | ||
| 36 | 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, KC_TRNS, KC_TRNS, | ||
| 37 | 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, | ||
| 38 | 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_PGUP, | ||
| 39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END | ||
| 40 | ), | ||
| 41 | |||
| 42 | [_Lyr2] = LAYOUT_ansi( | ||
| 43 | 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, KC_TRNS, | ||
| 44 | 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, KC_TRNS, KC_TRNS, | ||
| 45 | 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, | ||
| 46 | 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, | ||
| 47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 48 | ) | ||
| 49 | }; | ||
diff --git a/keyboards/jagdpietr/drakon/keymaps/default/readme.md b/keyboards/jagdpietr/drakon/keymaps/default/readme.md new file mode 100644 index 000000000..e56b5a93b --- /dev/null +++ b/keyboards/jagdpietr/drakon/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for drakon | |||
diff --git a/keyboards/jagdpietr/drakon/keymaps/wkl/keymap.c b/keyboards/jagdpietr/drakon/keymaps/wkl/keymap.c new file mode 100644 index 000000000..79582353c --- /dev/null +++ b/keyboards/jagdpietr/drakon/keymaps/wkl/keymap.c | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /* Copyright 2020 jagdpietr | ||
| 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 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum Layer_names { | ||
| 20 | _Base, | ||
| 21 | _FN, | ||
| 22 | _Lyr2 | ||
| 23 | }; | ||
| 24 | |||
| 25 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 26 | [_Base] = LAYOUT_wkl( | ||
| 27 | 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, KC_MUTE, | ||
| 28 | 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_MPRV, KC_MPLY, KC_MNXT, | ||
| 29 | 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, KC_MSTP, | ||
| 30 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, | ||
| 31 | KC_LCTL, KC_LALT, KC_SPC, KC_APP, MO(_FN), KC_LEFT, KC_DOWN, KC_RIGHT | ||
| 32 | ), | ||
| 33 | |||
| 34 | [_FN] = LAYOUT_wkl( | ||
| 35 | KC_TRNS, 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_DEL, KC_TRNS, KC_TRNS, | ||
| 36 | 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, KC_TRNS, KC_TRNS, | ||
| 37 | 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, | ||
| 38 | 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_PGUP, | ||
| 39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END | ||
| 40 | ), | ||
| 41 | |||
| 42 | [_Lyr2] = LAYOUT_wkl( | ||
| 43 | 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_DEL, KC_TRNS, KC_TRNS, | ||
| 44 | 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, KC_TRNS, KC_TRNS, | ||
| 45 | 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, | ||
| 46 | 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_PGUP, | ||
| 47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END | ||
| 48 | ) | ||
| 49 | |||
| 50 | }; | ||
diff --git a/keyboards/jagdpietr/drakon/keymaps/wkl/readme.md b/keyboards/jagdpietr/drakon/keymaps/wkl/readme.md new file mode 100644 index 000000000..46356035b --- /dev/null +++ b/keyboards/jagdpietr/drakon/keymaps/wkl/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The Winkeyless keymap for drakon | |||
diff --git a/keyboards/jagdpietr/drakon/readme.md b/keyboards/jagdpietr/drakon/readme.md new file mode 100644 index 000000000..f20bdfdf6 --- /dev/null +++ b/keyboards/jagdpietr/drakon/readme.md | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | # drakon | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | 60% keyboard with OLED and 4-directional press Encoder | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [jagdpietr](https://github.com/JagdPietr) | ||
| 8 | * Hardware Supported: Atmega32u4-AU | ||
| 9 | |||
| 10 | Make example for this keyboard (after setting up your build environment): | ||
| 11 | |||
| 12 | make drakon:default | ||
| 13 | |||
| 14 | 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/jagdpietr/drakon/rules.mk b/keyboards/jagdpietr/drakon/rules.mk new file mode 100644 index 000000000..a74fce289 --- /dev/null +++ b/keyboards/jagdpietr/drakon/rules.mk | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = yes # Console for debug | ||
| 14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | |||
| 24 | LTO_ENABLE = yes | ||
| 25 | WPM_ENABLE = yes | ||
| 26 | OLED_DRIVER_ENABLE = yes | ||
| 27 | ENCODER_ENABLE = yes | ||
