summaryrefslogtreecommitdiff
path: root/keyboards/custommk
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/custommk')
-rw-r--r--keyboards/custommk/ergostrafer/config.h2
-rw-r--r--keyboards/custommk/ergostrafer/info.json3
-rw-r--r--keyboards/custommk/evo70/config.h2
-rw-r--r--keyboards/custommk/evo70/info.json155
-rw-r--r--keyboards/custommk/evo70/keymaps/default/keymap.c6
-rw-r--r--keyboards/custommk/evo70/keymaps/via/keymap.c58
-rw-r--r--keyboards/custommk/evo70/keymaps/via/rules.mk1
-rw-r--r--keyboards/custommk/genesis/rev1/config.h16
-rw-r--r--keyboards/custommk/genesis/rev1/info.json20
-rw-r--r--keyboards/custommk/genesis/rev2/config.h16
-rw-r--r--keyboards/custommk/genesis/rev2/info.json53
-rw-r--r--keyboards/custommk/genesis/rev2/keymaps/via/keymap.c129
-rw-r--r--keyboards/custommk/genesis/rev2/keymaps/via/rules.mk3
13 files changed, 159 insertions, 305 deletions
diff --git a/keyboards/custommk/ergostrafer/config.h b/keyboards/custommk/ergostrafer/config.h
index c5a0ec75b5..9622315def 100644
--- a/keyboards/custommk/ergostrafer/config.h
+++ b/keyboards/custommk/ergostrafer/config.h
@@ -16,8 +16,6 @@
#define SPI_MISO_PIN B4
#define SPI_MISO_PAL_MODE 5
-#define TAP_CODE_DELAY 10
-
// Audio configuration
#define AUDIO_PIN B8
#define AUDIO_PWM_DRIVER PWMD4
diff --git a/keyboards/custommk/ergostrafer/info.json b/keyboards/custommk/ergostrafer/info.json
index 66f1562fd9..590925065e 100644
--- a/keyboards/custommk/ergostrafer/info.json
+++ b/keyboards/custommk/ergostrafer/info.json
@@ -79,5 +79,8 @@
{ "pin_a": "B12", "pin_b": "B14"},
{ "pin_a": "B15", "pin_b": "A15"}
]
+ },
+ "qmk": {
+ "tap_keycode_delay": 10
}
} \ No newline at end of file
diff --git a/keyboards/custommk/evo70/config.h b/keyboards/custommk/evo70/config.h
index 3010e4989d..00f78c6339 100644
--- a/keyboards/custommk/evo70/config.h
+++ b/keyboards/custommk/evo70/config.h
@@ -20,6 +20,4 @@
#define OLED_DISABLE_TIMEOUT
-#define TAP_CODE_DELAY 10
-
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL + 4
diff --git a/keyboards/custommk/evo70/info.json b/keyboards/custommk/evo70/info.json
index 769e2e6118..95464e691a 100644
--- a/keyboards/custommk/evo70/info.json
+++ b/keyboards/custommk/evo70/info.json
@@ -29,6 +29,9 @@
{"pin_a": "C7", "pin_b": "D5", "resolution": 2}
]
},
+ "qmk": {
+ "tap_keycode_delay": 10
+ },
"backlight": {
"pin": "B5",
"levels": 17,
@@ -65,94 +68,90 @@
"layouts": {
"LAYOUT": {
"layout": [
- {"matrix": [0, 0], "x": 2.5, "y": 1.1},
- {"matrix": [5, 0], "x": 3.5, "y": 1.1},
- {"matrix": [0, 1], "x": 4.5, "y": 1.1},
- {"matrix": [0, 2], "x": 5.5, "y": 1.1},
- {"matrix": [0, 3], "x": 6.5, "y": 1.1},
- {"matrix": [0, 4], "x": 7.5, "y": 1.1},
- {"matrix": [0, 5], "x": 8.5, "y": 1.1},
- {"matrix": [0, 6], "x": 9.5, "y": 1.1},
- {"matrix": [0, 7], "x": 10.5, "y": 1.1},
- {"matrix": [0, 8], "x": 11.5, "y": 1.1},
- {"matrix": [0, 9], "x": 12.5, "y": 1.1},
- {"matrix": [0, 10], "x": 13.5, "y": 1.1},
- {"matrix": [0, 11], "x": 14.5, "y": 1.1},
- {"matrix": [0, 12], "x": 15.5, "y": 1.1, "w": 2},
- {"matrix": [0, 13], "x": 17.5, "y": 1.1},
-
- {"matrix": [5, 1], "x": 2.5, "y": 2.1, "w": 1.5},
- {"matrix": [1, 0], "x": 4, "y": 2.1},
- {"matrix": [1, 1], "x": 5, "y": 2.1},
- {"matrix": [1, 2], "x": 6, "y": 2.1},
- {"matrix": [1, 3], "x": 7, "y": 2.1},
- {"matrix": [1, 4], "x": 8, "y": 2.1},
- {"matrix": [1, 5], "x": 9, "y": 2.1},
- {"matrix": [1, 6], "x": 10, "y": 2.1},
- {"matrix": [1, 7], "x": 11, "y": 2.1},
- {"matrix": [1, 8], "x": 12, "y": 2.1},
- {"matrix": [1, 9], "x": 13, "y": 2.1},
- {"matrix": [1, 10], "x": 14, "y": 2.1},
- {"matrix": [1, 11], "x": 15, "y": 2.1},
- {"matrix": [1, 12], "x": 16, "y": 2.1, "w": 1.5},
- {"matrix": [1, 13], "x": 17.5, "y": 2.1},
-
- {"matrix": [5, 5], "x": 0, "y": 3.1},
- {"matrix": [2, 0], "x": 1, "y": 3.1},
+ {"matrix": [0, 0], "x": 2.5, "y": 0},
+ {"matrix": [5, 0], "x": 3.5, "y": 0},
+ {"matrix": [0, 1], "x": 4.5, "y": 0},
+ {"matrix": [0, 2], "x": 5.5, "y": 0},
+ {"matrix": [0, 3], "x": 6.5, "y": 0},
+ {"matrix": [0, 4], "x": 7.5, "y": 0},
+ {"matrix": [0, 5], "x": 8.5, "y": 0},
+ {"matrix": [0, 6], "x": 9.5, "y": 0},
+ {"matrix": [0, 7], "x": 10.5, "y": 0},
+ {"matrix": [0, 8], "x": 11.5, "y": 0},
+ {"matrix": [0, 9], "x": 12.5, "y": 0},
+ {"matrix": [0, 10], "x": 13.5, "y": 0},
+ {"matrix": [0, 11], "x": 14.5, "y": 0},
+ {"matrix": [0, 12], "x": 15.5, "y": 0, "w": 2},
+ {"matrix": [0, 13], "x": 17.5, "y": 0},
- {"matrix": [5, 2], "x": 2.5, "y": 3.1, "w": 1.75},
- {"matrix": [2, 1], "x": 4.25, "y": 3.1},
- {"matrix": [2, 2], "x": 5.25, "y": 3.1},
- {"matrix": [2, 3], "x": 6.25, "y": 3.1},
- {"matrix": [2, 4], "x": 7.25, "y": 3.1},
- {"matrix": [2, 5], "x": 8.25, "y": 3.1},
- {"matrix": [2, 6], "x": 9.25, "y": 3.1},
- {"matrix": [2, 7], "x": 10.25, "y": 3.1},
- {"matrix": [2, 8], "x": 11.25, "y": 3.1},
- {"matrix": [2, 9], "x": 12.25, "y": 3.1},
- {"matrix": [2, 10], "x": 13.25, "y": 3.1},
- {"matrix": [2, 11], "x": 14.25, "y": 3.1},
- {"matrix": [2, 12], "x": 15.25, "y": 3.1, "w": 2.25},
- {"matrix": [2, 13], "x": 17.5, "y": 3.1},
+ {"matrix": [5, 1], "x": 2.5, "y": 1, "w": 1.5},
+ {"matrix": [1, 0], "x": 4, "y": 1},
+ {"matrix": [1, 1], "x": 5, "y": 1},
+ {"matrix": [1, 2], "x": 6, "y": 1},
+ {"matrix": [1, 3], "x": 7, "y": 1},
+ {"matrix": [1, 4], "x": 8, "y": 1},
+ {"matrix": [1, 5], "x": 9, "y": 1},
+ {"matrix": [1, 6], "x": 10, "y": 1},
+ {"matrix": [1, 7], "x": 11, "y": 1},
+ {"matrix": [1, 8], "x": 12, "y": 1},
+ {"matrix": [1, 9], "x": 13, "y": 1},
+ {"matrix": [1, 10], "x": 14, "y": 1},
+ {"matrix": [1, 11], "x": 15, "y": 1},
+ {"matrix": [1, 12], "x": 16, "y": 1, "w": 1.5},
+ {"matrix": [1, 13], "x": 17.5, "y": 1},
- {"matrix": [4, 6], "x": 0, "y": 4.1},
- {"matrix": [4, 4], "x": 1, "y": 4.1},
+ {"matrix": [5, 5], "x": 0, "y": 2},
+ {"matrix": [2, 0], "x": 1, "y": 2},
- {"matrix": [3, 0], "x": 2.5, "y": 4.1, "w": 2.25},
- {"matrix": [3, 1], "x": 4.75, "y": 4.1},
- {"matrix": [3, 2], "x": 5.75, "y": 4.1},
- {"matrix": [3, 3], "x": 6.75, "y": 4.1},
- {"matrix": [3, 4], "x": 7.75, "y": 4.1},
- {"matrix": [3, 5], "x": 8.75, "y": 4.1},
- {"matrix": [3, 6], "x": 9.75, "y": 4.1},
- {"matrix": [3, 7], "x": 10.75, "y": 4.1},
- {"matrix": [3, 8], "x": 11.75, "y": 4.1},
- {"matrix": [3, 9], "x": 12.75, "y": 4.1},
- {"matrix": [3, 10], "x": 13.75, "y": 4.1},
- {"matrix": [3, 11], "x": 14.75, "y": 4.1, "w": 1.75},
- {"matrix": [3, 12], "x": 16.5, "y": 4.1},
- {"matrix": [3, 13], "x": 17.5, "y": 4.1},
+ {"matrix": [5, 2], "x": 2.5, "y": 2, "w": 1.75},
+ {"matrix": [2, 1], "x": 4.25, "y": 2},
+ {"matrix": [2, 2], "x": 5.25, "y": 2},
+ {"matrix": [2, 3], "x": 6.25, "y": 2},
+ {"matrix": [2, 4], "x": 7.25, "y": 2},
+ {"matrix": [2, 5], "x": 8.25, "y": 2},
+ {"matrix": [2, 6], "x": 9.25, "y": 2},
+ {"matrix": [2, 7], "x": 10.25, "y": 2},
+ {"matrix": [2, 8], "x": 11.25, "y": 2},
+ {"matrix": [2, 9], "x": 12.25, "y": 2},
+ {"matrix": [2, 10], "x": 13.25, "y": 2},
+ {"matrix": [2, 11], "x": 14.25, "y": 2},
+ {"matrix": [2, 12], "x": 15.25, "y": 2, "w": 2.25},
+ {"matrix": [2, 13], "x": 17.5, "y": 2},
- {"matrix": [4, 1], "x": 0, "y": 5.1},
- {"matrix": [4, 3], "x": 1, "y": 5.1},
+ {"matrix": [4, 6], "x": 0, "y": 3},
+ {"matrix": [4, 4], "x": 1, "y": 3},
- {"matrix": [5, 4], "x": 2.5, "y": 5.1, "w": 1.25},
- {"matrix": [4, 0], "x": 3.75, "y": 5.1, "w": 1.25},
- {"matrix": [4, 2], "x": 5, "y": 5.1, "w": 1.25},
- {"matrix": [4, 5], "x": 6.25, "y": 5.1, "w": 6.25},
+ {"matrix": [3, 0], "x": 2.5, "y": 3, "w": 2.25},
+ {"matrix": [3, 1], "x": 4.75, "y": 3},
+ {"matrix": [3, 2], "x": 5.75, "y": 3},
+ {"matrix": [3, 3], "x": 6.75, "y": 3},
+ {"matrix": [3, 4], "x": 7.75, "y": 3},
+ {"matrix": [3, 5], "x": 8.75, "y": 3},
+ {"matrix": [3, 6], "x": 9.75, "y": 3},
+ {"matrix": [3, 7], "x": 10.75, "y": 3},
+ {"matrix": [3, 8], "x": 11.75, "y": 3},
+ {"matrix": [3, 9], "x": 12.75, "y": 3},
+ {"matrix": [3, 10], "x": 13.75, "y": 3},
+ {"matrix": [3, 11], "x": 14.75, "y": 3, "w": 1.75},
+ {"matrix": [3, 12], "x": 16.5, "y": 3},
+ {"matrix": [3, 13], "x": 17.5, "y": 3},
- {"matrix": [5, 6], "x": 0.5, "y": 1.1},
+ {"matrix": [4, 1], "x": 0, "y": 4},
+ {"matrix": [4, 3], "x": 1, "y": 4},
- {"matrix": [4, 7], "x": 0, "y": 0},
+ {"matrix": [5, 4], "x": 2.5, "y": 4, "w": 1.25},
+ {"matrix": [4, 0], "x": 3.75, "y": 4, "w": 1.25},
+ {"matrix": [4, 2], "x": 5, "y": 4, "w": 1.25},
+ {"matrix": [4, 5], "x": 6.25, "y": 4, "w": 6.25},
- {"matrix": [4, 8], "x": 12.5, "y": 5.1, "w": 1.25},
- {"matrix": [4, 9], "x": 13.75, "y": 5.1, "w": 1.25},
+ {"matrix": [5, 6], "x": 0.5, "y": 0},
- {"matrix": [4, 10], "x": 1, "y": 0},
+ {"matrix": [4, 8], "x": 12.5, "y": 4, "w": 1.25},
+ {"matrix": [4, 9], "x": 13.75, "y": 4, "w": 1.25},
- {"matrix": [4, 11], "x": 15.5, "y": 5.1},
- {"matrix": [4, 12], "x": 16.5, "y": 5.1},
- {"matrix": [4, 13], "x": 17.5, "y": 5.1}
+ {"matrix": [4, 11], "x": 15.5, "y": 4},
+ {"matrix": [4, 12], "x": 16.5, "y": 4},
+ {"matrix": [4, 13], "x": 17.5, "y": 4}
]
}
}
diff --git a/keyboards/custommk/evo70/keymaps/default/keymap.c b/keyboards/custommk/evo70/keymaps/default/keymap.c
index 6f518dd964..b577b885b2 100644
--- a/keyboards/custommk/evo70/keymaps/default/keymap.c
+++ b/keyboards/custommk/evo70/keymaps/default/keymap.c
@@ -23,7 +23,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP,
KC_F1, KC_F2, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,
KC_F3, KC_F4, 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_UP, KC_END,
- KC_F5, KC_F6, KC_LCTL, KC_LWIN, KC_LALT, KC_SPACE, KC_NO, KC_VOLD, KC_RALT, KC_RCTL, KC_VOLU, KC_LEFT, KC_DOWN, KC_RGHT
+ KC_F5, KC_F6, KC_LCTL, KC_LWIN, KC_LALT, KC_SPACE, KC_NO, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT(
@@ -31,6 +31,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_TRNS, KC_BSLS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_F7, KC_F8, KC_TRNS, BL_TOGG, BL_STEP, BL_BRTG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_F9, KC_F10, KC_TRNS, RGB_TOG, RGB_MOD, RGB_RMOD, RGB_VAI, RGB_VAD, RGB_HUI, RGB_HUD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
- ),
+ KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+ )
};
diff --git a/keyboards/custommk/evo70/keymaps/via/keymap.c b/keyboards/custommk/evo70/keymaps/via/keymap.c
index 34de0889ee..bff3309e63 100644
--- a/keyboards/custommk/evo70/keymaps/via/keymap.c
+++ b/keyboards/custommk/evo70/keymaps/via/keymap.c
@@ -23,7 +23,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP,
KC_F1, KC_F2, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,
KC_F3, KC_F4, 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_UP, KC_END,
- KC_F5, KC_F6, KC_LCTL, KC_LWIN, KC_LALT, KC_SPACE, KC_NO, KC_VOLD, KC_RALT, KC_RCTL, KC_VOLU, KC_LEFT, KC_DOWN, KC_RGHT
+ KC_F5, KC_F6, KC_LCTL, KC_LWIN, KC_LALT, KC_SPACE, KC_NO, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT(
@@ -31,57 +31,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_TRNS, KC_BSLS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_F7, KC_F8, KC_TRNS, BL_TOGG, BL_STEP, BL_BRTG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_F9, KC_F10, KC_TRNS, RGB_TOG, RGB_MOD, RGB_RMOD, RGB_VAI, RGB_VAD, RGB_HUI, RGB_HUD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+ KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
),
};
-static bool custom_encoder_mode = false;
-
-void set_custom_encoder_mode_user(bool custom_mode) {
- custom_encoder_mode = custom_mode;
-}
-
-
-keyevent_t encoder_ccw = {
- .key = (keypos_t){.row = 4, .col = 7},
- .pressed = false,
- .type = KEY_EVENT
-};
-
-keyevent_t encoder_cw = {
- .key = (keypos_t){.row = 4, .col = 10},
- .pressed = false,
- .type = KEY_EVENT
+#ifdef ENCODER_MAP_ENABLE
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
+ [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
+ [1] = { ENCODER_CCW_CW(_______, _______) },
};
-
-
-bool encoder_update_user(uint8_t index, bool clockwise) {
- if (custom_encoder_mode) {
- if (clockwise) {
- encoder_cw.pressed = true;
- encoder_cw.time = timer_read();
- action_exec(encoder_cw);
- }
- else {
- encoder_ccw.pressed = true;
- encoder_ccw.time = timer_read();
- action_exec(encoder_ccw);
- }
- return false;
- }
- return true;
-}
-
-void matrix_scan_user(void) {
- if (encoder_ccw.pressed) {
- encoder_ccw.pressed = false;
- encoder_ccw.time = timer_read();
- action_exec(encoder_ccw);
- }
-
- if (encoder_cw.pressed) {
- encoder_cw.pressed = false;
- encoder_cw.time = timer_read();
- action_exec(encoder_cw);
- }
-}
+#endif
diff --git a/keyboards/custommk/evo70/keymaps/via/rules.mk b/keyboards/custommk/evo70/keymaps/via/rules.mk
index 1e5b99807c..f1adcab005 100644
--- a/keyboards/custommk/evo70/keymaps/via/rules.mk
+++ b/keyboards/custommk/evo70/keymaps/via/rules.mk
@@ -1 +1,2 @@
VIA_ENABLE = yes
+ENCODER_MAP_ENABLE = yes
diff --git a/keyboards/custommk/genesis/rev1/config.h b/keyboards/custommk/genesis/rev1/config.h
index d894b55edf..95d3935904 100644
--- a/keyboards/custommk/genesis/rev1/config.h
+++ b/keyboards/custommk/genesis/rev1/config.h
@@ -16,21 +16,5 @@
#pragma once
-#define TAP_CODE_DELAY 10
-
-#define RGBLIGHT_EFFECT_BREATHING
-#define RGBLIGHT_EFFECT_RAINBOW_MOOD
-#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
-#define RGBLIGHT_EFFECT_SNAKE
-#define RGBLIGHT_EFFECT_KNIGHT
-#define RGBLIGHT_EFFECT_CHRISTMAS
-#define RGBLIGHT_EFFECT_STATIC_GRADIENT
-#define RGBLIGHT_EFFECT_RGB_TEST
-#define RGBLIGHT_EFFECT_ALTERNATING
-#define RGBLIGHT_EFFECT_TWINKLE
-#define RGBLED_NUM 13
-#define RGBLIGHT_HUE_STEP 8
-#define RGBLIGHT_SAT_STEP 8
-#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL + 4
diff --git a/keyboards/custommk/genesis/rev1/info.json b/keyboards/custommk/genesis/rev1/info.json
index 4915497bb0..f859a6b9bf 100644
--- a/keyboards/custommk/genesis/rev1/info.json
+++ b/keyboards/custommk/genesis/rev1/info.json
@@ -12,7 +12,22 @@
"pin": "E6"
},
"rgblight": {
- "max_brightness": 128
+ "saturation_steps": 8,
+ "brightness_steps": 8,
+ "led_count": 13,
+ "max_brightness": 128,
+ "animations": {
+ "breathing": true,
+ "rainbow_mood": true,
+ "rainbow_swirl": true,
+ "snake": true,
+ "knight": true,
+ "christmas": true,
+ "static_gradient": true,
+ "rgb_test": true,
+ "alternating": true,
+ "twinkle": true
+ }
},
"matrix_pins": {
"cols": ["F4", "F5", "D7", "B4"],
@@ -25,6 +40,9 @@
{"pin_a": "D2", "pin_b": "D1", "resolution": 2}
]
},
+ "qmk": {
+ "tap_keycode_delay": 10
+ },
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"layouts": {
diff --git a/keyboards/custommk/genesis/rev2/config.h b/keyboards/custommk/genesis/rev2/config.h
index 126caeab6a..b6e7c0cdf7 100644
--- a/keyboards/custommk/genesis/rev2/config.h
+++ b/keyboards/custommk/genesis/rev2/config.h
@@ -16,22 +16,6 @@
#pragma once
-#define TAP_CODE_DELAY 10
-
-#define RGBLIGHT_EFFECT_BREATHING
-#define RGBLIGHT_EFFECT_RAINBOW_MOOD
-#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
-#define RGBLIGHT_EFFECT_SNAKE
-#define RGBLIGHT_EFFECT_KNIGHT
-#define RGBLIGHT_EFFECT_CHRISTMAS
-#define RGBLIGHT_EFFECT_STATIC_GRADIENT
-#define RGBLIGHT_EFFECT_RGB_TEST
-#define RGBLIGHT_EFFECT_ALTERNATING
-#define RGBLIGHT_EFFECT_TWINKLE
-#define RGBLED_NUM 13
#define RGBLIGHT_LAYERS
-#define RGBLIGHT_HUE_STEP 8
-#define RGBLIGHT_SAT_STEP 8
-#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL + 4
diff --git a/keyboards/custommk/genesis/rev2/info.json b/keyboards/custommk/genesis/rev2/info.json
index 0ee3d9a537..5760ba52cd 100644
--- a/keyboards/custommk/genesis/rev2/info.json
+++ b/keyboards/custommk/genesis/rev2/info.json
@@ -12,7 +12,22 @@
"pin": "E6"
},
"rgblight": {
- "max_brightness": 128
+ "saturation_steps": 8,
+ "brightness_steps": 8,
+ "led_count": 13,
+ "max_brightness": 128,
+ "animations": {
+ "breathing": true,
+ "rainbow_mood": true,
+ "rainbow_swirl": true,
+ "snake": true,
+ "knight": true,
+ "christmas": true,
+ "static_gradient": true,
+ "rgb_test": true,
+ "alternating": true,
+ "twinkle": true
+ }
},
"matrix_pins": {
"cols": ["F4", "F5", "D7", "B4"],
@@ -25,6 +40,9 @@
{"pin_a": "D2", "pin_b": "D1", "resolution": 2}
]
},
+ "qmk": {
+ "tap_keycode_delay": 10
+ },
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"layouts": {
@@ -80,39 +98,6 @@
{"matrix": [4, 2], "x": 0, "y": 4, "w": 2},
{"matrix": [4, 3], "x": 2, "y": 4}
]
- },
- "LAYOUT_via_6x4": {
- "layout": [
- {"matrix": [5, 0], "x": 0, "y": 0},
- {"matrix": [5, 1], "x": 1, "y": 0},
- {"matrix": [5, 2], "x": 3, "y": 0},
- {"matrix": [5, 3], "x": 4, "y": 0},
-
- {"matrix": [0, 0], "x": 0.5, "y": 1.1},
- {"matrix": [0, 1], "x": 1.5, "y": 1.1},
- {"matrix": [0, 2], "x": 2.5, "y": 1.1},
- {"matrix": [0, 3], "x": 3.5, "y": 1.1},
-
- {"matrix": [1, 0], "x": 0.5, "y": 2.1},
- {"matrix": [1, 1], "x": 1.5, "y": 2.1},
- {"matrix": [1, 2], "x": 2.5, "y": 2.1},
- {"matrix": [1, 3], "x": 3.5, "y": 2.1},
-
- {"matrix": [2, 0], "x": 0.5, "y": 3.1},
- {"matrix": [2, 1], "x": 1.5, "y": 3.1},
- {"matrix": [2, 2], "x": 2.5, "y": 3.1},
- {"matrix": [2, 3], "x": 3.5, "y": 3.1},
-
- {"matrix": [3, 0], "x": 0.5, "y": 4.1},
- {"matrix": [3, 1], "x": 1.5, "y": 4.1},
- {"matrix": [3, 2], "x": 2.5, "y": 4.1},
- {"matrix": [3, 3], "x": 3.5, "y": 4.1},
-
- {"matrix": [4, 0], "x": 0.5, "y": 5.1},
- {"matrix": [4, 1], "x": 1.5, "y": 5.1},
- {"matrix": [4, 2], "x": 2.5, "y": 5.1},
- {"matrix": [4, 3], "x": 3.5, "y": 5.1}
- ]
}
}
}
diff --git a/keyboards/custommk/genesis/rev2/keymaps/via/keymap.c b/keyboards/custommk/genesis/rev2/keymaps/via/keymap.c
index 6739b8857d..e49f614cb7 100644
--- a/keyboards/custommk/genesis/rev2/keymaps/via/keymap.c
+++ b/keyboards/custommk/genesis/rev2/keymaps/via/keymap.c
@@ -13,7 +13,7 @@
* 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
//#define GENESIS_LAYER_COLORS
@@ -24,36 +24,32 @@
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [0] = LAYOUT_via_6x4(
- KC_VOLD, KC_VOLU, KC_VOLD, KC_VOLU,
- MO(1), KC_PSLS, KC_PAST, KC_PMNS,
- KC_P7, KC_P8, KC_P9, KC_PGUP,
- KC_P4, KC_P5, KC_P6, KC_PPLS,
- KC_P1, KC_P2, KC_P3, KC_PGDN,
+ [0] = LAYOUT_ortho_5x4(
+ MO(1), KC_PSLS, KC_PAST, KC_PMNS,
+ KC_P7, KC_P8, KC_P9, KC_PGUP,
+ KC_P4, KC_P5, KC_P6, KC_PPLS,
+ KC_P1, KC_P2, KC_P3, KC_PGDN,
KC_P0, KC_SPC, KC_PDOT, KC_PENT),
- [1] = LAYOUT_via_6x4(
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, RGB_TOG, RGB_MOD, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- RGB_VAI, RGB_VAD, RGB_SPI, RGB_SPD,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ [1] = LAYOUT_ortho_5x4(
+ KC_TRNS, RGB_TOG, RGB_MOD, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ RGB_VAI, RGB_VAD, RGB_SPI, RGB_SPD,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
RGB_HUI, RGB_HUD, KC_TRNS, KC_TRNS),
- [2] = LAYOUT_via_6x4(
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ [2] = LAYOUT_ortho_5x4(
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
- [3] = LAYOUT_via_6x4(
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ [3] = LAYOUT_ortho_5x4(
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
};
@@ -92,80 +88,11 @@ void keyboard_post_init_user(void) {
}
#endif
-
-keyevent_t encoder_left_ccw = {
- .key = (keypos_t){.row = 5, .col = 0},
- .pressed = false,
- .type = KEY_EVENT
-};
-
-keyevent_t encoder_left_cw = {
- .key = (keypos_t){.row = 5, .col = 1},
- .pressed = false,
- .type = KEY_EVENT
-};
-
-keyevent_t encoder_right_ccw = {
- .key = (keypos_t){.row = 5, .col = 2},
- .pressed = false,
- .type = KEY_EVENT
-};
-
-keyevent_t encoder_right_cw = {
- .key = (keypos_t){.row = 5, .col = 3},
- .pressed = false,
- .type = KEY_EVENT
+#ifdef ENCODER_MAP_ENABLE
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
+ [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
+ [1] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
+ [2] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
+ [3] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) }
};
-
-void matrix_scan_user(void) {
- if (encoder_left_ccw.pressed) {
- encoder_left_ccw.pressed = false;
- encoder_left_ccw.time = timer_read();
- action_exec(encoder_left_ccw);
- }
-
- if (encoder_left_cw.pressed) {
- encoder_left_cw.pressed = false;
- encoder_left_cw.time = timer_read();
- action_exec(encoder_left_cw);
- }
-
- if (encoder_right_ccw.pressed) {
- encoder_right_ccw.pressed = false;
- encoder_right_ccw.time = timer_read();
- action_exec(encoder_right_ccw);
- }
-
- if (encoder_right_cw.pressed) {
- encoder_right_cw.pressed = false;
- encoder_right_cw.time = timer_read();
- action_exec(encoder_right_cw);
- }
-
-}
-
-
-bool encoder_update_user(uint8_t index, bool clockwise) {
- if (index == 0) {
- if (clockwise) {
- encoder_left_cw.pressed = true;
- encoder_left_cw.time = timer_read();
- action_exec(encoder_left_cw);
- } else {
- encoder_left_ccw.pressed = true;
- encoder_left_ccw.time = timer_read();
- action_exec(encoder_left_ccw);
- }
- } else {
- if (clockwise) {
- encoder_right_cw.pressed = true;
- encoder_right_cw.time = timer_read();
- action_exec(encoder_right_cw);
- } else {
- encoder_right_ccw.pressed = true;
- encoder_right_ccw.time = timer_read();
- action_exec(encoder_right_ccw);
- }
- }
- return false;
-}
+#endif
diff --git a/keyboards/custommk/genesis/rev2/keymaps/via/rules.mk b/keyboards/custommk/genesis/rev2/keymaps/via/rules.mk
index 43061db1dd..1189f4ad19 100644
--- a/keyboards/custommk/genesis/rev2/keymaps/via/rules.mk
+++ b/keyboards/custommk/genesis/rev2/keymaps/via/rules.mk
@@ -1,2 +1,3 @@
VIA_ENABLE = yes
-LTO_ENABLE = yes \ No newline at end of file
+LTO_ENABLE = yes
+ENCODER_MAP_ENABLE = yes