diff options
| author | Ramon Imbao <ramonimbao@gmail.com> | 2021-05-16 08:08:25 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-15 17:08:25 -0700 |
| commit | 3efaa5ba7cb67ce51fb61b38b0bc0313e819eb55 (patch) | |
| tree | 73e49c53e2a4857999f47159996ed1ad11da5876 /keyboards/ramonimbao | |
| parent | 60cf7ae8b7affb0130960a49a904be754c04a213 (diff) | |
| download | qmk_firmware-3efaa5ba7cb67ce51fb61b38b0bc0313e819eb55.tar.gz qmk_firmware-3efaa5ba7cb67ce51fb61b38b0bc0313e819eb55.zip | |
[Keyboard] Add Chevron (#12762)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/ramonimbao')
| -rw-r--r-- | keyboards/ramonimbao/chevron/chevron.c | 17 | ||||
| -rw-r--r-- | keyboards/ramonimbao/chevron/chevron.h | 75 | ||||
| -rw-r--r-- | keyboards/ramonimbao/chevron/config.h | 152 | ||||
| -rw-r--r-- | keyboards/ramonimbao/chevron/info.json | 185 | ||||
| -rw-r--r-- | keyboards/ramonimbao/chevron/keymaps/default/keymap.c | 41 | ||||
| -rw-r--r-- | keyboards/ramonimbao/chevron/keymaps/iso/keymap.c | 41 | ||||
| -rw-r--r-- | keyboards/ramonimbao/chevron/keymaps/via/keymap.c | 83 | ||||
| -rw-r--r-- | keyboards/ramonimbao/chevron/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/ramonimbao/chevron/readme.md | 20 | ||||
| -rw-r--r-- | keyboards/ramonimbao/chevron/rules.mk | 26 |
10 files changed, 641 insertions, 0 deletions
diff --git a/keyboards/ramonimbao/chevron/chevron.c b/keyboards/ramonimbao/chevron/chevron.c new file mode 100644 index 000000000..5b15d3324 --- /dev/null +++ b/keyboards/ramonimbao/chevron/chevron.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 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 "chevron.h" | ||
diff --git a/keyboards/ramonimbao/chevron/chevron.h b/keyboards/ramonimbao/chevron/chevron.h new file mode 100644 index 000000000..0f95555c5 --- /dev/null +++ b/keyboards/ramonimbao/chevron/chevron.h | |||
| @@ -0,0 +1,75 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 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 | |||
| 30 | #define XXX KC_NO | ||
| 31 | |||
| 32 | #define LAYOUT_ansi( \ | ||
| 33 | k1d, \ | ||
| 34 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, \ | ||
| 35 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, \ | ||
| 36 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2c, k2d, \ | ||
| 37 | k30, k31, k32, k34, k36, k38, k3b, k3c, k3d \ | ||
| 38 | ) \ | ||
| 39 | { \ | ||
| 40 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d }, \ | ||
| 41 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d }, \ | ||
| 42 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, XXX, k2c, k2d }, \ | ||
| 43 | { k30, k31, k32, XXX, k34, XXX, k36, XXX, k38, XXX, XXX, k3b, k3c, k3d }, \ | ||
| 44 | { XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX }, \ | ||
| 45 | } | ||
| 46 | |||
| 47 | #define LAYOUT_iso( \ | ||
| 48 | k1d, \ | ||
| 49 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, \ | ||
| 50 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k0d, \ | ||
| 51 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2c, k2d, \ | ||
| 52 | k30, k31, k32, k34, k36, k38, k3b, k3c, k3d \ | ||
| 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, XXX, k2c, k2d }, \ | ||
| 58 | { k30, k31, k32, XXX, k34, XXX, k36, XXX, k38, XXX, XXX, k3b, k3c, k3d }, \ | ||
| 59 | { XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX }, \ | ||
| 60 | } | ||
| 61 | |||
| 62 | #define LAYOUT_all( \ | ||
| 63 | k40, k1d, k41, \ | ||
| 64 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, \ | ||
| 65 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, \ | ||
| 66 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2c, k2d, \ | ||
| 67 | k30, k31, k32, k34, k36, k38, k3b, k3c, k3d \ | ||
| 68 | ) \ | ||
| 69 | { \ | ||
| 70 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d }, \ | ||
| 71 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d }, \ | ||
| 72 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, XXX, k2c, k2d }, \ | ||
| 73 | { k30, k31, k32, XXX, k34, XXX, k36, XXX, k38, XXX, XXX, k3b, k3c, k3d }, \ | ||
| 74 | { k40, k41, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX, XXX }, \ | ||
| 75 | } | ||
diff --git a/keyboards/ramonimbao/chevron/config.h b/keyboards/ramonimbao/chevron/config.h new file mode 100644 index 000000000..ec52ee595 --- /dev/null +++ b/keyboards/ramonimbao/chevron/config.h | |||
| @@ -0,0 +1,152 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Ramon Imbao | ||
| 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 0xB16B | ||
| 24 | #define PRODUCT_ID 0xC4EE | ||
| 25 | #define DEVICE_VER 0x0012 | ||
| 26 | #define MANUFACTURER Ramon Imbao | ||
| 27 | #define PRODUCT Chevron | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 5 | ||
| 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 { D5, D6, C0, D7, NO_PIN } | ||
| 44 | #define MATRIX_COL_PINS { A5, A6, A7, C7, C6, C5, C4, C3, C2, C1, A4, A3, A2, B4 } | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL*/ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | // #define BACKLIGHT_PIN B7 | ||
| 51 | // #define BACKLIGHT_BREATHING | ||
| 52 | // #define BACKLIGHT_LEVELS 3 | ||
| 53 | |||
| 54 | // #define RGB_DI_PIN E2 | ||
| 55 | // #ifdef RGB_DI_PIN | ||
| 56 | // #define RGBLED_NUM 16 | ||
| 57 | // #define RGBLIGHT_HUE_STEP 8 | ||
| 58 | // #define RGBLIGHT_SAT_STEP 8 | ||
| 59 | // #define RGBLIGHT_VAL_STEP 8 | ||
| 60 | // #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 61 | // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 62 | // /*== all animations enable ==*/ | ||
| 63 | // #define RGBLIGHT_ANIMATIONS | ||
| 64 | // /*== or choose animations ==*/ | ||
| 65 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 66 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 67 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 68 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 69 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 70 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 71 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 72 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 73 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 74 | // /*== customize breathing effect ==*/ | ||
| 75 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 76 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 77 | // /*==== use exp() and sin() ====*/ | ||
| 78 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 79 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 80 | // #endif | ||
| 81 | |||
| 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 83 | #define DEBOUNCE 5 | ||
| 84 | |||
| 85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 86 | //#define MATRIX_HAS_GHOST | ||
| 87 | |||
| 88 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 89 | #define LOCKING_SUPPORT_ENABLE | ||
| 90 | /* Locking resynchronize hack */ | ||
| 91 | #define LOCKING_RESYNC_ENABLE | ||
| 92 | |||
| 93 | |||
| 94 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 95 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 96 | */ | ||
| 97 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 98 | |||
| 99 | /* | ||
| 100 | * Force NKRO | ||
| 101 | * | ||
| 102 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 103 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 104 | * makefile for this to work.) | ||
| 105 | * | ||
| 106 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 107 | * until the next keyboard reset. | ||
| 108 | * | ||
| 109 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 110 | * fully operational during normal computer usage. | ||
| 111 | * | ||
| 112 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 113 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 114 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 115 | * power-up. | ||
| 116 | * | ||
| 117 | */ | ||
| 118 | //#define FORCE_NKRO | ||
| 119 | |||
| 120 | /* | ||
| 121 | * Feature disable options | ||
| 122 | * These options are also useful to firmware size reduction. | ||
| 123 | */ | ||
| 124 | |||
| 125 | /* disable debug print */ | ||
| 126 | //#define NO_DEBUG | ||
| 127 | |||
| 128 | /* disable print */ | ||
| 129 | //#define NO_PRINT | ||
| 130 | |||
| 131 | /* disable action features */ | ||
| 132 | //#define NO_ACTION_LAYER | ||
| 133 | //#define NO_ACTION_TAPPING | ||
| 134 | //#define NO_ACTION_ONESHOT | ||
| 135 | |||
| 136 | /* disable these deprecated features by default */ | ||
| 137 | #define NO_ACTION_MACRO | ||
| 138 | #define NO_ACTION_FUNCTION | ||
| 139 | |||
| 140 | /* Bootmagic Lite key configuration */ | ||
| 141 | // #define BOOTMAGIC_LITE_ROW 0 | ||
| 142 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
| 143 | |||
| 144 | /* QoL improvements */ | ||
| 145 | #define PERMISSIVE_HOLD | ||
| 146 | #define IGNORE_MOD_TAP_INTERRUPT | ||
| 147 | |||
| 148 | /* Encoder */ | ||
| 149 | #define ENCODERS_PAD_A { A0 } | ||
| 150 | #define ENCODERS_PAD_B { A1 } | ||
| 151 | |||
| 152 | //#define ENCODER_DIRECTION_FLIP | ||
diff --git a/keyboards/ramonimbao/chevron/info.json b/keyboards/ramonimbao/chevron/info.json new file mode 100644 index 000000000..11ed02e53 --- /dev/null +++ b/keyboards/ramonimbao/chevron/info.json | |||
| @@ -0,0 +1,185 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Chevron", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "", | ||
| 5 | "width": 14.5, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_ansi": { | ||
| 9 | "layout": [ | ||
| 10 | {"x":13.5, "y":0}, | ||
| 11 | |||
| 12 | {"x":0, "y":1}, | ||
| 13 | {"x":1, "y":1}, | ||
| 14 | {"x":2, "y":1}, | ||
| 15 | {"x":3, "y":1}, | ||
| 16 | {"x":4, "y":1}, | ||
| 17 | {"x":5, "y":1}, | ||
| 18 | {"x":6, "y":1}, | ||
| 19 | {"x":7, "y":1}, | ||
| 20 | {"x":8, "y":1}, | ||
| 21 | {"x":9, "y":1}, | ||
| 22 | {"x":10, "y":1}, | ||
| 23 | {"x":11, "y":1}, | ||
| 24 | {"x":12, "y":1}, | ||
| 25 | {"x":13, "y":1, "w":1.5}, | ||
| 26 | |||
| 27 | {"x":0, "y":2, "w":1.25}, | ||
| 28 | {"x":1.25, "y":2}, | ||
| 29 | {"x":2.25, "y":2}, | ||
| 30 | {"x":3.25, "y":2}, | ||
| 31 | {"x":4.25, "y":2}, | ||
| 32 | {"x":5.25, "y":2}, | ||
| 33 | {"x":6.25, "y":2}, | ||
| 34 | {"x":7.25, "y":2}, | ||
| 35 | {"x":8.25, "y":2}, | ||
| 36 | {"x":9.25, "y":2}, | ||
| 37 | {"x":10.25, "y":2}, | ||
| 38 | {"x":11.25, "y":2}, | ||
| 39 | {"x":12.25, "y":2, "w":2.25}, | ||
| 40 | |||
| 41 | {"x":0, "y":3, "w":1.75}, | ||
| 42 | {"x":1.75, "y":3}, | ||
| 43 | {"x":2.75, "y":3}, | ||
| 44 | {"x":3.75, "y":3}, | ||
| 45 | {"x":4.75, "y":3}, | ||
| 46 | {"x":5.75, "y":3}, | ||
| 47 | {"x":6.75, "y":3}, | ||
| 48 | {"x":7.75, "y":3}, | ||
| 49 | {"x":8.75, "y":3}, | ||
| 50 | {"x":9.75, "y":3}, | ||
| 51 | {"x":10.75, "y":3}, | ||
| 52 | {"x":11.75, "y":3, "w":1.75}, | ||
| 53 | {"x":13.5, "y":3}, | ||
| 54 | |||
| 55 | {"x":0, "y":4, "w":1.25}, | ||
| 56 | {"x":1.25, "y":4, "w":1.25}, | ||
| 57 | {"x":2.5, "y":4, "w":1.25}, | ||
| 58 | {"x":3.75, "y":4, "w":3}, | ||
| 59 | {"x":6.75, "y":4}, | ||
| 60 | {"x":7.75, "y":4, "w":3}, | ||
| 61 | {"x":10.75, "y":4, "w":1.25}, | ||
| 62 | {"x":12, "y":4, "w":1.25}, | ||
| 63 | {"x":13.25, "y":4, "w":1.25} | ||
| 64 | ] | ||
| 65 | }, | ||
| 66 | "LAYOUT_iso": { | ||
| 67 | "layout": [ | ||
| 68 | {"x":13.5, "y":0}, | ||
| 69 | |||
| 70 | {"x":0, "y":1}, | ||
| 71 | {"x":1, "y":1}, | ||
| 72 | {"x":2, "y":1}, | ||
| 73 | {"x":3, "y":1}, | ||
| 74 | {"x":4, "y":1}, | ||
| 75 | {"x":5, "y":1}, | ||
| 76 | {"x":6, "y":1}, | ||
| 77 | {"x":7, "y":1}, | ||
| 78 | {"x":8, "y":1}, | ||
| 79 | {"x":9, "y":1}, | ||
| 80 | {"x":10, "y":1}, | ||
| 81 | {"x":11, "y":1}, | ||
| 82 | {"x":12, "y":1}, | ||
| 83 | |||
| 84 | {"x":0, "y":2, "w":1.25}, | ||
| 85 | {"x":1.25, "y":2}, | ||
| 86 | {"x":2.25, "y":2}, | ||
| 87 | {"x":3.25, "y":2}, | ||
| 88 | {"x":4.25, "y":2}, | ||
| 89 | {"x":5.25, "y":2}, | ||
| 90 | {"x":6.25, "y":2}, | ||
| 91 | {"x":7.25, "y":2}, | ||
| 92 | {"x":8.25, "y":2}, | ||
| 93 | {"x":9.25, "y":2}, | ||
| 94 | {"x":10.25, "y":2}, | ||
| 95 | {"x":11.25, "y":2}, | ||
| 96 | {"x":12.25, "y":2}, | ||
| 97 | {"x":13.25, "y":1, "w":1.25, "h":2}, | ||
| 98 | |||
| 99 | {"x":0, "y":3, "w":1.75}, | ||
| 100 | {"x":1.75, "y":3}, | ||
| 101 | {"x":2.75, "y":3}, | ||
| 102 | {"x":3.75, "y":3}, | ||
| 103 | {"x":4.75, "y":3}, | ||
| 104 | {"x":5.75, "y":3}, | ||
| 105 | {"x":6.75, "y":3}, | ||
| 106 | {"x":7.75, "y":3}, | ||
| 107 | {"x":8.75, "y":3}, | ||
| 108 | {"x":9.75, "y":3}, | ||
| 109 | {"x":10.75, "y":3}, | ||
| 110 | {"x":11.75, "y":3, "w":1.75}, | ||
| 111 | {"x":13.5, "y":3}, | ||
| 112 | |||
| 113 | {"x":0, "y":4, "w":1.25}, | ||
| 114 | {"x":1.25, "y":4, "w":1.25}, | ||
| 115 | {"x":2.5, "y":4, "w":1.25}, | ||
| 116 | {"x":3.75, "y":4, "w":3}, | ||
| 117 | {"x":6.75, "y":4}, | ||
| 118 | {"x":7.75, "y":4, "w":3}, | ||
| 119 | {"x":10.75, "y":4, "w":1.25}, | ||
| 120 | {"x":12, "y":4, "w":1.25}, | ||
| 121 | {"x":13.25, "y":4, "w":1.25} | ||
| 122 | ] | ||
| 123 | }, | ||
| 124 | "LAYOUT_all": { | ||
| 125 | "layout": [ | ||
| 126 | {"x":11.5, "y":0}, | ||
| 127 | {"x":12.5, "y":0}, | ||
| 128 | {"x":13.5, "y":0}, | ||
| 129 | |||
| 130 | {"x":0, "y":1}, | ||
| 131 | {"x":1, "y":1}, | ||
| 132 | {"x":2, "y":1}, | ||
| 133 | {"x":3, "y":1}, | ||
| 134 | {"x":4, "y":1}, | ||
| 135 | {"x":5, "y":1}, | ||
| 136 | {"x":6, "y":1}, | ||
| 137 | {"x":7, "y":1}, | ||
| 138 | {"x":8, "y":1}, | ||
| 139 | {"x":9, "y":1}, | ||
| 140 | {"x":10, "y":1}, | ||
| 141 | {"x":11, "y":1}, | ||
| 142 | {"x":12, "y":1}, | ||
| 143 | {"x":13, "y":1, "w":1.5}, | ||
| 144 | |||
| 145 | {"x":0, "y":2, "w":1.25}, | ||
| 146 | {"x":1.25, "y":2}, | ||
| 147 | {"x":2.25, "y":2}, | ||
| 148 | {"x":3.25, "y":2}, | ||
| 149 | {"x":4.25, "y":2}, | ||
| 150 | {"x":5.25, "y":2}, | ||
| 151 | {"x":6.25, "y":2}, | ||
| 152 | {"x":7.25, "y":2}, | ||
| 153 | {"x":8.25, "y":2}, | ||
| 154 | {"x":9.25, "y":2}, | ||
| 155 | {"x":10.25, "y":2}, | ||
| 156 | {"x":11.25, "y":2}, | ||
| 157 | {"x":12.25, "y":2, "w":2.25}, | ||
| 158 | |||
| 159 | {"x":0, "y":3, "w":1.75}, | ||
| 160 | {"x":1.75, "y":3}, | ||
| 161 | {"x":2.75, "y":3}, | ||
| 162 | {"x":3.75, "y":3}, | ||
| 163 | {"x":4.75, "y":3}, | ||
| 164 | {"x":5.75, "y":3}, | ||
| 165 | {"x":6.75, "y":3}, | ||
| 166 | {"x":7.75, "y":3}, | ||
| 167 | {"x":8.75, "y":3}, | ||
| 168 | {"x":9.75, "y":3}, | ||
| 169 | {"x":10.75, "y":3}, | ||
| 170 | {"x":11.75, "y":3, "w":1.75}, | ||
| 171 | {"x":13.5, "y":3}, | ||
| 172 | |||
| 173 | {"x":0, "y":4, "w":1.25}, | ||
| 174 | {"x":1.25, "y":4, "w":1.25}, | ||
| 175 | {"x":2.5, "y":4, "w":1.25}, | ||
| 176 | {"x":3.75, "y":4, "w":3}, | ||
| 177 | {"x":6.75, "y":4}, | ||
| 178 | {"x":7.75, "y":4, "w":3}, | ||
| 179 | {"x":10.75, "y":4, "w":1.25}, | ||
| 180 | {"x":12, "y":4, "w":1.25}, | ||
| 181 | {"x":13.25, "y":4, "w":1.25} | ||
| 182 | ] | ||
| 183 | } | ||
| 184 | } | ||
| 185 | } | ||
diff --git a/keyboards/ramonimbao/chevron/keymaps/default/keymap.c b/keyboards/ramonimbao/chevron/keymaps/default/keymap.c new file mode 100644 index 000000000..04da00848 --- /dev/null +++ b/keyboards/ramonimbao/chevron/keymaps/default/keymap.c | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT_ansi( | ||
| 20 | KC_MUTE, | ||
| 21 | KC_ESC, 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, | ||
| 22 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 23 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), | ||
| 24 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_BSPC, KC_RALT, KC_RGUI, KC_RCTL | ||
| 25 | ), | ||
| 26 | [1] = LAYOUT_ansi( | ||
| 27 | _______, | ||
| 28 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, _______, | ||
| 29 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, _______, | ||
| 30 | _______, KC_F11, KC_F12, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 32 | ), | ||
| 33 | }; | ||
| 34 | |||
| 35 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 36 | if (clockwise) { | ||
| 37 | tap_code(KC_VOLU); | ||
| 38 | } else { | ||
| 39 | tap_code(KC_VOLD); | ||
| 40 | } | ||
| 41 | } | ||
diff --git a/keyboards/ramonimbao/chevron/keymaps/iso/keymap.c b/keyboards/ramonimbao/chevron/keymaps/iso/keymap.c new file mode 100644 index 000000000..c22c0af8c --- /dev/null +++ b/keyboards/ramonimbao/chevron/keymaps/iso/keymap.c | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT_iso( | ||
| 20 | KC_MUTE, | ||
| 21 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, | ||
| 22 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, | ||
| 23 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), | ||
| 24 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_BSPC, KC_RALT, KC_RGUI, KC_RCTL | ||
| 25 | ), | ||
| 26 | [1] = LAYOUT_iso( | ||
| 27 | _______, | ||
| 28 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, | ||
| 29 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, _______, _______, | ||
| 30 | _______, KC_F11, KC_F12, _______, _______, _______, _______, _______, _______, _______, KC_SLSH, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 32 | ), | ||
| 33 | }; | ||
| 34 | |||
| 35 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 36 | if (clockwise) { | ||
| 37 | tap_code(KC_VOLU); | ||
| 38 | } else { | ||
| 39 | tap_code(KC_VOLD); | ||
| 40 | } | ||
| 41 | } | ||
diff --git a/keyboards/ramonimbao/chevron/keymaps/via/keymap.c b/keyboards/ramonimbao/chevron/keymaps/via/keymap.c new file mode 100644 index 000000000..11304be9d --- /dev/null +++ b/keyboards/ramonimbao/chevron/keymaps/via/keymap.c | |||
| @@ -0,0 +1,83 @@ | |||
| 1 | /* Copyright 2021 Ramon Imbao | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT_all( | ||
| 20 | KC_VOLD, KC_MUTE, KC_VOLU, | ||
| 21 | KC_ESC, 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, | ||
| 22 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 23 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), | ||
| 24 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_BSPC, KC_RALT, KC_RGUI, KC_RCTL | ||
| 25 | ), | ||
| 26 | [1] = LAYOUT_all( | ||
| 27 | _______, _______, _______, | ||
| 28 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, _______, | ||
| 29 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, _______, | ||
| 30 | _______, KC_F11, KC_F12, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 32 | ), | ||
| 33 | [2] = LAYOUT_all( | ||
| 34 | _______, _______, _______, | ||
| 35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 38 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 39 | ), | ||
| 40 | [3] = LAYOUT_all( | ||
| 41 | _______, _______, _______, | ||
| 42 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 46 | ), | ||
| 47 | }; | ||
| 48 | |||
| 49 | keyevent_t encoder_ccw = { | ||
| 50 | .key = (keypos_t){.row = 4, .col = 0}, | ||
| 51 | .pressed = false | ||
| 52 | }; | ||
| 53 | |||
| 54 | keyevent_t encoder_cw = { | ||
| 55 | .key = (keypos_t){.row = 4, .col = 1}, | ||
| 56 | .pressed = false | ||
| 57 | }; | ||
| 58 | |||
| 59 | void matrix_scan_user(void) { | ||
| 60 | if (IS_PRESSED(encoder_ccw)) { | ||
| 61 | encoder_ccw.pressed = false; | ||
| 62 | encoder_ccw.time = (timer_read() | 1); | ||
| 63 | action_exec(encoder_ccw); | ||
| 64 | } | ||
| 65 | |||
| 66 | if (IS_PRESSED(encoder_cw)) { | ||
| 67 | encoder_cw.pressed = false; | ||
| 68 | encoder_cw.time = (timer_read() | 1); | ||
| 69 | action_exec(encoder_cw); | ||
| 70 | } | ||
| 71 | } | ||
| 72 | |||
| 73 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 74 | if (clockwise) { | ||
| 75 | encoder_cw.pressed = true; | ||
| 76 | encoder_cw.time = (timer_read() | 1); | ||
| 77 | action_exec(encoder_cw); | ||
| 78 | } else { | ||
| 79 | encoder_ccw.pressed = true; | ||
| 80 | encoder_ccw.time = (timer_read() | 1); | ||
| 81 | action_exec(encoder_ccw); | ||
| 82 | } | ||
| 83 | } | ||
diff --git a/keyboards/ramonimbao/chevron/keymaps/via/rules.mk b/keyboards/ramonimbao/chevron/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/ramonimbao/chevron/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/ramonimbao/chevron/readme.md b/keyboards/ramonimbao/chevron/readme.md new file mode 100644 index 000000000..9c2b990ef --- /dev/null +++ b/keyboards/ramonimbao/chevron/readme.md | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # Chevron | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A through-hole 40% keyboard. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [Ramon Imbao](https://github.com/ramonimbao) | ||
| 8 | * Hardware Supported: ATmega32A | ||
| 9 | |||
| 10 | To get to the bootloader, | ||
| 11 | |||
| 12 | 1. Press and hold the BOOT button | ||
| 13 | 2. Press the RESET button | ||
| 14 | 3. Release the BOOT button | ||
| 15 | |||
| 16 | Make example for this keyboard (after setting up your build environment): | ||
| 17 | |||
| 18 | make ramonimbao/chevron:default | ||
| 19 | |||
| 20 | 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/ramonimbao/chevron/rules.mk b/keyboards/ramonimbao/chevron/rules.mk new file mode 100644 index 000000000..d9ae79985 --- /dev/null +++ b/keyboards/ramonimbao/chevron/rules.mk | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32a | ||
| 3 | |||
| 4 | # Processor frequency | ||
| 5 | F_CPU = 16000000 | ||
| 6 | |||
| 7 | # Bootloader selection | ||
| 8 | BOOTLOADER = USBasp | ||
| 9 | |||
| 10 | # Build Options | ||
| 11 | # change yes to no to disable | ||
| 12 | # | ||
| 13 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 14 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 15 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 16 | CONSOLE_ENABLE = no # Console for debug | ||
| 17 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 18 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 19 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 20 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 21 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 22 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 23 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 24 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 25 | AUDIO_ENABLE = no # Audio output | ||
| 26 | ENCODER_ENABLE = yes | ||
