diff options
-rw-r--r-- | keyboards/ogre/ergo_single/config.h | 45 | ||||
-rw-r--r-- | keyboards/ogre/ergo_single/ergo_single.c | 17 | ||||
-rw-r--r-- | keyboards/ogre/ergo_single/ergo_single.h | 39 | ||||
-rw-r--r-- | keyboards/ogre/ergo_single/keymaps/default/keymap.c | 41 | ||||
-rw-r--r-- | keyboards/ogre/ergo_single/keymaps/default/readme.md | 1 | ||||
-rw-r--r-- | keyboards/ogre/ergo_single/readme.md | 15 | ||||
-rw-r--r-- | keyboards/ogre/ergo_single/rules.mk | 33 | ||||
-rw-r--r-- | keyboards/ogre/ergo_split/config.h | 6 |
8 files changed, 194 insertions, 3 deletions
diff --git a/keyboards/ogre/ergo_single/config.h b/keyboards/ogre/ergo_single/config.h new file mode 100644 index 000000000..68e94a11a --- /dev/null +++ b/keyboards/ogre/ergo_single/config.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | Copyright 2020 ctrlshiftba | ||
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 0x0000 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER ctrlshiftba | ||
27 | #define PRODUCT ergo_single | ||
28 | #define DESCRIPTION a keycap friendly ergo. the non-split version | ||
29 | |||
30 | /* key matrix size */ | ||
31 | #define MATRIX_ROWS 10 | ||
32 | #define MATRIX_COLS 7 | ||
33 | |||
34 | /* Keyboard Matrix Assignments */ | ||
35 | #define MATRIX_ROW_PINS { D3, D2, D1, D0, D4, C6, D7, E6, B4, B5 } | ||
36 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 } | ||
37 | |||
38 | /* COL2ROW, ROW2COL*/ | ||
39 | #define DIODE_DIRECTION COL2ROW | ||
40 | |||
41 | #define RGB_DI_PIN B6 | ||
42 | #define RGBLED_NUM 14 | ||
43 | #define RGBLIGHT_LED_MAP { 0, 1, 2, 3, 4, 5, 6, 13, 12,11, 10, 9, 8, 7} | ||
44 | #define RGBLIGHT_ANIMATIONS | ||
45 | #define DEBOUNCE 5 | ||
diff --git a/keyboards/ogre/ergo_single/ergo_single.c b/keyboards/ogre/ergo_single/ergo_single.c new file mode 100644 index 000000000..b48b0a02e --- /dev/null +++ b/keyboards/ogre/ergo_single/ergo_single.c | |||
@@ -0,0 +1,17 @@ | |||
1 | /* Copyright 2020 ctrlshiftba | ||
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 "ergo_single.h" | ||
diff --git a/keyboards/ogre/ergo_single/ergo_single.h b/keyboards/ogre/ergo_single/ergo_single.h new file mode 100644 index 000000000..f8f9ddf65 --- /dev/null +++ b/keyboards/ogre/ergo_single/ergo_single.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /* Copyright 2020 ctrlshiftba | ||
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 LAYOUT( \ | ||
22 | k63, k00, k10, k20, k30, k40, k50, k60, k65, k55, k45, k35, k25, k15, k05, k68, \ | ||
23 | k01, k11, k21, k31, k41, k51, k61, k66, k56, k46, k36, k26, k16, k06, \ | ||
24 | k02, k12, k22, k32, k42, k52, k62, k67, k57, k47, k37, k27, k17, k07, \ | ||
25 | k03, k13, k23, k33, k43, k53, k58, k48, k38, k28, k18, k08, \ | ||
26 | k04, k14, k24, k34, k44, k54, k64, k69, k59, k49, k39, k29, k19, k09 \ | ||
27 | ) \ | ||
28 | { \ | ||
29 | { k00, k10, k20, k30, k40, k50, k60 }, \ | ||
30 | { k01, k11, k21, k31, k41, k51, k61 }, \ | ||
31 | { k02, k12, k22, k32, k42, k52, k62 }, \ | ||
32 | { k03, k13, k23, k33, k43, k53, k63 }, \ | ||
33 | { k04, k14, k24, k34, k44, k54, k64 }, \ | ||
34 | { k05, k15, k25, k35, k45, k55, k65 }, \ | ||
35 | { k06, k16, k26, k36, k46, k56, k66 }, \ | ||
36 | { k07, k17, k27, k37, k47, k57, k67 }, \ | ||
37 | { k08, k18, k28, k38, k48, k58, k68 }, \ | ||
38 | { k09, k19, k29, k39, k49, k59, k69 }, \ | ||
39 | } | ||
diff --git a/keyboards/ogre/ergo_single/keymaps/default/keymap.c b/keyboards/ogre/ergo_single/keymaps/default/keymap.c new file mode 100644 index 000000000..94e725791 --- /dev/null +++ b/keyboards/ogre/ergo_single/keymaps/default/keymap.c | |||
@@ -0,0 +1,41 @@ | |||
1 | /* Copyright 2020 ctrlshiftba | ||
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 | #define TP_Z MT(MOD_LCTL, KC_Z) | ||
19 | #define TP_X MT(MOD_LGUI, KC_X) | ||
20 | #define TP_GR MT(MOD_LCTL, KC_GRV) | ||
21 | #define TP_SPC LT(1, KC_SPC) | ||
22 | #define TP_ENT LT(1, KC_ENT) | ||
23 | #define TP_QUOT MT(MOD_RGUI, KC_QUOT) | ||
24 | #define TP_RCTRL MT(MOD_RCTL, KC_RBRC) | ||
25 | |||
26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
27 | [0] = LAYOUT( | ||
28 | KC_ESC, KC_EQL, KC_1, KC_2, KC_3, KC_4, KC_5, KC_GRV, KC_PGUP, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_DEL, | ||
29 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_RBRC, KC_LBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | ||
30 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_PGDN, KC_QUOT, KC_H, KC_J, KC_K, KC_L, KC_SCLN, TP_QUOT, | ||
31 | KC_LSFT, TP_Z, TP_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
32 | TP_GR, KC_LALT, KC_LEFT, KC_RGHT, TP_SPC, KC_SPC, KC_BSPC, KC_RALT, KC_ENT, TP_ENT, KC_DOWN, KC_UP, KC_LBRC, TP_RCTRL | ||
33 | ), | ||
34 | [1] = LAYOUT( | ||
35 | RESET, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_INS, KC_HOME, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
36 | RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
37 | RGB_M_P, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, KC_END, _______, _______, _______, _______, _______, _______, _______, | ||
38 | RGB_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MENU, _______ | ||
40 | ), | ||
41 | }; | ||
diff --git a/keyboards/ogre/ergo_single/keymaps/default/readme.md b/keyboards/ogre/ergo_single/keymaps/default/readme.md new file mode 100644 index 000000000..a63ad5baa --- /dev/null +++ b/keyboards/ogre/ergo_single/keymaps/default/readme.md | |||
@@ -0,0 +1 @@ | |||
# The default keymap for ergo_single | |||
diff --git a/keyboards/ogre/ergo_single/readme.md b/keyboards/ogre/ergo_single/readme.md new file mode 100644 index 000000000..d39714a6f --- /dev/null +++ b/keyboards/ogre/ergo_single/readme.md | |||
@@ -0,0 +1,15 @@ | |||
1 | # ogre ergo | ||
2 | ## a keycap friendly ergo | ||
3 |  | ||
4 | |||
5 | The ogre ergo is a ergodox inspired keyboard that is a keycap friendly ergo supporting a wide variety of keycap layout possiblities. Its can be built as either a split or single keyboard. | ||
6 | |||
7 | * Keyboard Maintainer: [ctrlshiftba](https://github.com/ctrlshiftbryan) | ||
8 | * Hardware Supported: the ogre ergo pcb | ||
9 | * Hardware Availability: https://ctrlshiftba.com/ | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make ogre/ergo_single:default | ||
14 | |||
15 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/ogre/ergo_single/rules.mk b/keyboards/ogre/ergo_single/rules.mk new file mode 100644 index 000000000..cd209a9c4 --- /dev/null +++ b/keyboards/ogre/ergo_single/rules.mk | |||
@@ -0,0 +1,33 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | # Teensy halfkay | ||
6 | # Pro Micro caterina | ||
7 | # Atmel DFU atmel-dfu | ||
8 | # LUFA DFU lufa-dfu | ||
9 | # QMK DFU qmk-dfu | ||
10 | # ATmega32A bootloadHID | ||
11 | # ATmega328P USBasp | ||
12 | BOOTLOADER = caterina | ||
13 | |||
14 | # Build Options | ||
15 | # change yes to no to disable | ||
16 | # | ||
17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
18 | MOUSEKEY_ENABLE = no # Mouse keys | ||
19 | EXTRAKEY_ENABLE = no # Audio control and System control | ||
20 | CONSOLE_ENABLE = no # Console for debug | ||
21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
25 | NKRO_ENABLE = no # USB Nkey Rollover | ||
26 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
27 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
28 | MIDI_ENABLE = no # MIDI support | ||
29 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
30 | AUDIO_ENABLE = no # Audio output on port C6 | ||
31 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
32 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs | ||
33 | SPLIT_KEYBOARD = no | ||
diff --git a/keyboards/ogre/ergo_split/config.h b/keyboards/ogre/ergo_split/config.h index d92c2538b..05aff9809 100644 --- a/keyboards/ogre/ergo_split/config.h +++ b/keyboards/ogre/ergo_split/config.h | |||
@@ -20,9 +20,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
20 | #include "config_common.h" | 20 | #include "config_common.h" |
21 | 21 | ||
22 | /* USB Device descriptor parameter */ | 22 | /* USB Device descriptor parameter */ |
23 | #define VENDOR_ID 0x1209 | 23 | #define VENDOR_ID 0xFEED |
24 | #define PRODUCT_ID 0x095E | 24 | #define PRODUCT_ID 0x0000 |
25 | #define DEVICE_VER 0x0001 | 25 | #define DEVICE_VER 0x0001 |
26 | #define MANUFACTURER ctrlshiftba | 26 | #define MANUFACTURER ctrlshiftba |
27 | #define PRODUCT ergo_split | 27 | #define PRODUCT ergo_split |
28 | #define DESCRIPTION a keycap friendly ergo. the split version | 28 | #define DESCRIPTION a keycap friendly ergo. the split version |