aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGG <72414103+spbgzh@users.noreply.github.com>2022-01-11 03:49:19 +0300
committerGitHub <noreply@github.com>2022-01-10 16:49:19 -0800
commit19fe7dcaaa3d1494333feff6e19d4655efc693eb (patch)
treee6a3545c336f1d711a4fb704eb99f98f7ca1164c
parent0fc1ae9e9c6184a690858064a618cd413ac779ce (diff)
downloadqmk_firmware-19fe7dcaaa3d1494333feff6e19d4655efc693eb.tar.gz
qmk_firmware-19fe7dcaaa3d1494333feff6e19d4655efc693eb.zip
[Keyboard] Fixed bugs Wuque Mammoth Keyboard Series (#15700)
-rw-r--r--keyboards/wuque/mammoth20x/config.h6
-rw-r--r--keyboards/wuque/mammoth20x/keymaps/via/keymap.c4
-rw-r--r--keyboards/wuque/mammoth75x/config.h10
3 files changed, 16 insertions, 4 deletions
diff --git a/keyboards/wuque/mammoth20x/config.h b/keyboards/wuque/mammoth20x/config.h
index a29ab2cb2..8fcfc0319 100644
--- a/keyboards/wuque/mammoth20x/config.h
+++ b/keyboards/wuque/mammoth20x/config.h
@@ -49,6 +49,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
49#define ENCODERS_PAD_B { D2 } 49#define ENCODERS_PAD_B { D2 }
50 50
51#define ENCODERS 1 51#define ENCODERS 1
52
53#ifdef ENCODER_RESOLUTION
54 #undef ENCODER_RESOLUTION
55#endif
56#define ENCODER_RESOLUTION 2
57
52// Note: array is { col, row ) 58// Note: array is { col, row )
53#define ENCODERS_CW_KEY { { 3, 2 } } 59#define ENCODERS_CW_KEY { { 3, 2 } }
54#define ENCODERS_CCW_KEY { { 3, 4 } } 60#define ENCODERS_CCW_KEY { { 3, 4 } }
diff --git a/keyboards/wuque/mammoth20x/keymaps/via/keymap.c b/keyboards/wuque/mammoth20x/keymaps/via/keymap.c
index c8f7c1bb8..e5fe34fd7 100644
--- a/keyboards/wuque/mammoth20x/keymaps/via/keymap.c
+++ b/keyboards/wuque/mammoth20x/keymaps/via/keymap.c
@@ -18,8 +18,8 @@
18 18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 [0] = LAYOUT( 20 [0] = LAYOUT(
21 KC_ESC, KC_PAUS, KC_DEL, KC_VOLU, KC_MUTE, KC_VOLD, 21 KC_ESC, KC_PAUS, KC_DEL, KC_VOLD, KC_MUTE, KC_VOLU,
22 KC_LNUM, KC_PSLS, KC_PAST, KC_PMNS, 22 KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
23 KC_P7, KC_P8, KC_P9, 23 KC_P7, KC_P8, KC_P9,
24 KC_P4, KC_P5, KC_P6, KC_PPLS, 24 KC_P4, KC_P5, KC_P6, KC_PPLS,
25 KC_P1, KC_P2, KC_P3, 25 KC_P1, KC_P2, KC_P3,
diff --git a/keyboards/wuque/mammoth75x/config.h b/keyboards/wuque/mammoth75x/config.h
index 019a70f50..88ef0e547 100644
--- a/keyboards/wuque/mammoth75x/config.h
+++ b/keyboards/wuque/mammoth75x/config.h
@@ -49,9 +49,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
49#define ENCODERS_PAD_B { B1 } 49#define ENCODERS_PAD_B { B1 }
50 50
51#define ENCODERS 1 51#define ENCODERS 1
52
53#ifdef ENCODER_RESOLUTION
54 #undef ENCODER_RESOLUTION
55#endif
56#define ENCODER_RESOLUTION 2
57
52// Note: array is { col, row ) 58// Note: array is { col, row )
53#define ENCODERS_CW_KEY { { 5, 5 } } 59#define ENCODERS_CW_KEY { { 3, 5 } }
54#define ENCODERS_CCW_KEY { { 3, 5 } } 60#define ENCODERS_CCW_KEY { { 5, 5 } }
55 61
56#define LED_CAPS_LOCK_PIN B6 62#define LED_CAPS_LOCK_PIN B6
57#define LED_PIN_ON_STATE 0 63#define LED_PIN_ON_STATE 0