summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/maverick0197
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/maverick0197')
-rw-r--r--keyboards/handwired/maverick0197/keydeck8/info.json78
-rw-r--r--keyboards/handwired/maverick0197/keydeck8/keydeck8.c33
-rw-r--r--keyboards/handwired/maverick0197/keydeck8/keymaps/default/keymap.c2
-rw-r--r--keyboards/handwired/maverick0197/keydeck8/keymaps/via/keymap.c2
4 files changed, 45 insertions, 70 deletions
diff --git a/keyboards/handwired/maverick0197/keydeck8/info.json b/keyboards/handwired/maverick0197/keydeck8/info.json
index d70b262c04..057552e621 100644
--- a/keyboards/handwired/maverick0197/keydeck8/info.json
+++ b/keyboards/handwired/maverick0197/keydeck8/info.json
@@ -1,38 +1,46 @@
{
- "keyboard_name": "keydeck8",
- "manufacturer": "Maverick0197",
- "maintainer": "Maverick0197",
+ "keyboard_name": "keydeck8",
+ "manufacturer": "Maverick0197",
+ "maintainer": "Maverick0197",
"development_board": "promicro",
- "features": {
- "bootmagic": true,
- "extrakey": true,
- "mousekey": true,
- "encoder": true
- },
- "encoder": {
- "rotary": [
- { "pin_a": "D3", "pin_b": "D2", "resolution": 4 }
- ]
- },
- "matrix_pins": {
- "direct": [
- ["D0", "D1", "D4"],
- ["C6", "D7", "E6"],
- ["B4", "B5", "B6"]
- ]
- },
- "usb": {
- "device_version": "0.0.1",
- "pid": "0x3031",
- "vid": "0x4D76"
- },
- "layouts": {
- "LAYOUT": {
- "layout": [
- {"label":"D0", "matrix": [0, 0], "x":0, "y":0}, {"label":"D1", "matrix": [0, 1], "x":1, "y":0}, {"label":"D4", "matrix": [0, 2], "x":2, "y":0},
- {"label":"C6", "matrix": [1, 0], "x":0, "y":1}, {"label":"D7", "matrix": [1, 1], "x":1, "y":1}, {"label":"E6", "matrix": [1, 2], "x":2, "y":1},
- {"label":"B4", "matrix": [2, 0], "x":0, "y":2}, {"label":"B5", "matrix": [2, 1], "x":1, "y":2}, {"label":"B6", "matrix": [2, 2], "x":2, "y":2}
- ]
- }
- }
+ "features": {
+ "bootmagic": true,
+ "extrakey": true,
+ "mousekey": true,
+ "encoder": true
+ },
+ "encoder": {
+ "rotary": [
+ {"pin_a": "D3", "pin_b": "D2", "resolution": 4}
+ ]
+ },
+ "matrix_pins": {
+ "direct": [
+ ["D0", "D1", "D4"],
+ ["C6", "D7", "E6"],
+ ["B4", "B5", "B6"]
+ ]
+ },
+ "usb": {
+ "device_version": "0.0.1",
+ "pid": "0x3031",
+ "vid": "0x4D76"
+ },
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"label": "D0", "matrix": [0, 0], "x": 0, "y": 0},
+ {"label": "D1", "matrix": [0, 1], "x": 1, "y": 0},
+ {"label": "D4", "matrix": [0, 2], "x": 2, "y": 0},
+
+ {"label": "C6", "matrix": [1, 0], "x": 0, "y": 1},
+ {"label": "D7", "matrix": [1, 1], "x": 1, "y": 1},
+ {"label": "E6", "matrix": [1, 2], "x": 2, "y": 1},
+
+ {"label": "B4", "matrix": [2, 0], "x": 0, "y": 2},
+ {"label": "B5", "matrix": [2, 1], "x": 1, "y": 2},
+ {"label": "B6", "matrix": [2, 2], "x": 2, "y": 2}
+ ]
+ }
+ }
}
diff --git a/keyboards/handwired/maverick0197/keydeck8/keydeck8.c b/keyboards/handwired/maverick0197/keydeck8/keydeck8.c
deleted file mode 100644
index 663306a9bb..0000000000
--- a/keyboards/handwired/maverick0197/keydeck8/keydeck8.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Copyright 2023 Maverick0197
- *
- * 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 "quantum.h"
-
-#ifdef ENCODER_ENABLE
-bool encoder_update_kb(uint8_t index, bool clockwise) {
- if (!encoder_update_user(index, clockwise)) {
- return false;
- }
- //if (index == 0) {
- if (clockwise) {
- tap_code_delay(KC_VOLU, 10);
- } else {
- tap_code_delay(KC_VOLD, 10);
- }
- //}
- return false;
-};
-#endif // ENCODER_MAP_ENABLE
diff --git a/keyboards/handwired/maverick0197/keydeck8/keymaps/default/keymap.c b/keyboards/handwired/maverick0197/keydeck8/keymaps/default/keymap.c
index 2d4b4eb8c5..722aea335d 100644
--- a/keyboards/handwired/maverick0197/keydeck8/keymaps/default/keymap.c
+++ b/keyboards/handwired/maverick0197/keydeck8/keymaps/default/keymap.c
@@ -25,7 +25,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_4, KC_5, KC_6)
};
#if defined(ENCODER_MAP_ENABLE)
-const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }
};
#endif // ENCODER_MAP_ENABLE
diff --git a/keyboards/handwired/maverick0197/keydeck8/keymaps/via/keymap.c b/keyboards/handwired/maverick0197/keydeck8/keymaps/via/keymap.c
index d9e409a1a9..a2430c2394 100644
--- a/keyboards/handwired/maverick0197/keydeck8/keymaps/via/keymap.c
+++ b/keyboards/handwired/maverick0197/keydeck8/keymaps/via/keymap.c
@@ -41,7 +41,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),
};
#if defined(ENCODER_MAP_ENABLE)
-const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[1] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[2] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },