diff options
| author | Kyle McCreery <mccreery.kyle@gmail.com> | 2021-07-22 02:22:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-21 23:22:00 -0700 |
| commit | 5766b9bfb7a0f6f8b091293015644f5cfe1d6683 (patch) | |
| tree | 11915f3544f0898c3929c2b014946acef91dfdd8 /keyboards/mechwild/obe | |
| parent | fbe782534a89f4a012522a6133970e8d768a3ed4 (diff) | |
| download | qmk_firmware-5766b9bfb7a0f6f8b091293015644f5cfe1d6683.tar.gz qmk_firmware-5766b9bfb7a0f6f8b091293015644f5cfe1d6683.zip | |
[Keyboard] New Keyboard - OBE (#13545)
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/mechwild/obe')
| -rw-r--r-- | keyboards/mechwild/obe/config.h | 149 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/f401/halconf.h | 22 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/f401/mcuconf.h | 22 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/f401/rules.mk | 5 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/f411/halconf.h | 22 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/f411/mcuconf.h | 23 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/f411/rules.mk | 5 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/info.json | 86 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/keymaps/default/keymap.c | 43 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/keymaps/via/keymap.c | 57 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/keymaps/via/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/obe.c | 33 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/obe.h | 43 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/readme.md | 19 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/rules.mk | 21 |
15 files changed, 552 insertions, 0 deletions
diff --git a/keyboards/mechwild/obe/config.h b/keyboards/mechwild/obe/config.h new file mode 100644 index 000000000..9cbc01263 --- /dev/null +++ b/keyboards/mechwild/obe/config.h | |||
| @@ -0,0 +1,149 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 Kyle McCreery | ||
| 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 0x6D77 // mw = "MechWild" | ||
| 24 | #define PRODUCT_ID 0x1707 | ||
| 25 | #define DEVICE_VER 0x0201 | ||
| 26 | #define MANUFACTURER MechWild | ||
| 27 | #define PRODUCT OrangeBoyErgo | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 7 | ||
| 31 | #define MATRIX_COLS 10 | ||
| 32 | |||
| 33 | #define EEPROM_I2C_24LC64 | ||
| 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 { A8, B15, B14, B13, B12, A15, B3 } | ||
| 46 | #define MATRIX_COL_PINS { B10, B1, B0, A7, A6, A5, A4, A3, A2, A1 } | ||
| 47 | #define UNUSED_PINS | ||
| 48 | |||
| 49 | /* encoder pins */ | ||
| 50 | #define ENCODERS_PAD_A { B5 } | ||
| 51 | #define ENCODERS_PAD_B { B4 } | ||
| 52 | |||
| 53 | /* encoder resolution */ | ||
| 54 | #define ENCODER_RESOLUTION 4 | ||
| 55 | #define TAP_CODE_DELAY 10 | ||
| 56 | |||
| 57 | /* COL2ROW, ROW2COL */ | ||
| 58 | #define DIODE_DIRECTION COL2ROW | ||
| 59 | |||
| 60 | /* status light pins */ | ||
| 61 | #define LED_NUM_LOCK_PIN B8 | ||
| 62 | #define LED_CAPS_LOCK_PIN B9 | ||
| 63 | |||
| 64 | /* RGB settings, uncomment this define to enable RGB */ | ||
| 65 | //#define RGB_DI_PIN A0 | ||
| 66 | #ifdef RGB_DI_PIN | ||
| 67 | # define RGBLED_NUM 10 | ||
| 68 | # define RGBLIGHT_HUE_STEP 8 | ||
| 69 | # define RGBLIGHT_SAT_STEP 8 | ||
| 70 | # define RGBLIGHT_VAL_STEP 8 | ||
| 71 | # define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 72 | # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 73 | /*== all animations enable ==*/ | ||
| 74 | # define RGBLIGHT_ANIMATIONS | ||
| 75 | /*== or choose animations ==*/ | ||
| 76 | //# define RGBLIGHT_EFFECT_BREATHING | ||
| 77 | //# define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 78 | //# define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 79 | //# define RGBLIGHT_EFFECT_SNAKE | ||
| 80 | //# define RGBLIGHT_EFFECT_KNIGHT | ||
| 81 | //# define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 82 | //# define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 83 | //# define RGBLIGHT_EFFECT_RGB_TEST | ||
| 84 | //# define RGBLIGHT_EFFECT_ALTERNATING | ||
| 85 | /*== customize breathing effect ==*/ | ||
| 86 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 87 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 88 | /*==== use exp() and sin() ====*/ | ||
| 89 | //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 90 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 91 | #endif | ||
| 92 | |||
| 93 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 94 | #define DEBOUNCE 5 | ||
| 95 | |||
| 96 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 97 | #define LOCKING_SUPPORT_ENABLE | ||
| 98 | /* Locking resynchronize hack */ | ||
| 99 | #define LOCKING_RESYNC_ENABLE | ||
| 100 | |||
| 101 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 102 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 103 | */ | ||
| 104 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 105 | |||
| 106 | /* | ||
| 107 | * Force NKRO | ||
| 108 | * | ||
| 109 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 110 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 111 | * makefile for this to work.) | ||
| 112 | * | ||
| 113 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 114 | * until the next keyboard reset. | ||
| 115 | * | ||
| 116 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 117 | * fully operational during normal computer usage. | ||
| 118 | * | ||
| 119 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 120 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 121 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 122 | * power-up. | ||
| 123 | * | ||
| 124 | */ | ||
| 125 | //#define FORCE_NKRO | ||
| 126 | |||
| 127 | /* | ||
| 128 | * Feature disable options | ||
| 129 | * These options are also useful to firmware size reduction. | ||
| 130 | */ | ||
| 131 | |||
| 132 | /* disable debug print */ | ||
| 133 | //#define NO_DEBUG | ||
| 134 | |||
| 135 | /* disable print */ | ||
| 136 | //#define NO_PRINT | ||
| 137 | |||
| 138 | /* disable action features */ | ||
| 139 | //#define NO_ACTION_LAYER | ||
| 140 | //#define NO_ACTION_TAPPING | ||
| 141 | //#define NO_ACTION_ONESHOT | ||
| 142 | |||
| 143 | /* disable these deprecated features by default */ | ||
| 144 | #define NO_ACTION_MACRO | ||
| 145 | #define NO_ACTION_FUNCTION | ||
| 146 | |||
| 147 | /* Bootmagic Lite key configuration */ | ||
| 148 | #define BOOTMAGIC_LITE_ROW 5 | ||
| 149 | #define BOOTMAGIC_LITE_COLUMN 4 | ||
diff --git a/keyboards/mechwild/obe/f401/halconf.h b/keyboards/mechwild/obe/f401/halconf.h new file mode 100644 index 000000000..b57977316 --- /dev/null +++ b/keyboards/mechwild/obe/f401/halconf.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | /* Copyright 2021 Kyle McCreery | ||
| 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 | #define HAL_USE_I2C TRUE | ||
| 20 | |||
| 21 | #include_next <halconf.h> | ||
| 22 | |||
diff --git a/keyboards/mechwild/obe/f401/mcuconf.h b/keyboards/mechwild/obe/f401/mcuconf.h new file mode 100644 index 000000000..da4302166 --- /dev/null +++ b/keyboards/mechwild/obe/f401/mcuconf.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | /* Copyright 2021 Kyle McCreery | ||
| 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_next <mcuconf.h> | ||
| 20 | |||
| 21 | #undef STM32_I2C_USE_I2C1 | ||
| 22 | #define STM32_I2C_USE_I2C1 TRUE | ||
diff --git a/keyboards/mechwild/obe/f401/rules.mk b/keyboards/mechwild/obe/f401/rules.mk new file mode 100644 index 000000000..f1304648f --- /dev/null +++ b/keyboards/mechwild/obe/f401/rules.mk | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = STM32F401 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = stm32-dfu | ||
diff --git a/keyboards/mechwild/obe/f411/halconf.h b/keyboards/mechwild/obe/f411/halconf.h new file mode 100644 index 000000000..b57977316 --- /dev/null +++ b/keyboards/mechwild/obe/f411/halconf.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | /* Copyright 2021 Kyle McCreery | ||
| 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 | #define HAL_USE_I2C TRUE | ||
| 20 | |||
| 21 | #include_next <halconf.h> | ||
| 22 | |||
diff --git a/keyboards/mechwild/obe/f411/mcuconf.h b/keyboards/mechwild/obe/f411/mcuconf.h new file mode 100644 index 000000000..a00131aca --- /dev/null +++ b/keyboards/mechwild/obe/f411/mcuconf.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* Copyright 2021 Kyle McCreery | ||
| 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_next <mcuconf.h> | ||
| 20 | |||
| 21 | #undef STM32_I2C_USE_I2C1 | ||
| 22 | #define STM32_I2C_USE_I2C1 TRUE | ||
| 23 | |||
diff --git a/keyboards/mechwild/obe/f411/rules.mk b/keyboards/mechwild/obe/f411/rules.mk new file mode 100644 index 000000000..b32a8b7f5 --- /dev/null +++ b/keyboards/mechwild/obe/f411/rules.mk | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = STM32F411 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = stm32-dfu | ||
diff --git a/keyboards/mechwild/obe/info.json b/keyboards/mechwild/obe/info.json new file mode 100644 index 000000000..b19e6267c --- /dev/null +++ b/keyboards/mechwild/obe/info.json | |||
| @@ -0,0 +1,86 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "MechWild OBE", | ||
| 3 | "url": "mechwild.com", | ||
| 4 | "maintainer": "Kyle McCreery", | ||
| 5 | "width": 19.5, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"label": "k55", "x": 0.3, "y": 0}, | ||
| 11 | {"label": "k54", "x": 1.72, "y": 0}, | ||
| 12 | {"label": "k53", "x": 2.72, "y": 0}, | ||
| 13 | {"label": "k52", "x": 4.00, "y": 0}, | ||
| 14 | {"label": "k51", "x": 5, "y": 0}, | ||
| 15 | {"label": "k50", "x": 6, "y": 0}, | ||
| 16 | {"label": "k00", "x": 7, "y": 0}, | ||
| 17 | {"label": "k01", "x": 8, "y": 0}, | ||
| 18 | {"label": "k02", "x": 10.75, "y": 0}, | ||
| 19 | {"label": "k03", "x": 11.75, "y": 0}, | ||
| 20 | {"label": "k04", "x": 12.75, "y": 0}, | ||
| 21 | {"label": "k05", "x": 13.75, "y": 0}, | ||
| 22 | {"label": "k06", "x": 15, "y": 0}, | ||
| 23 | {"label": "k07", "x": 16, "y": 0}, | ||
| 24 | {"label": "k08", "x": 17, "y": 0}, | ||
| 25 | {"label": "k09", "x": 18, "y": 0}, | ||
| 26 | {"label": "k65", "x": 0.2, "y": 1}, | ||
| 27 | {"label": "k59", "x": 1.47, "y": 1, "w": 1.5}, | ||
| 28 | {"label": "k58", "x": 2.97, "y": 1}, | ||
| 29 | {"label": "k57", "x": 4.50, "y": 1}, | ||
| 30 | {"label": "k56", "x": 5.5, "y": 1}, | ||
| 31 | {"label": "k10", "x": 6.5, "y": 1}, | ||
| 32 | {"label": "k11", "x": 7.5, "y": 1}, | ||
| 33 | {"label": "k12", "x": 10.25, "y": 1}, | ||
| 34 | {"label": "k13", "x": 11.25, "y": 1}, | ||
| 35 | {"label": "k14", "x": 12.25, "y": 1}, | ||
| 36 | {"label": "k15", "x": 13.25, "y": 1}, | ||
| 37 | {"label": "k16", "x": 14.75, "y": 1}, | ||
| 38 | {"label": "k17", "x": 15.75, "y": 1}, | ||
| 39 | {"label": "k18", "x": 16.75, "y": 1}, | ||
| 40 | {"label": "k19", "x": 17.75, "y": 1, "w": 1.5}, | ||
| 41 | {"label": "k64", "x": 0.1, "y": 2}, | ||
| 42 | {"label": "k69", "x": 1.40, "y": 2, "w": 1.75}, | ||
| 43 | {"label": "k68", "x": 3.12, "y": 2}, | ||
| 44 | {"label": "k63", "x": 4.75, "y": 2}, | ||
| 45 | {"label": "k20", "x": 5.75, "y": 2}, | ||
| 46 | {"label": "k21", "x": 6.75, "y": 2}, | ||
| 47 | {"label": "k22", "x": 7.75, "y": 2}, | ||
| 48 | {"label": "k23", "x": 10.5, "y": 2}, | ||
| 49 | {"label": "k24", "x": 11.5, "y": 2}, | ||
| 50 | {"label": "k25", "x": 12.5, "y": 2}, | ||
| 51 | {"label": "k26", "x": 13.5, "y": 2}, | ||
| 52 | {"label": "k27", "x": 15.1, "y": 2}, | ||
| 53 | {"label": "k28", "x": 16.1, "y": 2}, | ||
| 54 | {"label": "k29", "x": 17.1, "y": 2, "w": 2.25}, | ||
| 55 | {"label": "k62", "x": 1.22, "y": 3, "w": 2.25}, | ||
| 56 | {"label": "k60", "x": 3.47, "y": 3}, | ||
| 57 | {"label": "k67", "x": 5.25, "y": 3}, | ||
| 58 | {"label": "k66", "x": 6.25, "y": 3}, | ||
| 59 | {"label": "k30", "x": 7.25, "y": 3}, | ||
| 60 | {"label": "k31", "x": 8.25, "y": 3}, | ||
| 61 | {"label": "k32", "x": 10, "y": 3}, | ||
| 62 | {"label": "k33", "x": 11, "y": 3}, | ||
| 63 | {"label": "k34", "x": 12, "y": 3}, | ||
| 64 | {"label": "k35", "x": 13, "y": 3}, | ||
| 65 | {"label": "k36", "x": 14.75, "y": 3}, | ||
| 66 | {"label": "k37", "x": 15.75, "y": 3}, | ||
| 67 | {"label": "k38", "x": 16.75, "y": 3}, | ||
| 68 | {"label": "k39", "x": 17.75, "y": 3, "w": 1.75}, | ||
| 69 | {"label": "k61", "x": 1.25, "y": 4, "w": 1.25}, | ||
| 70 | {"label": "k40", "x": 2.72, "y": 4, "w": 1.25}, | ||
| 71 | {"label": "k41", "x": 5.25, "y": 4, "w": 1.25}, | ||
| 72 | {"label": "k42", "x": 6.50, "y": 4, "w": 2.25}, | ||
| 73 | {"label": "k43", "x": 8.75, "y": 4}, | ||
| 74 | {"label": "k44", "x": 10, "y": 4, "w": 2.75}, | ||
| 75 | {"label": "k45", "x": 12.75, "y": 4}, | ||
| 76 | {"label": "k46", "x": 14.75, "y": 4}, | ||
| 77 | {"label": "k47", "x": 15.75, "y": 4}, | ||
| 78 | {"label": "k48", "x": 16.75, "y": 4}, | ||
| 79 | {"label": "k49", "x": 17.75, "y": 4} | ||
| 80 | ] | ||
| 81 | } | ||
| 82 | } | ||
| 83 | } | ||
| 84 | |||
| 85 | |||
| 86 | |||
diff --git a/keyboards/mechwild/obe/keymaps/default/keymap.c b/keyboards/mechwild/obe/keymaps/default/keymap.c new file mode 100644 index 000000000..fd91890ae --- /dev/null +++ b/keyboards/mechwild/obe/keymaps/default/keymap.c | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | /* Copyright 2021 Kyle McCreery | ||
| 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 QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | // Defines names for use in layer keycodes and the keymap | ||
| 20 | enum layer_names { | ||
| 21 | _BASE, | ||
| 22 | _FN1, | ||
| 23 | _FN2, | ||
| 24 | _FN3 | ||
| 25 | }; | ||
| 26 | |||
| 27 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 28 | /* Base */ | ||
| 29 | [_BASE] = LAYOUT( | ||
| 30 | KC_MUTE, 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_TRNS, KC_BSPC, | ||
| 31 | KC_PGUP, 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, | ||
| 32 | KC_PGDN, MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 33 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_RSFT, | ||
| 34 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_SPC, KC_RALT, MO(2), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 35 | ), | ||
| 36 | [_FN1] = LAYOUT( | ||
| 37 | KC_TRNS, 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_TRNS, KC_DEL, | ||
| 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_TRNS, KC_TRNS, KC_TRNS, | ||
| 39 | KC_TRNS, KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 40 | 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, | ||
| 41 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 42 | ), | ||
| 43 | }; | ||
diff --git a/keyboards/mechwild/obe/keymaps/via/keymap.c b/keyboards/mechwild/obe/keymaps/via/keymap.c new file mode 100644 index 000000000..23b930990 --- /dev/null +++ b/keyboards/mechwild/obe/keymaps/via/keymap.c | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | /* Copyright 2021 Kyle McCreery | ||
| 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 QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | // Defines names for use in layer keycodes and the keymap | ||
| 20 | enum layer_names { | ||
| 21 | _BASE, | ||
| 22 | _FN1, | ||
| 23 | _FN2, | ||
| 24 | _FN3 | ||
| 25 | }; | ||
| 26 | |||
| 27 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 28 | /* Base */ | ||
| 29 | [_BASE] = LAYOUT( | ||
| 30 | KC_MUTE, 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_TRNS, KC_BSPC, | ||
| 31 | KC_PGUP, 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, | ||
| 32 | KC_PGDN, MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 33 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_RSFT, | ||
| 34 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_SPC, KC_RALT, MO(2), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 35 | ), | ||
| 36 | [_FN1] = LAYOUT( | ||
| 37 | KC_TRNS, 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_TRNS, KC_DEL, | ||
| 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_TRNS, KC_TRNS, KC_TRNS, | ||
| 39 | KC_TRNS, KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 40 | 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, | ||
| 41 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 42 | ), | ||
| 43 | [_FN2] = LAYOUT( | ||
| 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, | ||
| 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, 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, KC_TRNS, | ||
| 47 | 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, | ||
| 48 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 49 | ), | ||
| 50 | [_FN3] = LAYOUT( | ||
| 51 | 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, | ||
| 52 | 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, | ||
| 53 | 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, | ||
| 54 | 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, | ||
| 55 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 56 | ) | ||
| 57 | }; | ||
diff --git a/keyboards/mechwild/obe/keymaps/via/rules.mk b/keyboards/mechwild/obe/keymaps/via/rules.mk new file mode 100644 index 000000000..16d33cd89 --- /dev/null +++ b/keyboards/mechwild/obe/keymaps/via/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | |||
diff --git a/keyboards/mechwild/obe/obe.c b/keyboards/mechwild/obe/obe.c new file mode 100644 index 000000000..195d4a767 --- /dev/null +++ b/keyboards/mechwild/obe/obe.c | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* Copyright 2021 Kyle McCreery | ||
| 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 "obe.h" | ||
| 18 | |||
| 19 | #ifdef ENCODER_ENABLE | ||
| 20 | bool encoder_update_kb(uint8_t index, bool clockwise) { | ||
| 21 | if (!encoder_update_user(index, clockwise)) { return false; } | ||
| 22 | switch (index) { | ||
| 23 | case 0: | ||
| 24 | if (clockwise) { | ||
| 25 | tap_code(KC_VOLU); | ||
| 26 | } else { | ||
| 27 | tap_code(KC_VOLD); | ||
| 28 | } | ||
| 29 | break; | ||
| 30 | } | ||
| 31 | return true; | ||
| 32 | } | ||
| 33 | #endif | ||
diff --git a/keyboards/mechwild/obe/obe.h b/keyboards/mechwild/obe/obe.h new file mode 100644 index 000000000..8c57aa283 --- /dev/null +++ b/keyboards/mechwild/obe/obe.h | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | /* Copyright 2021 Kyle McCreery | ||
| 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 | /* This is a shortcut to help you visually see your layout. | ||
| 22 | * | ||
| 23 | * The first section contains all of the arguments representing the physical | ||
| 24 | * layout of the board and position of the keys. | ||
| 25 | * | ||
| 26 | * The second converts the arguments into a two-dimensional array which | ||
| 27 | * represents the switch matrix. | ||
| 28 | */ | ||
| 29 | #define LAYOUT( \ | ||
| 30 | k55, k54, k53, k52, k51, k50, k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, \ | ||
| 31 | k65, k59, k58, k57, k56, k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, \ | ||
| 32 | k64, k69, k68, k63, k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, \ | ||
| 33 | k62, k60, k67, k66, k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, \ | ||
| 34 | k61, k40, k41, k42, k43, k44, k45, k46, k47, k48, k49 \ | ||
| 35 | ) { \ | ||
| 36 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09 }, \ | ||
| 37 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19 }, \ | ||
| 38 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29 }, \ | ||
| 39 | { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39 }, \ | ||
| 40 | { k40, k41, k42, k43, k44, k45, k46, k47, k48, k49 }, \ | ||
| 41 | { k50, k51, k52, k53, k54, k55, k56, k57, k58, k59 }, \ | ||
| 42 | { k60, k61, k62, k63, k64, k65, k66, k67, k68, k69 } \ | ||
| 43 | } | ||
diff --git a/keyboards/mechwild/obe/readme.md b/keyboards/mechwild/obe/readme.md new file mode 100644 index 000000000..f03ed03a9 --- /dev/null +++ b/keyboards/mechwild/obe/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # OrangeBoyErgo (OBE) | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | An affordable Alice-like keyboard kit powered by the STM32 Blackpill. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [Kyle McCreery](https://github.com/kylemccreery) | ||
| 8 | * Hardware Supported: OBE v2.1 | ||
| 9 | * Hardware Availability: [OBE on MechWild](https://mechwild.com/product/orange-boy-ergo/) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make mechwild/obe:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make mechwild/obe:default:flash | ||
| 18 | |||
| 19 | 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/mechwild/obe/rules.mk b/keyboards/mechwild/obe/rules.mk new file mode 100644 index 000000000..f26a5c67a --- /dev/null +++ b/keyboards/mechwild/obe/rules.mk | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # Build Options | ||
| 2 | # change yes to no to disable | ||
| 3 | # | ||
| 4 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 5 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 6 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 7 | CONSOLE_ENABLE = no # Console for debug | ||
| 8 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 9 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 10 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 11 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 12 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 13 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 14 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 16 | AUDIO_ENABLE = no # Audio output | ||
| 17 | ENCODER_ENABLE = yes # Encoder Enabled | ||
| 18 | |||
| 19 | EEPROM_DRIVER = i2c | ||
| 20 | |||
| 21 | DEFAULT_FOLDER = mechwild/obe/f401 | ||
