diff options
Diffstat (limited to 'keyboards/knobgoblin')
-rw-r--r-- | keyboards/knobgoblin/config.h | 41 | ||||
-rw-r--r-- | keyboards/knobgoblin/info.json | 45 | ||||
-rw-r--r-- | keyboards/knobgoblin/keymaps/default/keymap.c | 37 | ||||
-rw-r--r-- | keyboards/knobgoblin/keymaps/default/readme.md | 8 | ||||
-rw-r--r-- | keyboards/knobgoblin/keymaps/moults31/keymap.c | 171 | ||||
-rw-r--r-- | keyboards/knobgoblin/keymaps/moults31/readme.md | 3 | ||||
-rw-r--r-- | keyboards/knobgoblin/keymaps/moults31/rules.mk | 3 | ||||
-rw-r--r-- | keyboards/knobgoblin/keymaps/via/keymap.c | 53 | ||||
-rw-r--r-- | keyboards/knobgoblin/keymaps/via/readme.md | 3 | ||||
-rw-r--r-- | keyboards/knobgoblin/keymaps/via/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/knobgoblin/knobgoblin.c | 109 | ||||
-rw-r--r-- | keyboards/knobgoblin/knobgoblin.h | 32 | ||||
-rw-r--r-- | keyboards/knobgoblin/readme.md | 15 | ||||
-rw-r--r-- | keyboards/knobgoblin/rules.mk | 22 |
14 files changed, 0 insertions, 544 deletions
diff --git a/keyboards/knobgoblin/config.h b/keyboards/knobgoblin/config.h deleted file mode 100644 index 57a0a016c4..0000000000 --- a/keyboards/knobgoblin/config.h +++ /dev/null @@ -1,41 +0,0 @@ -/* Copyright 2020 MrT1ddl3s - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#pragma once - -#include "config_common.h" - -/* key matrix size */ -#define MATRIX_ROWS 5 -#define MATRIX_COLS 5 - -/* key matrix pins */ -#define MATRIX_ROW_PINS { D4, B6, B2, B3, B1 } -#define MATRIX_COL_PINS { B5, B4, E6, D7, C6 } - -#define ENCODERS_PAD_A { F7, F5 } -#define ENCODERS_PAD_B { F6, F4 } - -#define OLED_TIMEOUT 180000 - -/* COL2ROW or ROW2COL */ -#define DIODE_DIRECTION COL2ROW - -#define DEBOUNCE 2 - -/*Bootmagic position definition because (0,0) is not used*/ -#define BOOTMAGIC_LITE_ROW 0 -#define BOOTMAGIC_LITE_COLUMN 1 diff --git a/keyboards/knobgoblin/info.json b/keyboards/knobgoblin/info.json deleted file mode 100644 index 44a9d81ed5..0000000000 --- a/keyboards/knobgoblin/info.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "keyboard_name": "Knob Goblin", - "manufacturer": "MrT1ddl3s", - "url": "", - "maintainer": "MrT1ddl3s", - "usb": { - "vid": "0x4B47", - "pid": "0x0000", - "device_version": "0.0.1" - }, - "layouts": { - "LAYOUT_ortho": { - "layout": [ - - {"label": "F17", "x": 1, "y": 0}, - {"label": "F18", "x": 2, "y": 0}, - {"label": "F19", "x": 3, "y": 0}, - {"label": "F20", "x": 4, "y": 0}, - - {"label": "F13", "x": 1, "y": 1}, - {"label": "F14", "x": 2, "y": 1}, - {"label": "F15", "x": 3, "y": 1}, - {"label": "F16", "x": 4, "y": 1}, - - {"label": "F9", "x": 1, "y": 2}, - {"label": "F10", "x": 2, "y": 2}, - {"label": "F11", "x": 3, "y": 2}, - {"label": "F12", "x": 4, "y": 2}, - - {"label": "K2", "x": 0, "y": 3}, - {"label": "F5", "x": 1, "y": 3}, - {"label": "F6", "x": 2, "y": 3}, - {"label": "F7", "x": 3, "y": 3}, - {"label": "F8", "x": 4, "y": 3}, - - {"label": "K1", "x": 0, "y": 4}, - {"label": "F1", "x": 1, "y": 4}, - {"label": "F2", "x": 2, "y": 4}, - {"label": "F3", "x": 3, "y": 4}, - {"label": "F4", "x": 4, "y": 4} - - ] - } - } -} diff --git a/keyboards/knobgoblin/keymaps/default/keymap.c b/keyboards/knobgoblin/keymaps/default/keymap.c deleted file mode 100644 index 8c2955ea7f..0000000000 --- a/keyboards/knobgoblin/keymaps/default/keymap.c +++ /dev/null @@ -1,37 +0,0 @@ -/* Copyright 2020 MrT1ddl3s - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - - [0] = LAYOUT_ortho( - KC_EQL, KC_PSLS, KC_PAST, KC_PMNS, - KC_P7, KC_P8, KC_P9, KC_PPLS, - KC_P4, KC_P5, KC_P6, KC_PPLS, - KC_MPLY, KC_P1, KC_P2, KC_P3, KC_PENT, - KC_MUTE, MO(1), KC_P0, KC_PDOT, KC_PENT - ), - - [1] = LAYOUT_ortho( - KC_ESC, KC_TRNS, KC_TRNS, KC_TRNS, - KC_HOME, KC_TRNS, KC_PGUP, KC_TRNS, - KC_END , KC_UP, KC_PGDN, KC_TRNS, - KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_SPC, - KC_TRNS, KC_TRNS, KC_BSPC, KC_DEL, KC_TRNS - - ) -}; diff --git a/keyboards/knobgoblin/keymaps/default/readme.md b/keyboards/knobgoblin/keymaps/default/readme.md deleted file mode 100644 index 9a37b43c63..0000000000 --- a/keyboards/knobgoblin/keymaps/default/readme.md +++ /dev/null @@ -1,8 +0,0 @@ -# KNOBGOBLIN - -![Knob Goblin](https://i.imgur.com/JCmj4Is.jpg) - -# Ortho Knob Goblin Layout - -This is the ortho layout for the Knob Goblin. key assignments to be used as a standard numpad layout -with a layer momentary switch in the bottom left
\ No newline at end of file diff --git a/keyboards/knobgoblin/keymaps/moults31/keymap.c b/keyboards/knobgoblin/keymaps/moults31/keymap.c deleted file mode 100644 index 775f9d1b5d..0000000000 --- a/keyboards/knobgoblin/keymaps/moults31/keymap.c +++ /dev/null @@ -1,171 +0,0 @@ -/* Copyright 2020 MrT1ddl3s - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include QMK_KEYBOARD_H - -#include "moults31.h" - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - - [0] = LAYOUT_ortho( - KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, - KC_P7, KC_P8, KC_P9, KC_PPLS, - KC_P4, KC_P5, KC_P6, KC_PPLS, - KC_MPLY, KC_P1, KC_P2, KC_P3, KC_PENT, - KC_MUTE, MO(10), KC_P0, KC_PDOT, KC_PENT - ), - - [1] = LAYOUT_ortho( - KC_ESC, KC_TRNS, KC_TRNS, KC_TRNS, - KC_HOME, KC_TRNS, KC_PGUP, KC_TRNS, - KC_END , KC_UP, KC_PGDN, KC_TRNS, - KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_SPC, - KC_TRNS, MO(10), KC_BSPC, KC_DEL, KC_TRNS - ), - - [2] = LAYOUT_ortho( - KC_2, KC_TRNS, KC_TRNS, KC_TRNS, - M_VSC_MVEDTRPRVGRP, M_VSC_MVEDTRNXTGRP, KC_TRNS, KC_TRNS, - M_VSC_EDGRPPRV, M_VSC_EDGRPNXT, KC_TRNS, KC_TRNS, - KC_TRNS, M_VSC_SIDEBARFOCUS, M_VSC_SIDEBARCLOSE, M_VSC_TERMFOCUS, KC_TRNS, - M_VSC_FILECLOSE, MO(10), KC_TRNS, KC_TRNS, KC_TRNS - ), - - [3] = LAYOUT_ortho( - KC_3, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, M_GDB_PAUSE, - M_GDB_RESTART, M_GDB_STOP, KC_TRNS, M_GDB_PAUSE, - M_VSC_DBGCNSLFOCUS, M_GDB_STEPOVER, M_GDB_STEPIN, M_GDB_STEPOUT, M_GDB_PLAY, - KC_TRNS, MO(10), KC_TRNS, KC_TRNS, M_GDB_PLAY - ), - - [4] = LAYOUT_ortho( - KC_4, KC_TRNS, KC_TRNS, KC_TRNS, - M_OBS_VOICE_UNMUTE, M_OBS_MOOSIC_MUTE, M_OBS_MOOSIC_UNMUTE, KC_TRNS, - M_OBS_DSKT_MUTE, M_OBS_DSKT_UNMUTE, M_OBS_VOICE_MUTE, KC_TRNS, - KC_TRNS, M_OBS_BRB, M_OBS_GAME, M_OBS_JSTCHT, KC_TRNS, - KC_TRNS, MO(10), KC_TRNS, KC_TRNS, KC_TRNS - ), - - [5] = LAYOUT_ortho( - KC_5, 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, MO(10), KC_TRNS, KC_TRNS, KC_TRNS - ), - - [6] = LAYOUT_ortho( - KC_6, 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, MO(10), KC_TRNS, KC_TRNS, KC_TRNS - ), - - [7] = LAYOUT_ortho( - KC_7, 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, MO(10), KC_TRNS, KC_TRNS, KC_TRNS - ), - - [8] = LAYOUT_ortho( - KC_8, 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, MO(10), KC_TRNS, KC_TRNS, KC_TRNS - ), - - [9] = LAYOUT_ortho( - KC_9, 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, MO(10), KC_TRNS, KC_TRNS, KC_TRNS - ), - - [10] = LAYOUT_ortho( - QK_BOOT, KC_TRNS, KC_TRNS, KC_TRNS, - TO(7), TO(8), TO(9), KC_TRNS, - TO(4), TO(5), TO(6), KC_TRNS, - KC_TRNS, TO(1), TO(2), TO(3), KC_TRNS, - KC_TRNS, KC_TRNS, TO(0), KC_TRNS, KC_TRNS - ), - - - -}; - -/* byte map for the goblin logo, knob goblin text, and level text */ -static void render_goblin_logo(void) { - static const char PROGMEM my_logo[] = { - 0x00, 0xe0, 0x40, 0x80, 0x80, 0x00, 0x00, 0x80, 0x80, 0xc0, 0x60, 0x20, 0x10, 0x08, 0x08, 0x08, - 0x08, 0x08, 0x08, 0x10, 0x20, 0x60, 0xc0, 0x80, 0x80, 0x00, 0x00, 0x80, 0x80, 0x40, 0xe0, 0x00, - 0x00, 0x03, 0x06, 0x3c, 0x49, 0x91, 0x21, 0x00, 0x40, 0x80, 0x80, 0x80, 0x80, 0x00, 0x60, 0x00, - 0x00, 0x60, 0x00, 0x80, 0x80, 0x80, 0x80, 0x40, 0x00, 0x21, 0x91, 0x49, 0x3c, 0x06, 0x03, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x1f, 0x60, 0x40, 0xc0, 0x06, 0x0e, 0x0f, 0x67, 0x50, 0xc0, - 0xc0, 0x50, 0x67, 0x0f, 0x0e, 0x06, 0xc0, 0x40, 0x60, 0x1f, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x7b, 0xc7, 0x8e, 0x1e, 0x3e, 0x3e, - 0x3e, 0x3e, 0x1e, 0x8e, 0xc7, 0x7b, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x06, 0x04, - 0x04, 0x06, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x03, 0x03, 0x03, 0x03, 0x03, 0x83, 0x03, 0x03, 0x03, 0x83, 0x03, 0x83, 0x03, 0x03, 0x03, 0x83, - 0x03, 0x03, 0x83, 0x83, 0x83, 0x03, 0x03, 0x83, 0x83, 0x83, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x04, 0x06, 0x09, 0x10, 0x00, 0x1f, 0x03, 0x06, 0x0c, 0x1f, - 0x00, 0x0f, 0x10, 0x10, 0x10, 0x0f, 0x00, 0x1f, 0x12, 0x12, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x78, 0xfc, 0x84, 0xa4, 0xa4, 0x68, 0x00, 0x78, 0x84, 0x84, 0x84, 0x78, 0x00, 0xfc, 0x94, - 0x94, 0x68, 0x00, 0xfc, 0x80, 0x80, 0x80, 0x00, 0xfc, 0x00, 0xfc, 0x18, 0x30, 0x60, 0xfc, 0x00, - 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, - 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, - 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x50, 0x50, 0x50, 0x00, 0xf0, 0x00, 0x00, - 0x00, 0xf0, 0x00, 0xf0, 0x50, 0x50, 0x50, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x03, 0x02, 0x02, 0x02, 0x00, 0x03, 0x02, 0x02, 0x02, 0x00, 0x00, 0x01, 0x02, - 0x01, 0x00, 0x00, 0x03, 0x02, 0x02, 0x02, 0x00, 0x03, 0x02, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00 - }; - oled_write_raw_P(my_logo, sizeof(my_logo)); -} - -bool oled_task_user(void) { - - render_goblin_logo(); - - oled_set_cursor(0,11); - - switch (get_highest_layer(layer_state)) { - case 0: - oled_write_P(PSTR(" NUM\n"), false); - break; - case 1: - oled_write_P(PSTR(" NAV\n"), false); - break; - case 2: - oled_write_P(PSTR(" CODE\n"), false); - break; - case 3: - oled_write_P(PSTR(" GDB\n"), false); - break; - case 4: - oled_write_P(PSTR(" OBS\n"), false); - break; - default: - oled_write_P(PSTR(" NONE\n"), false); - break; - } - return false; -} diff --git a/keyboards/knobgoblin/keymaps/moults31/readme.md b/keyboards/knobgoblin/keymaps/moults31/readme.md deleted file mode 100644 index f137c78c3a..0000000000 --- a/keyboards/knobgoblin/keymaps/moults31/readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# Ortho Knob Goblin Layout - -Via functionality for the Knob Goblin. Ortho layout.
\ No newline at end of file diff --git a/keyboards/knobgoblin/keymaps/moults31/rules.mk b/keyboards/knobgoblin/keymaps/moults31/rules.mk deleted file mode 100644 index 533af592e5..0000000000 --- a/keyboards/knobgoblin/keymaps/moults31/rules.mk +++ /dev/null @@ -1,3 +0,0 @@ -VIA_ENABLE = YES -LTO_ENABLE = YES -BOOTLOADER = atmel-dfu diff --git a/keyboards/knobgoblin/keymaps/via/keymap.c b/keyboards/knobgoblin/keymaps/via/keymap.c deleted file mode 100644 index 4631dccd0a..0000000000 --- a/keyboards/knobgoblin/keymaps/via/keymap.c +++ /dev/null @@ -1,53 +0,0 @@ -/* Copyright 2020 MrT1ddl3s - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - - [0] = LAYOUT_ortho( - KC_EQL, KC_PSLS, KC_PAST, KC_PMNS, - KC_P7, KC_P8, KC_P9, KC_PPLS, - KC_P4, KC_P5, KC_P6, KC_PPLS, - KC_MPLY, KC_P1, KC_P2, KC_P3, KC_PENT, - KC_MUTE, MO(1), KC_P0, KC_PDOT, KC_PENT - ), - - [1] = LAYOUT_ortho( - KC_ESC, KC_TRNS, KC_TRNS, KC_TRNS, - KC_HOME, KC_TRNS, KC_PGUP, KC_TRNS, - KC_END , KC_UP, KC_PGDN, KC_TRNS, - KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_SPC, - KC_TRNS, KC_TRNS, KC_BSPC, KC_DEL, KC_TRNS - ), - - [2] = LAYOUT_ortho( - 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, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS - ), - - [3] = LAYOUT_ortho( - 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, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS - ) - -}; diff --git a/keyboards/knobgoblin/keymaps/via/readme.md b/keyboards/knobgoblin/keymaps/via/readme.md deleted file mode 100644 index f137c78c3a..0000000000 --- a/keyboards/knobgoblin/keymaps/via/readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# Ortho Knob Goblin Layout - -Via functionality for the Knob Goblin. Ortho layout.
\ No newline at end of file diff --git a/keyboards/knobgoblin/keymaps/via/rules.mk b/keyboards/knobgoblin/keymaps/via/rules.mk deleted file mode 100644 index ee1c5e7aef..0000000000 --- a/keyboards/knobgoblin/keymaps/via/rules.mk +++ /dev/null @@ -1,2 +0,0 @@ -VIA_ENABLE = YES -LTO_ENABLE = YES diff --git a/keyboards/knobgoblin/knobgoblin.c b/keyboards/knobgoblin/knobgoblin.c deleted file mode 100644 index fcf86a3a40..0000000000 --- a/keyboards/knobgoblin/knobgoblin.c +++ /dev/null @@ -1,109 +0,0 @@ -/* Copyright 2020 MrT1ddl3s - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include "knobgoblin.h" - -#ifdef ENCODER_ENABLE -/* assign keycodes to the encoder rotation */ -bool encoder_update_kb(uint8_t index, bool clockwise) { - if (!encoder_update_user(index, clockwise)) return false; - if (index == 1) { /* Bottom encoder */ - if (clockwise) { - tap_code(KC_VOLU); - } else { - tap_code(KC_VOLD); - } - } - if (index == 0) { /* Top encoder */ - if (clockwise) { - tap_code(KC_MNXT); - } else { - tap_code(KC_MPRV); - } - } - return true; -} -#endif - -#ifdef OLED_ENABLE -/* rotate screen for proper orentation*/ -oled_rotation_t oled_init_kb(oled_rotation_t rotation) { - return OLED_ROTATION_270; -} - -/* byte map for the goblin logo, knob goblin text, and level text */ -static void render_goblin_logo(void) { - static const char PROGMEM my_logo[] = { - 0x00, 0xe0, 0x40, 0x80, 0x80, 0x00, 0x00, 0x80, 0x80, 0xc0, 0x60, 0x20, 0x10, 0x08, 0x08, 0x08, - 0x08, 0x08, 0x08, 0x10, 0x20, 0x60, 0xc0, 0x80, 0x80, 0x00, 0x00, 0x80, 0x80, 0x40, 0xe0, 0x00, - 0x00, 0x03, 0x06, 0x3c, 0x49, 0x91, 0x21, 0x00, 0x40, 0x80, 0x80, 0x80, 0x80, 0x00, 0x60, 0x00, - 0x00, 0x60, 0x00, 0x80, 0x80, 0x80, 0x80, 0x40, 0x00, 0x21, 0x91, 0x49, 0x3c, 0x06, 0x03, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x1f, 0x60, 0x40, 0xc0, 0x06, 0x0e, 0x0f, 0x67, 0x50, 0xc0, - 0xc0, 0x50, 0x67, 0x0f, 0x0e, 0x06, 0xc0, 0x40, 0x60, 0x1f, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x7b, 0xc7, 0x8e, 0x1e, 0x3e, 0x3e, - 0x3e, 0x3e, 0x1e, 0x8e, 0xc7, 0x7b, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x06, 0x04, - 0x04, 0x06, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x03, 0x03, 0x03, 0x03, 0x03, 0x83, 0x03, 0x03, 0x03, 0x83, 0x03, 0x83, 0x03, 0x03, 0x03, 0x83, - 0x03, 0x03, 0x83, 0x83, 0x83, 0x03, 0x03, 0x83, 0x83, 0x83, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, - 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x04, 0x06, 0x09, 0x10, 0x00, 0x1f, 0x03, 0x06, 0x0c, 0x1f, - 0x00, 0x0f, 0x10, 0x10, 0x10, 0x0f, 0x00, 0x1f, 0x12, 0x12, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x78, 0xfc, 0x84, 0xa4, 0xa4, 0x68, 0x00, 0x78, 0x84, 0x84, 0x84, 0x78, 0x00, 0xfc, 0x94, - 0x94, 0x68, 0x00, 0xfc, 0x80, 0x80, 0x80, 0x00, 0xfc, 0x00, 0xfc, 0x18, 0x30, 0x60, 0xfc, 0x00, - 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, - 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, 0x60, - 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x50, 0x50, 0x50, 0x00, 0xf0, 0x00, 0x00, - 0x00, 0xf0, 0x00, 0xf0, 0x50, 0x50, 0x50, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x03, 0x02, 0x02, 0x02, 0x00, 0x03, 0x02, 0x02, 0x02, 0x00, 0x00, 0x01, 0x02, - 0x01, 0x00, 0x00, 0x03, 0x02, 0x02, 0x02, 0x00, 0x03, 0x02, 0x02, 0x02, 0x00, 0x00, 0x00, 0x00 - }; - oled_write_raw_P(my_logo, sizeof(my_logo)); -} - -/* text display for layer indication */ -bool oled_task_kb(void) { - if (!oled_task_user()) { - return false; - } - - render_goblin_logo(); - - oled_set_cursor(0,11); - - switch (get_highest_layer(layer_state)) { - case 0: - oled_write_P(PSTR(" ONE\n"), false); - break; - case 1: - oled_write_P(PSTR(" TWO\n"), false); - break; - case 2: - oled_write_P(PSTR("THREE\n"), false); - break; - case 3: - oled_write_P(PSTR(" FOUR\n"), false); - break; - case 4: - oled_write_P(PSTR(" FIVE\n"), false); - break; - case 5: - oled_write_P(PSTR(" SIX\n"), false); - break; - - } - return false; -} -#endif diff --git a/keyboards/knobgoblin/knobgoblin.h b/keyboards/knobgoblin/knobgoblin.h deleted file mode 100644 index b5b2cf7e5f..0000000000 --- a/keyboards/knobgoblin/knobgoblin.h +++ /dev/null @@ -1,32 +0,0 @@ -/* Copyright 2020 MrT1ddl3s - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#pragma once -#include "quantum.h" - -#define LAYOUT_ortho( \ - K01, K02, K03, K04, \ - K11, K12, K13, K14, \ - K21, K22, K23, K24, \ - K30, K31, K32, K33, K34, \ - K40, K41, K42, K43, K44 \ -) { \ - { KC_NO, K01, K02, K03, K04 }, \ - { KC_NO, K11, K12, K13, K14 }, \ - { KC_NO, K21, K22, K23, K24 }, \ - { K30, K31, K32, K33, K34 }, \ - { K40, K41, K42, K43, K44 } \ -} diff --git a/keyboards/knobgoblin/readme.md b/keyboards/knobgoblin/readme.md deleted file mode 100644 index 0ce2b0c9c9..0000000000 --- a/keyboards/knobgoblin/readme.md +++ /dev/null @@ -1,15 +0,0 @@ -# KNOBGOBLIN - -![Knob Goblin](https://i.imgur.com/oYnzqqN.jpg) - -A 5x4 numpad with 2x rotary encoder and OLED support. - -* Keyboard Maintainer: [MrT1ddl3s](https://github.com/mrT1ddl3s) -* Hardware Supported: knobgoblin PCB -* Hardware Availability: Occasional group buy - [knob-goblin.com](https://knob-goblin.com) - -Make example for this keyboard (after setting up your build environment): - - make knobgoblin:default - -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/knobgoblin/rules.mk b/keyboards/knobgoblin/rules.mk deleted file mode 100644 index 25a4759790..0000000000 --- a/keyboards/knobgoblin/rules.mk +++ /dev/null @@ -1,22 +0,0 @@ -# MCU name -MCU = atmega32u4 - -# Bootloader selection -BOOTLOADER = caterina - -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite -MOUSEKEY_ENABLE = no # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = yes # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = yes # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow -AUDIO_ENABLE = no # Audio output - -ENCODER_ENABLE = yes -OLED_ENABLE = yes -OLED_DRIVER = SSD1306 |