summaryrefslogtreecommitdiffstats
path: root/keyboards/yanghu/unicorne/keymaps
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2022-09-13 11:24:05 +0800
committerlokher <lokher@gmail.com>2022-09-13 11:24:05 +0800
commit9581289745736ce068a1040f44cec37a2ca8830d (patch)
tree24f644715a5fd6cc4d804d9604fb094307808b1b /keyboards/yanghu/unicorne/keymaps
parentfe13cedf8c09fa34d5cec4e4c624738095176625 (diff)
Remove non-Keychron keyboards
Diffstat (limited to 'keyboards/yanghu/unicorne/keymaps')
-rw-r--r--keyboards/yanghu/unicorne/keymaps/bcat/config.h19
-rw-r--r--keyboards/yanghu/unicorne/keymaps/bcat/keymap.c83
-rw-r--r--keyboards/yanghu/unicorne/keymaps/bcat/readme.md33
-rw-r--r--keyboards/yanghu/unicorne/keymaps/bcat/rules.mk1
-rw-r--r--keyboards/yanghu/unicorne/keymaps/default/config.h22
-rw-r--r--keyboards/yanghu/unicorne/keymaps/default/keymap.c92
-rw-r--r--keyboards/yanghu/unicorne/keymaps/default/layers.h24
-rw-r--r--keyboards/yanghu/unicorne/keymaps/default/oled.c67
-rw-r--r--keyboards/yanghu/unicorne/keymaps/default/readme.md10
-rw-r--r--keyboards/yanghu/unicorne/keymaps/default/rules.mk1
10 files changed, 0 insertions, 352 deletions
diff --git a/keyboards/yanghu/unicorne/keymaps/bcat/config.h b/keyboards/yanghu/unicorne/keymaps/bcat/config.h
deleted file mode 100644
index 6a27f2aa96..0000000000
--- a/keyboards/yanghu/unicorne/keymaps/bcat/config.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/* Copyright 2021 Jonathan Rascher
- *
- * 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
-
-#define BCAT_ORTHO_LAYERS
diff --git a/keyboards/yanghu/unicorne/keymaps/bcat/keymap.c b/keyboards/yanghu/unicorne/keymaps/bcat/keymap.c
deleted file mode 100644
index af1e92a984..0000000000
--- a/keyboards/yanghu/unicorne/keymaps/bcat/keymap.c
+++ /dev/null
@@ -1,83 +0,0 @@
-/* Copyright 2021 Jonathan Rascher
- *
- * 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 "bcat.h"
-
-#if defined(OLED_ENABLE)
-# include "bcat_oled.h"
-#endif
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- // clang-format off
- /* Default layer: http://www.keyboard-layout-editor.com/#/gists/b6d0b16a913e7d1faeafc9fc751c413f */
- [LAYER_DEFAULT] = LAYOUT(
- KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
- KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
- KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
- KC_MPLY, KC_LCTL, LY_LWR, KC_SPC, KC_ENT, LY_RSE, KC_RALT, KC_MUTE
- ),
- /* Lower layer: http://www.keyboard-layout-editor.com/#/gists/99dd65d3b857a272be7a1804b20bc266 */
- [LAYER_LOWER] = LAYOUT(
- MC_ALTT, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______,
- KY_CSPC, KY_ZMRST, KY_ZMOUT, KY_ZMIN, KC_WBAK, KC_WFWD, KC_PIPE, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_TILD,
- _______, KC_APP, KC_PSCR, KC_SLCK, KC_PAUS, KC_LGUI, KC_BSLS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_GRV,
- _______, _______, _______, _______, _______, _______, _______, _______
- ),
- /* Raise layer: http://www.keyboard-layout-editor.com/#/gists/cf9e899867763dc45b65917ce4cf93ff */
- [LAYER_RAISE] = LAYOUT(
- KC_CAPS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
- _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_F11, KC_DEL,
- _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_F12, KC_INS,
- _______, _______, _______, _______, _______, _______, _______, _______
- ),
- /* Adjust layer: http://www.keyboard-layout-editor.com/#/gists/7eb0f1c437169f30cc18eac271ad2302 */
- [LAYER_ADJUST] = LAYOUT(
- _______, MU_TOG, KC_MPLY, KC_VOLU, KC_MSTP, _______, EEP_RST, QK_BOOT, _______, _______, _______, _______,
- _______, MU_MOD, KC_MPRV, KC_VOLD, KC_MNXT, _______, RGB_RMOD, RGB_VAD, RGB_VAI, RGB_MOD, RGB_SPI, _______,
- _______, _______, _______, KC_MUTE, _______, _______, RGB_HUI, RGB_SAD, RGB_SAI, RGB_HUD, RGB_SPD, _______,
- _______, _______, _______, _______, RGB_TOG, _______, _______, _______
- ),
- // clang-format on
-};
-
-bool encoder_update_user(uint8_t index, bool clockwise) {
- switch (index) {
- case 0:
- /* Left encoder (scrolling) */
- tap_code(clockwise ? KC_PGDN : KC_PGUP);
- return false;
- case 1:
- /* Right encoder (volume) */
- tap_code(clockwise ? KC_VOLU : KC_VOLD);
- return false;
- default:
- return true;
- }
-}
-
-#if defined(OLED_ENABLE)
-oled_rotation_t oled_init_user(oled_rotation_t rotation) { return OLED_ROTATION_270; }
-
-void oled_task_keymap(const oled_keyboard_state_t *keyboard_state) {
- render_oled_layers();
- oled_advance_page(/*clearPageRemainder=*/false);
- oled_advance_page(/*clearPageRemainder=*/false);
- render_oled_wpm(keyboard_state->wpm);
- render_oled_pet(/*col=*/0, /*line=*/6, keyboard_state);
-}
-#endif
diff --git a/keyboards/yanghu/unicorne/keymaps/bcat/readme.md b/keyboards/yanghu/unicorne/keymaps/bcat/readme.md
deleted file mode 100644
index 5c30911d5e..0000000000
--- a/keyboards/yanghu/unicorne/keymaps/bcat/readme.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# bcat's Unicorne layout
-
-This ergo layout follows my preferred [split 3x6 + 3 thumb
-keys](https://github.com/qmk/qmk_firmware/tree/master/layouts/community/split_3x6_3/bcat)
-layout, adding bindings for the two rotary encoders on the bottom row. (The
-left encoder scrolls vertically and the right encoder adjusts volume.) Also,
-since the Unicorne keyboard has a speaker, I added bindings on the adjust layer
-to activate and configure music mode. Finally, an adorable unicorn prances on
-the OLED, running faster the quicker you type.
-
-## Default layer
-
-![Default layer layout](https://i.imgur.com/Max5R0T.png)
-
-([KLE](http://www.keyboard-layout-editor.com/#/gists/b6d0b16a913e7d1faeafc9fc751c413f))
-
-## Lower layer
-
-![Lower layer layout](https://i.imgur.com/E8Cfowc.png)
-
-([KLE](http://www.keyboard-layout-editor.com/#/gists/99dd65d3b857a272be7a1804b20bc266))
-
-## Raise layer
-
-![Raise layer layout](https://i.imgur.com/KomdMyB.png)
-
-([KLE](http://www.keyboard-layout-editor.com/#/gists/cf9e899867763dc45b65917ce4cf93ff))
-
-## Adjust layer
-
-![Adjust layer layout](https://i.imgur.com/EtshZbn.png)
-
-([KLE](http://www.keyboard-layout-editor.com/#/gists/7eb0f1c437169f30cc18eac271ad2302))
diff --git a/keyboards/yanghu/unicorne/keymaps/bcat/rules.mk b/keyboards/yanghu/unicorne/keymaps/bcat/rules.mk
deleted file mode 100644
index e9a4fda1f7..0000000000
--- a/keyboards/yanghu/unicorne/keymaps/bcat/rules.mk
+++ /dev/null
@@ -1 +0,0 @@
-BCAT_OLED_PET = isda
diff --git a/keyboards/yanghu/unicorne/keymaps/default/config.h b/keyboards/yanghu/unicorne/keymaps/default/config.h
deleted file mode 100644
index e7ee9814ef..0000000000
--- a/keyboards/yanghu/unicorne/keymaps/default/config.h
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Copyright 2021 Yang Hu
- *
- * 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
-
-#define OLED_FONT_H "keyboards/yanghu/unicorne/glcdfont.c"
-#define ENCODER_RESOLUTION 4
-#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_BREATHING
-#define RGBLIGHT_DEFAULT_COLOR HSV_BLUE
diff --git a/keyboards/yanghu/unicorne/keymaps/default/keymap.c b/keyboards/yanghu/unicorne/keymaps/default/keymap.c
deleted file mode 100644
index a8c7bd7c51..0000000000
--- a/keyboards/yanghu/unicorne/keymaps/default/keymap.c
+++ /dev/null
@@ -1,92 +0,0 @@
-/* Copyright 2021 Yang Hu
- *
- * 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 "layers.h"
-
-#define LOWER MO(_LOWER)
-#define RAISE MO(_RAISE)
-#define ADJUST MO(_ADJUST)
-
-// clang-format off
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [_BASE] = LAYOUT_split_3x6_4(
- KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
- LCTL_T(KC_ESC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
- KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RSFT_T(KC_ENT),
- KC_LCTL, KC_LALT, LOWER, KC_ENT, KC_BSPC, KC_SPC, RAISE, KC_RGUI
- ),
-
- [_LOWER] = LAYOUT_split_3x6_4(
- _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL,
- _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_GRV, KC_TILD,
- _______, KC_ESC, KC_LGUI, KC_LALT, KC_CAPS, KC_DQUO, KC_HOME, KC_END, KC_PGUP, KC_PGDN, KC_PSCR, RSFT_T(KC_SPC),
- _______, _______, _______, _______, _______, _______, _______, _______
- ),
-
- [_RAISE] = LAYOUT_split_3x6_4(
- _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
- _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6,
- _______, KC_ESC, KC_RGUI, KC_RALT, KC_CAPS, KC_QUOT, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
- _______, _______, _______, _______, _______, _______, _______, _______
- ),
-
- [_ADJUST] = LAYOUT_split_3x6_4(
- RGB_VAI, RGB_SAI, RGB_HUI, RGB_MOD, XXXXXXX, RGB_TOG, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
- RGB_VAD, RGB_SAD, RGB_HUD, RGB_RMOD, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
- XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, QK_BOOT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
- _______, _______, _______, _______, _______, _______, _______, _______
- ),
-};
-// clang-format on
-layer_state_t layer_state_set_user(layer_state_t state) { return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); }
-
-// Left encoder scrolls the mousewheel. Right encoder adjusts underglow hue.
-bool encoder_update_user(uint8_t index, bool clockwise) {
- if (index == 0) {
- if (clockwise) {
-#ifdef MOUSEKEY_ENABLE
- tap_code(KC_MS_WH_DOWN);
-#else
- tap_code(KC_PGDN);
-#endif
- } else {
-#ifdef MOUSEKEY_ENABLE
- tap_code(KC_MS_WH_UP);
-#else
- tap_code(KC_PGUP);
-#endif
- }
- } else { // index = 1: right encoder
- if (clockwise) {
-#ifdef RGB_MATRIX_ENABLE
- rgb_matrix_step();
-#else
- rgblight_increase_hue_noeeprom();
-#endif
- } else {
-#ifdef RGB_MATRIX_ENABLE
- rgb_matrix_step_reverse();
-#else
- rgblight_decrease_hue_noeeprom();
-#endif
- }
- }
- return false;
-}
-
-// Set underglow color to blue.
-void keyboard_post_init_user(void) { rgblight_sethsv_noeeprom(RGBLIGHT_DEFAULT_COLOR); }
diff --git a/keyboards/yanghu/unicorne/keymaps/default/layers.h b/keyboards/yanghu/unicorne/keymaps/default/layers.h
deleted file mode 100644
index 0505d4956b..0000000000
--- a/keyboards/yanghu/unicorne/keymaps/default/layers.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Copyright 2021 Yang Hu
- *
- * 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
-// Defines names for use in layer keycodes and the keymap
-enum layer_names {
- _BASE,
- _LOWER,
- _RAISE,
- _ADJUST,
-};
diff --git a/keyboards/yanghu/unicorne/keymaps/default/oled.c b/keyboards/yanghu/unicorne/keymaps/default/oled.c
deleted file mode 100644
index 417f573ff0..0000000000
--- a/keyboards/yanghu/unicorne/keymaps/default/oled.c
+++ /dev/null
@@ -1,67 +0,0 @@
-/* Copyright 2021 Yang Hu
- *
- * 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/>.
- */
-#ifdef OLED_ENABLE
-# include QMK_KEYBOARD_H
-# include "layers.h"
-
-// Some characters position:
-// alt: 84 85 86/a..../c...
-// shift:87 88 89/a.../c...
-// ctrl: b6 b6/d.../
-// capslock: 9c-9f/b.../d...
-// numlock: 98-9b/b.../d...
-// navigation logo: 92-95/b2.../d2...
-// symbol logo: 8a-8d/aa..../ca....
-// qmk logos; 8e-91/ae..../ce....
-void oled_render_layer(void) {
- /* static const char PROGMEM cmd_logo[] = { */
- /* 0x80, 0x81, 0x82, 0x83, 10, */
- /* 0xa0, 0xa1, 0xa2, 0xa3, 10, */
- /* 0xc0, 0xc1, 0xc2, 0xc3, 10, */
- /* 0}; */
- // clang-format off
- static const char PROGMEM numlock_logo[] = {
- 0x98, 0x99, 0x9a, 0x9b, 10,
- 0xb8, 0xb9, 0xba, 0xbb, 10,
- 0xd8, 0xd9, 0xda, 0xdb, 10, 0};
- static const char PROGMEM symbol_logo[] = {
- 0x8a, 0x8b, 0x8c, 0x8d, 10,
- 0xaa, 0xab, 0xac, 0xad, 10,
- 0xca, 0xcb, 0xcc, 0xcd, 10, 0};
- static const char PROGMEM qmk_logo[] = {
- 0x8e, 0x8f, 0x90, 0x91, 10,
- 0xae, 0xaf, 0xb0, 0xb1, 10,
- 0xce, 0xcf, 0xd0, 0xd1, 10, 0};
- // clang-format on
- if (IS_LAYER_ON(_LOWER)) {
- oled_write_P(symbol_logo, false);
- } else if (IS_LAYER_ON(_RAISE)) {
- oled_write_P(numlock_logo, false);
- } else if (IS_LAYER_ON(_BASE)) {
- oled_write_P(qmk_logo, false);
- } else {
- if (IS_LAYER_ON(_ADJUST)) {
- oled_write_ln("ADJ", false);
- } else {
- oled_write_ln("?????", false);
- }
- oled_write_ln(" ", false);
- oled_write_ln(" ", false);
- oled_write_ln(" ", false);
- }
-}
-
-#endif
diff --git a/keyboards/yanghu/unicorne/keymaps/default/readme.md b/keyboards/yanghu/unicorne/keymaps/default/readme.md
deleted file mode 100644
index b6ce9e4237..0000000000
--- a/keyboards/yanghu/unicorne/keymaps/default/readme.md
+++ /dev/null
@@ -1,10 +0,0 @@
-![keymap](https://imgur.com/48cFzA5.jpg)
-
-# Default Unicorne Layout
-
-This is the default layout for Unicorne. The "lower" layer consists of symbols
-and navigation, while "raises' has numbers, some other symbols and function
-keys.
-
-Press `lower` and `raise` together activates `adjust` layer, with RGB controls,
-as well as access to reset/bootloader.
diff --git a/keyboards/yanghu/unicorne/keymaps/default/rules.mk b/keyboards/yanghu/unicorne/keymaps/default/rules.mk
deleted file mode 100644
index dbfa81b6ce..0000000000
--- a/keyboards/yanghu/unicorne/keymaps/default/rules.mk
+++ /dev/null
@@ -1 +0,0 @@
-SRC += oled.c