summaryrefslogtreecommitdiff
path: root/keyboards/rgbkb/mun/rev1
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/rgbkb/mun/rev1')
-rw-r--r--keyboards/rgbkb/mun/rev1/info.json20
-rw-r--r--keyboards/rgbkb/mun/rev1/rev1.c33
2 files changed, 10 insertions, 43 deletions
diff --git a/keyboards/rgbkb/mun/rev1/info.json b/keyboards/rgbkb/mun/rev1/info.json
index 36b1ab0003..e948f27a59 100644
--- a/keyboards/rgbkb/mun/rev1/info.json
+++ b/keyboards/rgbkb/mun/rev1/info.json
@@ -8,6 +8,10 @@
"pid": "0x3505",
"device_version": "0.0.1"
},
+ "rgblight": {
+ "led_count": 98,
+ "split_count": [49, 49]
+ },
"ws2812": {
"pin": "B5",
"driver": "pwm"
@@ -17,7 +21,8 @@
},
"matrix_pins": {
"cols": ["A0", "B11", "B0", "B10", "B12", "B2", "A8"],
- "rows": ["A1", "A3", "B3", "A13", "B15", null, null]
+ "rows": ["A1", "A3", "B3", "A13", "B15", null, null],
+ "io_delay": 5
},
"diode_direction": "COL2ROW",
"encoder": {
@@ -26,6 +31,9 @@
{"pin_a": "B9", "pin_b": "A15"}
]
},
+ "qmk": {
+ "tap_keycode_delay": 5
+ },
"split": {
"soft_serial_pin": "A9"
},
@@ -114,16 +122,6 @@
{"matrix": [11, 1], "x": 12.5, "y": 4},
{"matrix": [11, 0], "x": 13.5, "y": 4},
- {"matrix": [5, 0], "x": 0, "y": 5.5},
- {"matrix": [5, 1], "x": 1, "y": 5.5},
- {"matrix": [5, 2], "x": 2, "y": 5.5},
- {"matrix": [5, 3], "x": 3, "y": 5.5},
-
- {"matrix": [12, 0], "x": 10.5, "y": 5.5},
- {"matrix": [12, 1], "x": 11.5, "y": 5.5},
- {"matrix": [12, 2], "x": 12.5, "y": 5.5},
- {"matrix": [12, 3], "x": 13.5, "y": 5.5},
-
{"matrix": [6, 0], "x": 0, "y": 6.5},
{"matrix": [6, 1], "x": 1, "y": 6.5},
{"matrix": [6, 2], "x": 2, "y": 6.5},
diff --git a/keyboards/rgbkb/mun/rev1/rev1.c b/keyboards/rgbkb/mun/rev1/rev1.c
index 564ce4dfb9..986916b4a9 100644
--- a/keyboards/rgbkb/mun/rev1/rev1.c
+++ b/keyboards/rgbkb/mun/rev1/rev1.c
@@ -12,25 +12,12 @@
#define NUMBER_OF_TOUCH_ENCODERS 2
#define TOUCH_ENCODER_OPTIONS TOUCH_SEGMENTS + 2
-#define NUMBER_OF_ENCODERS 4
-#define ENCODER_OPTIONS 2
-
typedef struct PACKED {
uint8_t r;
uint8_t c;
} encodermap_t;
-// this maps encoders and then touch encoders to their respective electrical matrix entry
-// mapping is row (y) then column (x) when looking at the electrical layout
-const encodermap_t encoder_map[NUMBER_OF_ENCODERS][ENCODER_OPTIONS] =
-{
- { { 5, 0 }, { 5, 1 } }, // Encoder 1 matrix entries
- { { 5, 2 }, { 5, 3 } }, // Encoder 2 matrix entries
- { { 12, 0 }, { 12, 1 } }, // Encoder 3 matrix entries
- { { 12, 2 }, { 12, 3 } }, // Encoder 4 matrix entries
-};
-
-const encodermap_t touch_encoder_map[NUMBER_OF_TOUCH_ENCODERS][TOUCH_ENCODER_OPTIONS] =
+const encodermap_t touch_encoder_map[NUMBER_OF_TOUCH_ENCODERS][TOUCH_ENCODER_OPTIONS] =
{
{ { 6, 0 }, { 6, 1 }, { 6, 2 }, { 6, 3 }, { 6, 4 } }, // Touch Encoder 1 matrix entries
{ { 13, 0 }, { 13, 1 }, { 13, 2 }, { 13, 3 }, { 13, 4 } } // Touch Encoder 2 matrix entries
@@ -44,24 +31,6 @@ static void process_encoder_matrix(encodermap_t pos) {
action_exec(MAKE_KEYEVENT(pos.r, pos.c, false));
}
-bool encoder_update_kb(uint8_t index, bool clockwise) {
- if (!encoder_update_user(index, clockwise))
- return false;
-
- // Mapping clockwise (typically increase) to zero, and counter clockwise (decrease) to 1
- process_encoder_matrix(encoder_map[index][clockwise ? 0 : 1]);
- return false;
-}
-
-bool touch_encoder_update_kb(uint8_t index, bool clockwise) {
- if (!touch_encoder_update_user(index, clockwise))
- return false;
-
- // Mapping clockwise (typically increase) to zero, and counter clockwise (decrease) to 1
- process_encoder_matrix(touch_encoder_map[index][clockwise ? 0 : 1]);
- return false;
-}
-
bool touch_encoder_tapped_kb(uint8_t index, uint8_t section) {
if (!touch_encoder_tapped_user(index, section))
return false;