aboutsummaryrefslogtreecommitdiff
path: root/keyboards/massdrop
diff options
context:
space:
mode:
authorAhmed Elshafey <12426718+ash0x0@users.noreply.github.com>2019-12-05 11:03:03 +0200
committerDrashna Jaelre <drashna@live.com>2019-12-05 01:03:03 -0800
commit9c8e66dc05148b6890eef05b51a5be6adfaf0246 (patch)
treec183d8c05aad495ad6559bb5ddef8141eee1f811 /keyboards/massdrop
parent3ad389de55aa73eef4542807488a70a19639df11 (diff)
downloadqmk_firmware-9c8e66dc05148b6890eef05b51a5be6adfaf0246.tar.gz
qmk_firmware-9c8e66dc05148b6890eef05b51a5be6adfaf0246.zip
[Keymap] Added Massdrop ctrl keymap (#7491)
* massdrop ctrl endgame keymap first commit * massdrop ctrl endgame keymap update Added double dance functions to toggle mouse layer while keeping LGUI key functionality. Added led config and related functionality. Added RGB indicators for effective keys on layers. Fixed RGB timeout ignoring user set LED flags. At current state, layer RGB indicators ignore RGB brightness value, will add toggle key later to toggle between current keyboard brightness and max brightness as it's nice to have the indicator RGB at max brightness but still too bright at times. * updated documentation and added RGB indicator for ctrl and shift in function layer * Update keyboards/massdrop/ctrl/keymaps/endgame/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/massdrop/ctrl/keymaps/endgame/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Various fixes and changes. Removed backslashed at end of layouts, better looking. Changed layout names from macro definitions to enum. Replaced MOD_BIT with MOD_MASK macros.
Diffstat (limited to 'keyboards/massdrop')
-rw-r--r--keyboards/massdrop/ctrl/keymaps/endgame/README.md75
-rw-r--r--keyboards/massdrop/ctrl/keymaps/endgame/config.h74
-rw-r--r--keyboards/massdrop/ctrl/keymaps/endgame/config_led.c82
-rw-r--r--keyboards/massdrop/ctrl/keymaps/endgame/keymap.c421
-rw-r--r--keyboards/massdrop/ctrl/keymaps/endgame/rules.mk12
5 files changed, 664 insertions, 0 deletions
diff --git a/keyboards/massdrop/ctrl/keymaps/endgame/README.md b/keyboards/massdrop/ctrl/keymaps/endgame/README.md
new file mode 100644
index 000000000..9a0b2d8ef
--- /dev/null
+++ b/keyboards/massdrop/ctrl/keymaps/endgame/README.md
@@ -0,0 +1,75 @@
1# Massdrop Ctrl Endgame
2
3This keymap is here to show some love to the MD Ctrl.
4
5## Layers
6
7### Typing Layer
8
9![Typing Layer](https://i.imgur.com/1uSVUdU.png)
10
11### Function Layer
12
13![Function Layer](https://i.imgur.com/rINs7ro.png)
14
15### Mouse Layer
16
17![Mouse Layer](https://i.imgur.com/IaS0nAB.png)
18
19## Features
20
21These are the features currently supported by this keymap:
22
23### RGB Time Out
24
25This allows setting a dynamic timeout for RGB to turn off. The following is supported:
26
271. Restores on the first click of any key.
282. Restores to its previous state before timeout. i.e. if it was edge only before timeout it will restore to edge only, same for all modes.
293. Doesn't interfere with RGB modes. You can set keyboard to All, Edge Only or Off and timeout will not interfere with these modes.
304. The time before RGB is turned off is dynamically adjustable using keycodes ROUT_VI to increase, ROUT_VD to decrease. They have a 10 second steps by default. Minimum value 10 seconds by default and maximum is 10 minutes.
315. Can be toggled on or off dyncamically with the ROUT_TG keycode.
326. Can be put in fast mode using ROUT_FM, for movie watching purposes. Default value is 3 seconds. Note that fast mode disabled ROUT_VD and ROUT_VI so to use them again you have to toggle fast mode off with ROUT_FM. It doesn't impact ROUT_TG and ROUT_TG will remember if fast mode was enabled when toggled back on, so it doesn't disable fast mode on its own, only ROUT_FM can disable or enable fast mode.
33
34### Tapdance Keys
35
36Not really a feature. I just want to document what tapdance keys this keymap has because there will be many of them.
37
381. LGUI is used for both LGUI and toggle mouse layer for double tap.
392. LCTRL and RCTRL are used for their respective keycodes at single tap and to send LCTRL+LALT+T for double tap, which opens terminal in most environments.
40
41## Future Work
42
43By the time this is project has accomplished its original primary objectives, the following features will be available for the ctrl:
44
451. Automatic RGB timeout with all the options you would need. **DONE**
462. Macro and Shortcut layers for at least the following: Git, IntelliJ, VIM, Yakuake, KDE, Firefox, Slack, Discord. All using default program configuration. [This list may and probably will get longer]
473. Custom LED configs that offer all the RGB layouts I deem useful or having a unique feature, look or feel.
484. Increased Dynamic Macro slots, because two simply isn't enough. This particular one falls outside Ctrl config and into QMK core modification. However, it is on the list of features I would like this keyboard to have and is a **TOP PRIORITY** for me. It won't be easy, but I will figure it out.
495. Porting from the Drop, Inc. way of doing things to the QMK way of doing things, wherever possible. Full QMK support of this keyboard is the goal, not that it's possible, but I'd like to get as close as it gets.
506. An easier way to configure LED than both the QMK way and the Drop way. I'm thinking of a graphical LED config like Drop configurator that offers the advanced LED config features QMK offers. This may or may not get done depending on whether or not I get sick of QMK LED config at any point. If it does get done, it may or may not be added to QMK Configurator.
517. Better documentation of the MD Ctrl specifications, features, etc. This will be included here in the form of C and doxygen comments. The bigger portion will be included in QMK docs if and where possible.
52
53This list will most probably either expand or have some items removed if they're deemed not worthy, probably both. Nothing will be removed because it can't be done though, I am a firm believer in You Can Do It. Anything modified in this list will be clearly marked, for posterity.
54
55## Motivation
56
57I bought this keyboard because I believed and still believe that it offers the greatest possible value for money for any TKL fan. It was very disappointing to me after receiving it to see that this keyboard didn't get the love it should have in QMK, from either Drop, Inc. or users.
58Granted, this is a TKL RGB board which means it is hated by every single enthusiast in the community. That doesn't mean it shouldn't be getting love form its users, or most importantly its maker.
59
60Drop, Inc. have for some reason decided that they want to work on their own QMK stack. A stupid decision to say the least. Although having made this decision, they did very little actual work on this keyboard and have offered very little support and almost no time working on the firmware. To my knowledge, no one is currently working on it in a truly active fashion. A small handful of people work on the software and even then, they seem to think that their own way of doing things is better than the way chosen by the thousands in the community who have worked on QMK. Their QMK fork for the keyboard is abandoned for months. Updates are few and far between and it seems this keyboard has been forgotten in the annals of 2018 by both its maker and its users.
61
62To their credit, at least they decided to abandon their idiotic RGB setup and have opted after taking their sweet time to use QMK RGB and they did make some much needed changes to mdloader. That being said, Drop, Inc. still don't show love to this keyboard and whether or not they are actually able is questionable.
63
64So the aim of this work, starting with this Keymap, is to make the Massdrop Ctrl a true QMK keyboard instead of the marketing spiel "QMK Supported". As much as it can be made so of course within the bounds of what can be done with information openly available about the keyboard.
65
66I am not of the opinion that a mechanical keyboard is inherently superior. I am of the opinion that a mechanical keyboard is a tool that boosts productivity, enjoyment and efficiency, if it fails at that then it is no longer superior. Programmability is a huge part of that and I can no longer use any keyboard that doesn't have a level of programmability less than QMK offers.
67
68I will personally do my best for this keyboard for no reason other than it will likely be my main keyboard for years to come.
69
70## Credits
71
72RGB timeout functionality was originally inspired by the code in this [gist](https://gist.github.com/algernon/9182469e21894192017f2bb5d478c7df).
73LED config code was mostly transferred from [matthewrobo keymap](https://github.com/qmk/qmk_firmware/tree/master/keyboards/massdrop/ctrl/keymaps/matthewrobo).
74
75Rest of the information about RGB matrix, scan matrix, and whatever information I have used was made publicly available by many other awesome members of the community.
diff --git a/keyboards/massdrop/ctrl/keymaps/endgame/config.h b/keyboards/massdrop/ctrl/keymaps/endgame/config.h
new file mode 100644
index 000000000..cd9a56c82
--- /dev/null
+++ b/keyboards/massdrop/ctrl/keymaps/endgame/config.h
@@ -0,0 +1,74 @@
1#pragma once
2
3#define FORCE_NKRO
4
5#define TG_NKRO MAGIC_TOGGLE_NKRO //Toggle 6KRO / NKRO mode
6
7#define MODS_SHIFT (get_mods() & MOD_MASK_SHIFT)
8#define MODS_CTRL (get_mods() & MOD_MASK_CTRL)
9#define MODS_ALT (get_mods() & MOD_MASK_ALT)
10
11#define PERMISSIVE_HOLD
12#define TAPPING_TERM 250
13
14#define TAP_HOLD_CAPS_DELAY 0
15
16#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
17
18// #define DISABLE_RGB_MATRIX_BAND_SAT
19// #define DISABLE_RGB_MATRIX_BAND_VAL
20// #define DISABLE_RGB_MATRIX_SOLID_COLOR
21// #define DISABLE_RGB_MATRIX_ALPHAS_MODS
22// #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
23// #define DISABLE_RGB_MATRIX_BREATHING
24#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
25#define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
26#define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
27#define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL
28// #define DISABLE_RGB_MATRIX_CYCLE_ALL
29#define DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
30#define DISABLE_RGB_MATRIX_CYCLE_UP_DOWN
31#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN
32#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
33#define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
34#define DISABLE_RGB_MATRIX_CYCLE_PINWHEEL
35#define DISABLE_RGB_MATRIX_CYCLE_SPIRAL
36#define DISABLE_RGB_MATRIX_DUAL_BEACON
37#define DISABLE_RGB_MATRIX_RAINBOW_BEACON
38#define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS
39// #define DISABLE_RGB_MATRIX_RAINDROPS
40// #define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
41// #define DISABLE_RGB_MATRIX_TYPING_HEATMAP
42// #define DISABLE_RGB_MATRIX_DIGITAL_RAIN
43// #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
44// #define DISABLE_RGB_MATRIX_SOLID_REACTIVE
45#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
46#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
47#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
48#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
49#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
50#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
51#define DISABLE_RGB_MATRIX_SPLASH
52#define DISABLE_RGB_MATRIX_MULTISPLASH
53// #define DISABLE_RGB_MATRIX_SOLID_SPLASH
54// #define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
55
56#define QMK_KEYS_PER_SCAN 4
57
58// #define RGB_MATRIX_KEYRELEASES
59
60// some speed shit
61// #define NO_ACTION_MACRO
62// #define NO_ACTION_FUNCTION
63
64// #ifndef NO_DEBUG
65// #define NO_DEBUG
66// #endif // !NO_DEBUG
67
68// #if !defined(NO_PRINT) && !defined(CONSOLE_ENABLE)
69// #define NO_PRINT
70// #endif // !NO_PRINT
71
72// #define NO_ACTION_ONESHOT
73// #define TAPPING_FORCE_HOLD
74// #define IGNORE_MOD_TAP_INTERRUPT
diff --git a/keyboards/massdrop/ctrl/keymaps/endgame/config_led.c b/keyboards/massdrop/ctrl/keymaps/endgame/config_led.c
new file mode 100644
index 000000000..448793cf5
--- /dev/null
+++ b/keyboards/massdrop/ctrl/keymaps/endgame/config_led.c
@@ -0,0 +1,82 @@
1#ifdef RGB_MATRIX_ENABLE
2#include "ctrl.h"
3
4#include "led_matrix.h"
5#include "rgb_matrix.h"
6#include "config_led.h"
7
8led_config_t g_led_config = { {
9 { 0, 1, 2, 3, 4, 5, 6, 7 },
10 { 16, 17, 18, 19, 20, 21, 22, 23 },
11 { 33, 34, 35, 36, 37, 38, 39, 40 },
12 { 50, 51, 52, 53, 54, 55, 56, 57 },
13 { 63, 64, 65, 66, 67, 68, 69, 70 },
14 { 76, 77, 78, 79, 80, 81, 82, 83 },
15 { 8, 9, 10, 11, 12, 13, 14, 15 },
16 { 24, 25, 26, 27, 28, 29, 30, 31 },
17 { 41, 42, 43, 44, 45, 46, 47, 48 },
18 { 58, 59, 60, 61, 62, 75, 49, 32 },
19 { 71, 72, 73, 74, 84, 85, 86, NO_LED }
20}, {
21 // KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS
22 { 7, 5 }, { 31, 5 }, { 43, 5 }, { 55, 5 }, { 67, 5 }, { 85, 5 }, { 97, 5 }, { 109, 5 },
23 { 121, 5 }, { 139, 5 }, { 151, 5 }, { 163, 5 }, { 175, 5 }, { 193, 5 }, { 205, 5 }, { 217, 5 },
24 // KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP
25 { 7, 20 }, { 19, 20 }, { 31, 20 }, { 43, 20 }, { 55, 20 }, { 67, 20 }, { 79, 20 }, { 91, 20 },
26 { 103, 20 }, { 115, 20 }, { 127, 20 }, { 139, 20 }, { 151, 20 }, { 169, 20 }, { 193, 20 }, { 205, 20 },
27 { 217, 20 },
28 // 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_DEL, KC_END, KC_PGDN
29 { 10, 30 }, { 25, 30 }, { 37, 30 }, { 49, 30 }, { 61, 30 }, { 73, 30 }, { 85, 30 }, { 97, 30 },
30 { 109, 30 }, { 121, 30 }, { 133, 30 }, { 145, 30 }, { 157, 30 }, { 172, 30 }, { 193, 30 }, { 205, 30 },
31 { 217, 30 },
32 // 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
33 { 11, 39 }, { 28, 39 }, { 40, 39 }, { 52, 39 }, { 64, 39 }, { 76, 39 }, { 88, 39 }, { 100, 39 },
34 { 112, 39 }, { 124, 39 }, { 136, 39 }, { 148, 39 }, { 168, 39 },
35 // 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
36 { 14, 49 }, { 34, 49 }, { 46, 49 }, { 58, 49 }, { 70, 49 }, { 82, 49 }, { 94, 49 }, { 106, 49 },
37 { 118, 49 }, { 130, 49 }, { 142, 49 }, { 165, 49 }, { 205, 49 },
38 // KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
39 { 8, 59 }, { 23, 59 }, { 38, 59 }, { 83, 59 }, { 129, 59 }, { 144, 59 }, { 159, 59 }, { 174, 59 },
40 { 193, 59 }, { 205, 59 }, { 217, 59 },
41 // Underglow / Border
42 { 224, 64 }, { 204, 64 }, { 186, 64 }, { 167, 64 }, { 149, 64 }, { 130, 64 }, { 112, 64 }, { 94, 64 },
43 { 75, 64 }, { 57, 64 }, { 38, 64 }, { 20, 64 }, { 0, 64 }, { 0, 47 }, { 0, 32 }, { 0, 17 },
44 { 0, 0 }, { 20, 0 }, { 38, 0 }, { 57, 0 }, { 75, 0 }, { 94, 0 }, { 112, 0 }, { 130, 0 },
45 { 149, 0 }, { 167, 0 }, { 186, 0 }, { 204, 0 }, { 224, 0 }, { 224, 17 }, { 224, 32 }, { 224, 47 }
46}, {
47 // KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS
48 1, 4, 4, 4, 4, 1, 1, 1,
49 1, 4, 4, 4, 4, 1, 1, 1,
50 // KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP
51 4, 4, 4, 4, 4, 4, 4, 4,
52 4, 4, 4, 4, 4, 1, 1, 1,
53 1,
54 // 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_DEL, KC_END, KC_PGDN
55 1, 4, 4, 4, 4, 4, 4, 4,
56 4, 4, 4, 4, 4, 4, 1, 1,
57 1,
58 // 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
59 1, 4, 4, 4, 4, 4, 4, 4,
60 4, 4, 4, 4, 1,
61 // 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
62 1, 4, 4, 4, 4, 4, 4, 4,
63 4, 4, 4, 1, 1,
64 // KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
65 1, 1, 1, 4, 1, 1, 1, 1,
66 1, 1, 1,
67 // Underglow / Border
68 2, 2, 2, 2, 2, 2, 2, 2,
69 2, 2, 2, 2, 2, 2, 2, 2,
70 2, 2, 2, 2, 2, 2, 2, 2,
71 2, 2, 2, 2, 2, 2, 2, 2
72} };
73
74
75#ifdef USB_LED_INDICATOR_ENABLE
76void rgb_matrix_indicators_kb(void)
77{
78 led_matrix_indicators();
79}
80#endif // USB_LED_INDICATOR_ENABLE
81
82#endif
diff --git a/keyboards/massdrop/ctrl/keymaps/endgame/keymap.c b/keyboards/massdrop/ctrl/keymaps/endgame/keymap.c
new file mode 100644
index 000000000..a6e0c9f50
--- /dev/null
+++ b/keyboards/massdrop/ctrl/keymaps/endgame/keymap.c
@@ -0,0 +1,421 @@
1#include QMK_KEYBOARD_H
2
3// Include for debugging.
4#include <print.h>
5
6#define MILLISECONDS_IN_SECOND 1000
7
8//========================================================== CONFIGURABLE DEFAULTS ==========================================================
9#define RGB_DEFAULT_TIME_OUT 30
10#define RGB_FAST_MODE_TIME_OUT 3
11#define RGB_TIME_OUT_MAX 600
12#define RGB_TIME_OUT_MIN 10
13#define RGB_TIME_OUT_STEP 10
14
15static uint16_t idle_timer; // Idle LED timeout timer
16static uint8_t idle_second_counter; // Idle LED seconds counter, counts seconds not milliseconds
17
18bool rgb_enabled_flag; // Current LED state flag. If false then LED is off.
19bool rgb_time_out_enable; // Idle LED toggle enable. If false then LED will not turn off after idle timeout.
20bool rgb_time_out_fast_mode_enabled;
21bool rgb_time_out_user_value; // This holds the toggle value set by user with ROUT_TG. It's necessary as RGB_TOG changes timeout enable.
22uint16_t rgb_time_out_seconds; // Idle LED timeout value, in seconds not milliseconds
23uint16_t rgb_time_out_saved_seconds;
24led_flags_t rgb_time_out_saved_flag; // Store LED flag before timeout so it can be restored when LED is turned on again.
25
26enum tapdance_keycodes {
27 TD_GUI_ML = 0, // Tap dance key to switch to mouse layer _ML
28 TD_LCTRL_TERM,
29 TD_RCTRL_TERM,
30};
31
32enum ctrl_keycodes {
33 U_T_AUTO = SAFE_RANGE, //USB Extra Port Toggle Auto Detect / Always Active
34 U_T_AGCR, //USB Toggle Automatic GCR control
35 DBG_TOG, //DEBUG Toggle On / Off
36 DBG_MTRX, //DEBUG Toggle Matrix Prints
37 DBG_KBD, //DEBUG Toggle Keyboard Prints
38 DBG_MOU, //DEBUG Toggle Mouse Prints
39 MD_BOOT, //Restart into bootloader after hold timeout
40 SEL_CPY, //Select Copy. Select the word cursor is pointed at and copy, using double mouse click and ctrl+c
41 ROUT_TG, //Timeout Toggle. Toggle idle LED time out on or off
42 ROUT_VI, //Timeout Value Increase. Increase idle time out before LED disabled
43 ROUT_VD, //Timeout Value Decrease. Decrease idle time out before LED disabled
44 ROUT_FM, //RGB timeout fast mode toggle
45 COPY_ALL, //Copy all text using ctrl(a+c)
46 TERMINAL,
47};
48
49enum layout_names {
50 _KL=0, // Keys Layout: The main keyboard layout that has all the characters
51 _FL, // Function Layout: The function key activated layout with default functions and some added ones
52 _ML, // Mouse Layout: Mouse Keys and mouse movement
53 _VL, // VIM Layout: VIM shorcuts and macros
54 _GL, // GIT Layout: GIT shortcuts and macros
55 _YL, // Yakuake Layout: Yakuake drop-down terminal shortcuts and macros
56 _EL, // KDE Layout: Shortcuts for KDE desktop using default KDE shortcuts settings
57};
58
59//Associate our tap dance key with its functionality
60qk_tap_dance_action_t tap_dance_actions[] = {
61 [TD_GUI_ML] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_LGUI, _ML),
62 [TD_LCTRL_TERM] = ACTION_TAP_DANCE_DOUBLE(KC_LCTRL, LCA(KC_T)),
63 [TD_RCTRL_TERM] = ACTION_TAP_DANCE_DOUBLE(KC_RCTRL, LCA(KC_T)),
64};
65
66const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
67 /*
68 [DEFAULT] = LAYOUT(
69 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
70 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
71 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_DEL, KC_END, KC_PGDN,
72 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,
73 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,
74 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
75 ),
76 */
77 [_KL] = LAYOUT(
78 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
79 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
80 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_DEL, KC_END, KC_PGDN,
81 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,
82 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_SFTENT, KC_UP,
83 TD(TD_LCTRL_TERM), TD(TD_GUI_ML), KC_LALT, KC_SPC, KC_RALT, MO(_FL), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
84 ),
85 [_FL] = LAYOUT(
86 _______, DM_PLY1, DM_PLY2, _______, _______, DM_REC1, DM_REC2, _______, _______, DM_RSTP, _______, KC_WAKE, KC_SLEP, KC_MUTE, _______, _______,
87 _______, RGB_M_P, _______, _______, _______, _______, _______, _______, _______, ROUT_FM, ROUT_TG, ROUT_VD, ROUT_VI, _______, KC_MSTP, KC_MPLY, KC_VOLU,
88 _______, RGB_SPD, RGB_VAI, RGB_SPI, RGB_HUI, RGB_SAI, _______, U_T_AUTO, U_T_AGCR, _______, _______, _______, _______, _______, KC_MPRV, KC_MNXT, KC_VOLD,
89 _______, RGB_RMOD,RGB_VAD, RGB_MOD, RGB_HUD, RGB_SAD, _______, _______, _______, _______, _______, _______, _______,
90 _______, RGB_TOG, _______, COPY_ALL, _______, MD_BOOT, TG_NKRO, _______, _______, _______, _______, _______, KC_BRIU,
91 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BRID, _______
92 ),
93 [_ML] = LAYOUT(
94 _______, KC_ACL0, KC_ACL1, KC_ACL2, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
95 _______, KC_BTN4, KC_BTN3, KC_BTN5, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
96 _______, KC_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
97 _______, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, _______, _______, _______, _______, _______, _______, _______, _______,
98 _______, _______, _______, SEL_CPY, _______, _______, TG_NKRO, _______, _______, _______, _______, _______, _______,
99 _______, TD(TD_GUI_ML), _______, _______, _______, _______, TG(_ML), _______, _______, _______, _______
100 ),
101 /*
102 [X] = LAYOUT(
103 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
104 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
105 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
106 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
107 _______, _______, _______, _______, _______, _______, TG_NKRO, _______, _______, _______, _______, _______, _______,
108 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
109 ),
110 [RGB] = LAYOUT(
111 ESC: 0, F1: 1, F2: 2, F3: 3, F4: 4, F5: 5, F6: 6, F7: 7, F8: 8, F9: 9, F10: 10, F11: 11, F12: 12, PSCR: 13, SLCK: 14, PAUS: 15,
112 GRV: 16, 1: 17, 2: 18, 3: 19, 4: 20, 5: 21, 6: 22, 7: 23, 8: 24, 9: 25, 0: 26, MINS: 27, EQL: 28, BSPC: 29, INS: 30, HOME: 31, PGUP: 32,
113 TAB: 33, Q: 34, W: 35, E: 36, R: 37, T: 38, Y: 39, U: 40, I: 41, O: 42, P: 43, LBRC: 44, RBRC: 45, BSLS: 46, DEL: 47, END: 48, PGDN: 49,
114 CAPS: 50, A: 51, S: 52, D: 53, F: 54, G: 55, H: 56, J: 57, K: 58, L: 59, SCLN: 60, QUOT: 61, ENT: 62,
115 LSFT: 63, Z: 64, X: 65, C: 66, V: 67, B: 68, N: 69, M: 70, COMM: 71, DOT: 72, SLSH: 73, RSFT: 74, UP: 75,
116 LCTL: 76, LGUI: 77, LALT: 78, SPC: 79, RALT: 80, Fn: 81, APP: 82, RCTL: 83, LEFT: 84, DOWN: 85, RGHT: 86
117 ),
118 [MATRIX] = LAYOUT(
119 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
120 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
121 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
122 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
123 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
124 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86
125 ),
126 */
127};
128
129// Runs just one time when the keyboard initializes.
130void matrix_init_user(void) {
131 // Enable or disable debugging
132 debug_enable=true;
133 debug_matrix=true;
134 debug_keyboard=true;
135 debug_mouse=true;
136
137 idle_second_counter = 0;
138 rgb_time_out_seconds = RGB_DEFAULT_TIME_OUT;
139 rgb_time_out_enable = true;
140 rgb_enabled_flag = true;
141 rgb_time_out_user_value = true;
142 rgb_time_out_fast_mode_enabled = false;
143 rgb_time_out_saved_flag = rgb_matrix_get_flags();
144};
145
146// Runs constantly in the background, in a loop.
147void matrix_scan_user(void) {
148 if(rgb_time_out_enable && rgb_enabled_flag) {
149 if (timer_elapsed(idle_timer) > MILLISECONDS_IN_SECOND) {
150 idle_second_counter++;
151 idle_timer = timer_read();
152 }
153
154 if (idle_second_counter >= rgb_time_out_seconds) {
155 rgb_time_out_saved_flag = rgb_matrix_get_flags();
156 rgb_matrix_set_flags(LED_FLAG_NONE);
157 rgb_matrix_disable_noeeprom();
158 rgb_enabled_flag = false;
159 idle_second_counter = 0;
160 }
161 }
162};
163
164bool process_record_user(uint16_t keycode, keyrecord_t *record) {
165 static uint32_t key_timer;
166
167 if (rgb_time_out_enable) {
168 idle_timer = timer_read();
169 // Reset the seconds counter. Without this, something like press> leave x seconds> press, would be x seconds on the effective counter not 0 as it should.
170 idle_second_counter = 0;
171 if (!rgb_enabled_flag) {
172 rgb_matrix_enable_noeeprom();
173 rgb_matrix_set_flags(rgb_time_out_saved_flag);
174 rgb_enabled_flag = true;
175 }
176 }
177
178 switch (keycode) {
179 case U_T_AUTO:
180 if (record->event.pressed && MODS_SHIFT && MODS_CTRL) {
181 TOGGLE_FLAG_AND_PRINT(usb_extra_manual, "USB extra port manual mode");
182 }
183 return false;
184 case U_T_AGCR:
185 if (record->event.pressed && MODS_SHIFT && MODS_CTRL) {
186 TOGGLE_FLAG_AND_PRINT(usb_gcr_auto, "USB GCR auto mode");
187 }
188 return false;
189 case DBG_TOG:
190 if (record->event.pressed) {
191 TOGGLE_FLAG_AND_PRINT(debug_enable, "Debug mode");
192 }
193 return false;
194 case DBG_MTRX:
195 if (record->event.pressed) {
196 TOGGLE_FLAG_AND_PRINT(debug_matrix, "Debug matrix");
197 }
198 return false;
199 case DBG_KBD:
200 if (record->event.pressed) {
201 TOGGLE_FLAG_AND_PRINT(debug_keyboard, "Debug keyboard");
202 }
203 return false;
204 case DBG_MOU:
205 if (record->event.pressed) {
206 TOGGLE_FLAG_AND_PRINT(debug_mouse, "Debug mouse");
207 }
208 return false;
209 case MD_BOOT:
210 if (record->event.pressed) {
211 key_timer = timer_read32();
212 } else {
213 if (timer_elapsed32(key_timer) >= 500) {
214 reset_keyboard();
215 }
216 }
217 return false;
218 case RGB_TOG:
219 if (record->event.pressed) {
220 rgb_time_out_enable = rgb_time_out_user_value;
221 switch (rgb_matrix_get_flags()) {
222 case LED_FLAG_ALL: {
223 rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER);
224 rgb_matrix_set_color_all(0, 0, 0);
225 }
226 break;
227 case LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER: {
228 rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
229 rgb_matrix_set_color_all(0, 0, 0);
230 }
231 break;
232 case LED_FLAG_UNDERGLOW: {
233 // This line is for LED idle timer. It disables the toggle so you can turn off LED completely if you like
234 rgb_time_out_enable = false;
235 rgb_matrix_set_flags(LED_FLAG_NONE);
236 rgb_matrix_disable_noeeprom();
237 }
238 break;
239 default: {
240 rgb_matrix_set_flags(LED_FLAG_ALL);
241 rgb_matrix_enable_noeeprom();
242 }
243 break;
244 }
245 }
246 return false;
247 // ======================================================== CUSTOM KEYCOADS BELOW ========================================================
248 case COPY_ALL:
249 if (record->event.pressed) {
250 // Selects all and text and copy
251 SEND_STRING(SS_LCTRL("ac"));
252 }
253 return false;
254 case SEL_CPY:
255 // Select word under cursor and copy. Double mouse click then ctrl+c
256 if (record->event.pressed) {
257 tap_code16(KC_BTN1);
258 tap_code16(KC_BTN1);
259 tap_code16(C(KC_C));
260 }
261 return false;
262 case ROUT_TG:
263 // Toggle idle LED timeout on or off
264 if (record->event.pressed) {
265 rgb_time_out_enable = !rgb_time_out_enable;
266 rgb_time_out_user_value = rgb_time_out_enable;
267 }
268 return false;
269 case ROUT_VI:
270 // Increase idle LED timeout value in seconds
271 if (record->event.pressed) {
272 // Only increase if current value is lower than RGB_TIME_OUT_MAX. Don't care what value the result will be
273 // Modity RGB_TIME_OUT_STEP for bigger or smaller increments
274 if (!rgb_time_out_fast_mode_enabled && rgb_time_out_seconds <= RGB_TIME_OUT_MAX) {
275 rgb_time_out_seconds += RGB_TIME_OUT_STEP;
276 }
277 }
278 return false;
279 case ROUT_VD:
280 // Decrease idle LED timeout value in seconds
281 if (record->event.pressed) {
282 // Only decrease if current value is higher than minimum value and the result is larger than zero
283 // Modity RGB_TIME_OUT_STEP for bigger or smaller decrements
284 if (!rgb_time_out_fast_mode_enabled && rgb_time_out_seconds > RGB_TIME_OUT_MIN) {
285 rgb_time_out_seconds -= RGB_TIME_OUT_STEP;
286 }
287 }
288 return false;
289 case ROUT_FM:
290 if (record->event.pressed) {
291 if (rgb_time_out_fast_mode_enabled) {
292 rgb_time_out_seconds = rgb_time_out_saved_seconds;
293 } else {
294 rgb_time_out_saved_seconds = rgb_time_out_seconds;
295 rgb_time_out_seconds = RGB_FAST_MODE_TIME_OUT;
296 }
297 rgb_time_out_fast_mode_enabled = !rgb_time_out_fast_mode_enabled;
298 }
299 return false;
300 default:
301 return true; //Process all other keycodes normally
302 }
303}
304
305void rgb_matrix_indicators_user(void) {
306 /*
307 [RGB] = LAYOUT(
308 ESC: 0, F1: 1, F2: 2, F3: 3, F4: 4, F5: 5, F6: 6, F7: 7, F8: 8, F9: 9, F10: 10, F11: 11, F12: 12, PSCR: 13, SLCK: 14, PAUS: 15,
309 GRV: 16, 1: 17, 2: 18, 3: 19, 4: 20, 5: 21, 6: 22, 7: 23, 8: 24, 9: 25, 0: 26, MINS: 27, EQL: 28, BSPC: 29, INS: 30, HOME: 31, PGUP: 32,
310 TAB: 33, Q: 34, W: 35, E: 36, R: 37, T: 38, Y: 39, U: 40, I: 41, O: 42, P: 43, LBRC: 44, RBRC: 45, BSLS: 46, DEL: 47, END: 48, PGDN: 49,
311 CAPS: 50, A: 51, S: 52, D: 53, F: 54, G: 55, H: 56, J: 57, K: 58, L: 59, SCLN: 60, QUOT: 61, ENT: 62,
312 LSFT: 63, Z: 64, X: 65, C: 66, V: 67, B: 68, N: 69, M: 70, COMM: 71, DOT: 72, SLSH: 73, RSFT: 74, UP: 75,
313 LCTL: 76, LGUI: 77, LALT: 78, SPC: 79, RALT: 80, Fn: 81, APP: 82, RCTL: 83, LEFT: 84, DOWN: 85, RGHT: 86
314 )
315 */
316 if (!g_suspend_state && rgb_matrix_config.enable) {
317 switch (biton32(layer_state)) {
318 case _FL: {
319 /*
320 [_FL] = LAYOUT(
321 _______, DM_PLY1, DM_PLY2, _______, _______, DM_REC1, DM_REC2, _______, _______, DM_RSTP, _______, KC_WAKE, KC_SLEP, KC_MUTE, _______, _______,
322 _______, RGB_M_P, _______, _______, _______, _______, _______, _______, _______, ROUT_FM, ROUT_TG, ROUT_VD, ROUT_VI, _______, KC_MSTP, KC_MPLY, KC_VOLU,
323 _______, RGB_SPD, RGB_VAI, RGB_SPI, RGB_HUI, RGB_SAI, _______, U_T_AUTO, U_T_AGCR, _______, _______, _______, _______, _______, KC_MPRV, KC_MNXT, KC_VOLD,
324 _______, RGB_RMOD,RGB_VAD, RGB_MOD, RGB_HUD, RGB_SAD, _______, _______, _______, _______, _______, _______, _______,
325 _______, RGB_TOG, _______, COPY_ALL, _______, MD_BOOT, TG_NKRO, _______, _______, _______, _______, _______, KC_BRIU,
326 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BRID, _______
327 )
328 */
329
330 // Function key. Color code #ffc100
331 rgb_matrix_set_color(81, 0xff, 0xc1, 0x00);
332 // Sleep and Wake. Color code #aeb0b0
333 rgb_matrix_set_color(11, 0xae, 0xb0, 0xb0);
334 rgb_matrix_set_color(12, 0xae, 0xb0, 0xb0);
335 // Power Control Keys. Color code #cb2f2a
336 rgb_matrix_set_color(40, 0xcb, 0x2f, 0x2a);
337 rgb_matrix_set_color(41, 0xcb, 0x2f, 0x2a);
338 rgb_matrix_set_color(74, 0xcb, 0x2f, 0x2a);
339 rgb_matrix_set_color(83, 0xcb, 0x2f, 0x2a);
340 // Keyboard Control Keys. Color code #f4791e
341 rgb_matrix_set_color(68, 0xf4, 0x79, 0x1e);
342 rgb_matrix_set_color(69, 0xf4, 0x79, 0x1e);
343 // Copy All Key. Color Code #45b866
344 rgb_matrix_set_color(66, 0x45, 0xb8, 0x66);
345 // Brightness Keys. Color code #aeb0b0
346 rgb_matrix_set_color(75, 0xae, 0xb0, 0xb0);
347 rgb_matrix_set_color(85, 0xae, 0xb0, 0xb0);
348 // RGB Timeout Keys. Color code #34a4b9
349 rgb_matrix_set_color(25, 0x34, 0xa3, 0xb9);
350 rgb_matrix_set_color(26, 0x34, 0xa3, 0xb9);
351 rgb_matrix_set_color(27, 0x34, 0xa3, 0xb9);
352 rgb_matrix_set_color(28, 0x34, 0xa3, 0xb9);
353 // Media Keys. Color code #51c0dd
354 rgb_matrix_set_color(13, 0x51, 0xc0, 0xdd);
355 rgb_matrix_set_color(30, 0x51, 0xc0, 0xdd);
356 rgb_matrix_set_color(31, 0x51, 0xc0, 0xdd);
357 rgb_matrix_set_color(32, 0x51, 0xc0, 0xdd);
358 rgb_matrix_set_color(47, 0x51, 0xc0, 0xdd);
359 rgb_matrix_set_color(48, 0x51, 0xc0, 0xdd);
360 rgb_matrix_set_color(49, 0x51, 0xc0, 0xdd);
361 // RBG Control Keys. Color code #2790c2
362 rgb_matrix_set_color(17, 0x27, 0x90, 0xc2);
363 rgb_matrix_set_color(34, 0x27, 0x90, 0xc2);
364 rgb_matrix_set_color(35, 0x27, 0x90, 0xc2);
365 rgb_matrix_set_color(36, 0x27, 0x90, 0xc2);
366 rgb_matrix_set_color(37, 0x27, 0x90, 0xc2);
367 rgb_matrix_set_color(38, 0x27, 0x90, 0xc2);
368 rgb_matrix_set_color(51, 0x27, 0x90, 0xc2);
369 rgb_matrix_set_color(52, 0x27, 0x90, 0xc2);
370 rgb_matrix_set_color(53, 0x27, 0x90, 0xc2);
371 rgb_matrix_set_color(54, 0x27, 0x90, 0xc2);
372 rgb_matrix_set_color(55, 0x27, 0x90, 0xc2);
373 rgb_matrix_set_color(64, 0x27, 0x90, 0xc2);
374 // Dynamic Macro Keys. Color code #45b866
375 rgb_matrix_set_color(1, 0x45, 0xb8, 0x66);
376 rgb_matrix_set_color(2, 0x45, 0xb8, 0x66);
377 rgb_matrix_set_color(5, 0x45, 0xb8, 0x66);
378 rgb_matrix_set_color(6, 0x45, 0xb8, 0x66);
379 rgb_matrix_set_color(9, 0x45, 0xb8, 0x66);
380 }
381 break;
382 case _ML: {
383 /*
384 [_ML] = LAYOUT(
385 _______, KC_ACL0, KC_ACL1, KC_ACL2, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BTN4, KC_BTN3, KC_BTN5, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
386 _______, KC_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
387 _______, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, _______, _______, _______, _______, _______, _______, _______, _______,
388 _______, _______, _______, SEL_CPY, _______, _______, TG_NKRO, _______, _______, _______, _______, _______, _______,
389 _______, TD(TD_GUI_ML), _______, _______, _______, _______, TG(_ML), _______, _______, _______, _______
390 )
391 */
392
393 // Mouse movement keys. Color code #51c0dd
394 rgb_matrix_set_color(35, 0x51, 0xc0, 0xdd);
395 rgb_matrix_set_color(51, 0x51, 0xc0, 0xdd);
396 rgb_matrix_set_color(52, 0x51, 0xc0, 0xdd);
397 rgb_matrix_set_color(53, 0x51, 0xc0, 0xdd);
398 rgb_matrix_set_color(54, 0x51, 0xc0, 0xdd);
399 rgb_matrix_set_color(37, 0x51, 0xc0, 0xdd);
400 // Mouse Button keys. Color code #009bca
401 rgb_matrix_set_color(17, 0x00, 0x9b, 0xca);
402 rgb_matrix_set_color(18, 0x00, 0x9b, 0xca);
403 rgb_matrix_set_color(19, 0x00, 0x9b, 0xca);
404 rgb_matrix_set_color(34, 0x00, 0x9b, 0xca);
405 rgb_matrix_set_color(36, 0x00, 0x9b, 0xca);
406 // Mouse acceleration control. Color code #5dcde3
407 rgb_matrix_set_color(1, 0x5d, 0xcd, 0xe3);
408 rgb_matrix_set_color(2, 0x5d, 0xcd, 0xe3);
409 rgb_matrix_set_color(3, 0x5d, 0xcd, 0xe3);
410 // Layer toggle keys. Color code #ffc100
411 rgb_matrix_set_color(77, 0xff, 0xc1, 0x00);
412 rgb_matrix_set_color(82, 0xff, 0xc1, 0x00);
413 // Select copy key. Color code #45b866
414 rgb_matrix_set_color(66, 0x45, 0xb8, 0x66);
415 // NKRO key. Color code #f4791e
416 rgb_matrix_set_color(69, 0xf4, 0x79, 0x1e);
417 }
418 break;
419 }
420 }
421}
diff --git a/keyboards/massdrop/ctrl/keymaps/endgame/rules.mk b/keyboards/massdrop/ctrl/keymaps/endgame/rules.mk
new file mode 100644
index 000000000..2a599810f
--- /dev/null
+++ b/keyboards/massdrop/ctrl/keymaps/endgame/rules.mk
@@ -0,0 +1,12 @@
1# NKRO_ENABLE = yes # USB Nkey Rollover
2# AUTO_SHIFT_ENABLE = yes # Auto Shift
3# # RGBLIGHT_ENABLE is not for MD boards. This is here in case you forget.
4# RGBLIGHT_ENABLE = no
5# COMMAND_ENABLE = yes
6# BOOTMAGIC_ENABLE = full
7# BOOTMAGIC_ENABLE = lite
8DYNAMIC_MACRO_ENABLE = yes # Dynamic macro recording and play
9MOUSEKEY_ENABLE = yes # Enable mouse control keycodes. Increases firmware size.
10TAP_DANCE_ENABLE = yes # Enable tap dance keys
11CONSOLE_ENABLE = yes # Enable debugging console. Increases firmware size.
12SRC += config_led.c