summaryrefslogtreecommitdiffstats
path: root/keyboards/wuque/mammoth20x
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/wuque/mammoth20x
parentfe13cedf8c09fa34d5cec4e4c624738095176625 (diff)
Remove non-Keychron keyboards
Diffstat (limited to 'keyboards/wuque/mammoth20x')
-rw-r--r--keyboards/wuque/mammoth20x/config.h53
-rw-r--r--keyboards/wuque/mammoth20x/info.json48
-rw-r--r--keyboards/wuque/mammoth20x/keymaps/default/keymap.c36
-rw-r--r--keyboards/wuque/mammoth20x/keymaps/default/readme.md1
-rw-r--r--keyboards/wuque/mammoth20x/keymaps/via/keymap.c52
-rw-r--r--keyboards/wuque/mammoth20x/keymaps/via/readme.md1
-rw-r--r--keyboards/wuque/mammoth20x/keymaps/via/rules.mk2
-rw-r--r--keyboards/wuque/mammoth20x/mammoth20x.c59
-rw-r--r--keyboards/wuque/mammoth20x/mammoth20x.h35
-rw-r--r--keyboards/wuque/mammoth20x/readme.md22
-rw-r--r--keyboards/wuque/mammoth20x/rules.mk20
11 files changed, 0 insertions, 329 deletions
diff --git a/keyboards/wuque/mammoth20x/config.h b/keyboards/wuque/mammoth20x/config.h
deleted file mode 100644
index edd471296d..0000000000
--- a/keyboards/wuque/mammoth20x/config.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-Copyright 2021 wuquestudio
-
-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 6
-#define MATRIX_COLS 4
-
-#define MATRIX_ROW_PINS { D5, F0, F1, F4, F5, F6 }
-#define MATRIX_COL_PINS { B0, B1, E6, F7 }
-
-#define DIODE_DIRECTION COL2ROW
-
-/* Set 0 if debouncing isn't needed */
-#define DEBOUNCE 5
-
-/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
-#define LOCKING_SUPPORT_ENABLE
-
-/* Locking resynchronize hack */
-#define LOCKING_RESYNC_ENABLE
-
-/* Enable encoder */
-#define ENCODERS_PAD_A { D3 }
-#define ENCODERS_PAD_B { D2 }
-
-#define ENCODERS 1
-
-#ifdef ENCODER_RESOLUTION
- #undef ENCODER_RESOLUTION
-#endif
-#define ENCODER_RESOLUTION 2
-
-// Note: array is { col, row )
-#define ENCODERS_CW_KEY { { 3, 2 } }
-#define ENCODERS_CCW_KEY { { 3, 4 } }
diff --git a/keyboards/wuque/mammoth20x/info.json b/keyboards/wuque/mammoth20x/info.json
deleted file mode 100644
index 003bf12c6e..0000000000
--- a/keyboards/wuque/mammoth20x/info.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "keyboard_name": "mammoth20x",
- "manufacturer": "wuque studio",
- "url": "https://shop.wuquestudio.com/",
- "maintainer": "spbgzh",
- "usb": {
- "vid": "0xB06B",
- "pid": "0x0005",
- "device_version": "0.0.1"
- },
- "layout_aliases": {
- "LAYOUT_default": "LAYOUT"
- },
- "layouts": {
- "LAYOUT": {
- "layout": [
- { "label": "Esc", "x": 0, "y": 0 },
- { "label": "Pause", "x": 1, "y": 0 },
- { "label": "Delete", "x": 2, "y": 0 },
- { "label": "LeftEncode", "x": 3, "y": 0, "w": 0.5 },
- { "label": "EncoderClick", "x": 3.5, "y": 0 },
- { "label": "RightEncode", "x": 4.5, "y": 0, "w" : 0.5 },
-
- { "label": "Num", "x": 0, "y": 1 },
- { "label": "/", "x": 1, "y": 1 },
- { "label": "*", "x": 2, "y": 1 },
- { "label": "-", "x": 3, "y": 1 },
-
- { "label": "7", "x": 0, "y": 2 },
- { "label": "8", "x": 1, "y": 2 },
- { "label": "9", "x": 2, "y": 2 },
-
- { "label": "4", "x": 0, "y": 3 },
- { "label": "5", "x": 1, "y": 3 },
- { "label": "6", "x": 2, "y": 3 },
- { "label": "+", "x": 3, "y": 2, "h": 2 },
-
- { "label": "1", "x": 0, "y": 4 },
- { "label": "2", "x": 1, "y": 4 },
- { "label": "3", "x": 2, "y": 4 },
-
- { "label": "0", "x": 0, "y": 5, "w": 2 },
- { "label": ".", "x": 2, "y": 5 },
- { "label": "Enter", "x": 3, "y": 4,"h":2 }
- ]
- }
- }
-}
diff --git a/keyboards/wuque/mammoth20x/keymaps/default/keymap.c b/keyboards/wuque/mammoth20x/keymaps/default/keymap.c
deleted file mode 100644
index e19b3bc172..0000000000
--- a/keyboards/wuque/mammoth20x/keymaps/default/keymap.c
+++ /dev/null
@@ -1,36 +0,0 @@
-/* Copyright 2021 wuquestudio
- *
- * 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(
- KC_ESC, KC_PAUS, KC_DEL, KC_VOLU, KC_MUTE, KC_VOLD,
- KC_LNUM, KC_PSLS, KC_PAST, KC_PMNS,
- KC_P7, KC_P8, KC_P9,
- KC_P4, KC_P5, KC_P6, KC_PPLS,
- KC_P1, KC_P2, KC_P3,
- KC_P0, KC_PDOT, KC_PENT
- ),
- [1] = LAYOUT(
- _______, _______, _______, _______, _______, _______,
- _______, _______, _______, _______,
- _______, _______, _______,
- _______, _______, _______, _______,
- _______, _______, _______,
- _______, _______, _______
- ),
-};
diff --git a/keyboards/wuque/mammoth20x/keymaps/default/readme.md b/keyboards/wuque/mammoth20x/keymaps/default/readme.md
deleted file mode 100644
index 5bad9b4558..0000000000
--- a/keyboards/wuque/mammoth20x/keymaps/default/readme.md
+++ /dev/null
@@ -1 +0,0 @@
-# The default keymap for mammoth20x
diff --git a/keyboards/wuque/mammoth20x/keymaps/via/keymap.c b/keyboards/wuque/mammoth20x/keymaps/via/keymap.c
deleted file mode 100644
index e5fe34fd7b..0000000000
--- a/keyboards/wuque/mammoth20x/keymaps/via/keymap.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/* Copyright 2021 wuquestudio
- *
- * 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(
- KC_ESC, KC_PAUS, KC_DEL, KC_VOLD, KC_MUTE, KC_VOLU,
- KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
- KC_P7, KC_P8, KC_P9,
- KC_P4, KC_P5, KC_P6, KC_PPLS,
- KC_P1, KC_P2, KC_P3,
- KC_P0, KC_PDOT, KC_PENT
- ),
- [1] = LAYOUT(
- _______, _______, _______, _______, _______, _______,
- _______, _______, _______, _______,
- _______, _______, _______,
- _______, _______, _______, _______,
- _______, _______, _______,
- _______, _______, _______
- ),
- [2] = LAYOUT(
- _______, _______, _______, _______, _______, _______,
- _______, _______, _______, _______,
- _______, _______, _______,
- _______, _______, _______, _______,
- _______, _______, _______,
- _______, _______, _______
- ),
- [3] = LAYOUT(
- _______, _______, _______, _______, _______, _______,
- _______, _______, _______, _______,
- _______, _______, _______,
- _______, _______, _______, _______,
- _______, _______, _______,
- _______, _______, _______
- ),
-};
diff --git a/keyboards/wuque/mammoth20x/keymaps/via/readme.md b/keyboards/wuque/mammoth20x/keymaps/via/readme.md
deleted file mode 100644
index fcd4ba857f..0000000000
--- a/keyboards/wuque/mammoth20x/keymaps/via/readme.md
+++ /dev/null
@@ -1 +0,0 @@
-# The via keymap for mammoth20x
diff --git a/keyboards/wuque/mammoth20x/keymaps/via/rules.mk b/keyboards/wuque/mammoth20x/keymaps/via/rules.mk
deleted file mode 100644
index 36b7ba9cbc..0000000000
--- a/keyboards/wuque/mammoth20x/keymaps/via/rules.mk
+++ /dev/null
@@ -1,2 +0,0 @@
-VIA_ENABLE = yes
-LTO_ENABLE = yes
diff --git a/keyboards/wuque/mammoth20x/mammoth20x.c b/keyboards/wuque/mammoth20x/mammoth20x.c
deleted file mode 100644
index da6ccecd3b..0000000000
--- a/keyboards/wuque/mammoth20x/mammoth20x.c
+++ /dev/null
@@ -1,59 +0,0 @@
-/* Copyright 2021 wuquestudio
- *
- * 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 "mammoth20x.h"
-
-
-static uint8_t encoder_state[ENCODERS] = {0};
-static keypos_t encoder_cw[ENCODERS] = ENCODERS_CW_KEY;
-static keypos_t encoder_ccw[ENCODERS] = ENCODERS_CCW_KEY;
-
-void encoder_action_unregister(void)
-{
- for (int index = 0; index < ENCODERS; ++index)
- {
- if (encoder_state[index])
- {
- keyevent_t encoder_event = (keyevent_t){
- .key = encoder_state[index] >> 1 ? encoder_cw[index] : encoder_ccw[index],
- .pressed = false,
- .time = (timer_read() | 1)};
- encoder_state[index] = 0;
- action_exec(encoder_event);
- }
- }
-}
-void encoder_action_register(uint8_t index, bool clockwise)
-{
- keyevent_t encoder_event = (keyevent_t){
- .key = clockwise ? encoder_cw[index] : encoder_ccw[index],
- .pressed = true,
- .time = (timer_read() | 1)};
- encoder_state[index] = (clockwise ^ 1) | (clockwise << 1);
- action_exec(encoder_event);
-}
-
-void matrix_scan_kb(void)
-{
- encoder_action_unregister();
- matrix_scan_user();
-}
-
-bool encoder_update_kb(uint8_t index, bool clockwise)
-{
- encoder_action_register(index, clockwise);
- return true;
-};
diff --git a/keyboards/wuque/mammoth20x/mammoth20x.h b/keyboards/wuque/mammoth20x/mammoth20x.h
deleted file mode 100644
index 408788bf60..0000000000
--- a/keyboards/wuque/mammoth20x/mammoth20x.h
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Copyright 2021 wuquestudio
- *
- * 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( \
- K00, K01, K02, K23, K03, K43, \
- K10, K11, K12, K13, \
- K20, K21, K22, \
- K30, K31, K32, K33, \
- K40, K41, K42, \
- K50, K52, K53 \
-) { \
- { K00, K01, K02, K03 }, \
- { K10, K11, K12, K13 }, \
- { K20, K21, K22, K23 }, \
- { K30, K31, K32, K33 }, \
- { K40, K41, K42, K43 }, \
- { K50, KC_NO, K52, K53 }, \
-}
diff --git a/keyboards/wuque/mammoth20x/readme.md b/keyboards/wuque/mammoth20x/readme.md
deleted file mode 100644
index d98175e9bf..0000000000
--- a/keyboards/wuque/mammoth20x/readme.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# mammoth20x
-
-More info at [Wuque Studio](https://shop.wuquestudio.com/).
-
-* Keyboard Maintainer: [spbgzh](https://github.com/spbgzh)
-* Hardware Supported: mammoth20x Standard
-* Hardware Availability: [Wuque Studio](https://shop.wuquestudio.com/)
-
-Make example for this keyboard (after setting up your build environment):
-
- make wuque/mammoth20x:default
-
-Flashing example for this keyboard:
-
- make wuque/mammoth20x:default:flash
-
-To reset the board into bootloader mode, do one of the following:
-
-* Tap the Reset switch mounted on the PCB
-* Hold the Esc key while connecting the USB cable (also erases persistent settings)
-
-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/wuque/mammoth20x/rules.mk b/keyboards/wuque/mammoth20x/rules.mk
deleted file mode 100644
index 0788f9ae5d..0000000000
--- a/keyboards/wuque/mammoth20x/rules.mk
+++ /dev/null
@@ -1,20 +0,0 @@
-# MCU name
-MCU = atmega32u4
-
-# Bootloader selection
-BOOTLOADER = atmel-dfu
-
-# Build Options
-# change yes to no to disable
-#
-BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = yes # 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 # Enable Encoder