aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijahblake <elijahblake81@gmail.com>2020-11-18 17:54:53 -0600
committerGitHub <noreply@github.com>2020-11-18 15:54:53 -0800
commit6dc2d5956f008a706a9b0d6e911522294b76f392 (patch)
tree71ae0a14f4016967f2215bd87d6079042402935b
parent88a783a8a769e604fa13947ee9c556f0dc1c95ad (diff)
downloadqmk_firmware-6dc2d5956f008a706a9b0d6e911522294b76f392.tar.gz
qmk_firmware-6dc2d5956f008a706a9b0d6e911522294b76f392.zip
[Keymap] add massdrop/alt:pregame (#8953)
Pulled some functionality from the endgame keymap for the Drop Ctrl. * very shortened version of the Endgame keymap * fixed pictures * fixed link * fixed link * fix files * add GREEN RGB * fixed GREEN RGB * not supposed to be in my fork... * wasn't supposed to be in my fork. * I have fixed the layer 0 RGB Settings; you can now apply layer using "COLOR" in the layout template. * I've renamed to pregame, fixed several files * added Underglow RGB layout, changed def ault RGB color * fixed the color of the default profile like i want it * Added IRL Photo * Update keymap.c disabled debugging. * Update keymap.c * Update config.h * Update README.md * Update keymap.h * Changed some settings on rules for clean up. * Changed some settings on rules for clean up. * fixed some errors, cleaned things up * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Fixed changes recommended by Fauxpark * Added changes recommended by fauxpark * trying to fix my repo * Still trying to fix merge issues * changed to lowercase * Delete reading.md * Trying to rebase my repo * stuck in rebase loop trying to fix local files and update * updating readme file
-rw-r--r--keyboards/massdrop/alt/keymaps/pregame/config.h156
-rw-r--r--keyboards/massdrop/alt/keymaps/pregame/keymap.c209
-rw-r--r--keyboards/massdrop/alt/keymaps/pregame/keymap.h58
-rw-r--r--keyboards/massdrop/alt/keymaps/pregame/readme.md35
-rw-r--r--keyboards/massdrop/alt/keymaps/pregame/rules.mk15
5 files changed, 473 insertions, 0 deletions
diff --git a/keyboards/massdrop/alt/keymaps/pregame/config.h b/keyboards/massdrop/alt/keymaps/pregame/config.h
new file mode 100644
index 000000000..acd041ce1
--- /dev/null
+++ b/keyboards/massdrop/alt/keymaps/pregame/config.h
@@ -0,0 +1,156 @@
1/* Copyright 2020 elijahblake81
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19
20#define MODS_SHIFT (get_mods() & MOD_MASK_SHIFT)
21#define MODS_CTRL (get_mods() & MOD_MASK_CTRL)
22#define MODS_ALT (get_mods() & MOD_MASK_ALT)
23
24// #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT) // Key combination that allows the use of magic commands (useful for debugging)
25
26// #define NO_DEBUG // Disable debugging
27// #define NO_PRINT // Disable printing/debugging using hid_listen
28// #define NO_ACTION_LAYER // Disable layers
29// #define NO_ACTION_TAPPING // Disable tap dance and other tapping features
30// #define NO_ACTION_ONESHOT // Disable one-shot modifiers
31// #define NO_ACTION_MACRO // Disable old style macro handling: MACRO() & action_get_macro
32// #define TERMINAL_HELP
33// #define MOUSEKEY_INTERVAL 20
34// #define MOUSEKEY_DELAY 0
35// #define MOUSEKEY_TIME_TO_MAX 60
36// #define MOUSEKEY_MAX_SPEED 10
37// #define MOUSEKEY_WHEEL_DELAY 0
38#define FORCE_NKRO // NKRO by default requires to be turned on, this forces it on during keyboard startup regardless of EEPROM setting. NKRO can still be turned off but will be turned on again if the keyboard reboots.
39// #define QMK_KEYS_PER_SCAN 4 // Allows sending more than one key per scan. By default, only one key event gets sent via process_record() per scan. This has little impact on most typing, but if you're doing a lot of chords, or your scan rate is slow to begin with, you can have some delay in processing key events. Each press and release is a separate event. For a keyboard with 1ms or so scan times, even a very fast typist isn't going to produce the 500 keystrokes a second needed to actually get more than a few ms of delay from this. But if you're doing chording on something with 3-4ms scan times? You probably want this.
40// #define STRICT_LAYER_RELEASE // Force a key release to be evaluated using the current layer stack instead of remembering which layer it came from (used for advanced cases)
41// #define LOCKING_SUPPORT_ENABLE // Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap
42// #define LOCKING_RESYNC_ENABLE // Tries to keep switch state consistent with keyboard LED state
43// #define TAPPING_TERM 200 // How long before a tap becomes a hold, if set above 500, a key tapped during the tapping term will turn it into a hold too
44// #define TAPPING_TERM_PER_KEY // Enabling to allow to tweak individual keys
45// #define RETRO_TAPPING // Tap anyway, even after TAPPING_TERM, if there was no other key interruption between press and release
46// #define TAPPING_TOGGLE 2 // How many taps before triggering the toggle
47// #define PERMISSIVE_HOLD // Makes tap and hold keys trigger the hold if another key is pressed before releasing, even if it hasn't hit the TAPPING_TERM. See Permissive Hold for details
48// #define IGNORE_MOD_TAP_INTERRUPT // Makes it possible to do rolling combos (zx) with keys that convert to other keys on hold, by enforcing the TAPPING_TERM for both keys. See Mod tap interrupt for details
49// #define TAPPING_FORCE_HOLD // Makes it possible to use a dual role key as modifier shortly after having been tapped. See Hold after tap. Breaks any Tap Toggle functionality (TT or the One Shot Tap Toggle)
50// #define LEADER_TIMEOUT 300 // How long before the leader key times out. If you're having issues finishing the sequence before it times out, you may need to increase the timeout setting. Or you may want to enable the LEADER_PER_KEY_TIMING option, which resets the timeout after each key is tapped.
51// #define LEADER_PER_KEY_TIMING // Sets the timer for leader key chords to run on each key press rather than overall
52// #define LEADER_KEY_STRICT_KEY_PROCESSING // Disables keycode filtering for Mod-Tap and Layer-Tap keycodes. Eg, if you enable this, you would need to specify MT(MOD_CTL, KC_A) if you want to use KC_A.
53// #define ONESHOT_TIMEOUT 3000 // How long before oneshot times out
54// #define ONESHOT_TAP_TOGGLE 2 // How many taps before oneshot toggle is triggered
55// #define COMBO_COUNT 2 // Set this to the number of combos that you're using in the Combo feature.
56// #define COMBO_TERM 200 // How long for the Combo keys to be detected. Defaults to TAPPING_TERM if not defined.
57// #define TAP_CODE_DELAY 100 // Sets the delay between register_code and unregister_code, if you're having issues with it registering properly (common on VUSB boards). The value is in milliseconds.
58// #define TAP_HOLD_CAPS_DELAY 80 // Sets the delay for Tap Hold keys (LT, MT) when using KC_CAPSLOCK keycode, as this has some special handling on MacOS. The value is in milliseconds, and defaults to 80 ms if not defined. For macOS, you may want to set this to 200 or higher.
59#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
60#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
61// #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
62
63
64
65//Teal and Blue
66//#define RGB_MATRIX_STARTUP_HUE 127 // Default boot color
67//#define RGB_MATRIX_STARTUP_SPD 47 // Used to determine the color for the modifiers
68
69//Teal and Blue
70//#define RGB_MATRIX_STARTUP_HUE 120 // Default boot color
71//#define RGB_MATRIX_STARTUP_SPD 50 //Used to determine the color for the modifiers
72
73
74//QMK HSV is based on 255 value wheel rather than 360
75
76//Cyan and Yellow
77//#define RGB_MATRIX_STARTUP_HUE 127 // Default boot color
78//#define RGB_MATRIX_STARTUP_SPD 177
79
80//Cyan and Green
81//#define RGB_MATRIX_STARTUP_HUE 127 // Default boot color
82//#define RGB_MATRIX_STARTUP_SPD 215
83
84// #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
85
86#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_REACTIVE // Sets the default mode, if none has been set
87#define RGB_MATRIX_STARTUP_HUE 180 //purple alphas with green background when pressed.
88// #define RGBLIGHT_HUE_STEP 12 // Units to step when in/decreasing hue
89// #define RGBLIGHT_SAT_STEP 25 // Units to step when in/decreasing saturation
90// #define RGBLIGHT_VAL_STEP 12 // Units to step when in/decreasing value (brightness)
91// #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
92// #define RGB_DISABLE_WHEN_USB_SUSPENDED false // turn off effects when suspended
93// #define RGB_MATRIX_LED_PROCESS_LIMIT (DRIVER_LED_TOTAL + 4) / 5 // limits the number of LEDs to process in an animation per task run (increases keyboard responsiveness)
94// #define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
95#define RGBLIGHT_ANIMATIONS // Run RGB animations
96// #define RGBLIGHT_ANIMATIONS // Enable all additional animation modes.
97#define RGBLIGHT_EFFECT_ALTERNATING // Enable alternating animation mode.
98#define RGBLIGHT_EFFECT_BREATHING // Enable breathing animation mode.
99// #define RGBLIGHT_EFFECT_CHRISTMAS // Enable christmas animation mode.
100// #define RGBLIGHT_EFFECT_KNIGHT // Enable knight animation mode.
101// #define RGBLIGHT_EFFECT_RAINBOW_MOOD // Enable rainbow mood animation mode.
102// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL // Enable rainbow swirl animation mode.
103// #define RGBLIGHT_EFFECT_RGB_TEST // Enable RGB test animation mode.
104// #define RGBLIGHT_EFFECT_SNAKE // Enable snake animation mode.
105// #define RGBLIGHT_EFFECT_STATIC_GRADIENT // Enable static gradient mode.
106
107// #define RGBLIGHT_EFFECT_BREATHE_CENTER // If defined, used to calculate the curve for the breathing animation. Valid values are 1.0 to 2.7
108// #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // The maximum brightness for the breathing mode. Valid values are 1 to 255
109// #define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 1000 // How long to wait between light changes for the "Christmas" animation, in milliseconds
110// #define RGBLIGHT_EFFECT_CHRISTMAS_STEP 2 // The number of LEDs to group the red/green colors by for the "Christmas" animation
111// #define RGBLIGHT_EFFECT_KNIGHT_LED_NUM RGBLED_NUM // The number of LEDs to have the "Knight" animation travel
112// #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 3 // The number of LEDs to light up for the "Knight" animation
113// #define RGBLIGHT_EFFECT_KNIGHT_OFFSET 0 // The number of LEDs to start the "Knight" animation from the start of the strip by
114// #define RGBLIGHT_RAINBOW_SWIRL_RANGE 255 // Range adjustment for the rainbow swirl effect to get different swirls
115// #define RGBLIGHT_EFFECT_SNAKE_LENGTH 4 // The number of LEDs to light up for the "Snake" animation
116
117// This list in in the correct mode order. Next mode is the following line, previous mode is previous line. Loops around.
118// #define DISABLE_RGB_MATRIX_SOLID_COLOR // Static single hue, no speed support
119// #define DISABLE_RGB_MATRIX_ALPHAS_MODS // Static dual hue, speed is hue for secondary hue
120// #define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN // Static gradient top to bottom, speed controls how much gradient changes
121// #define DISABLE_RGB_MATRIX_BREATHING // Single hue brightness cycling animation
122// #define DISABLE_RGB_MATRIX_BAND_SAT // Single hue band fading saturation scrolling left to right
123// #define DISABLE_RGB_MATRIX_BAND_VAL // Single hue band fading brightness scrolling left to right
124// #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT // Single hue 3 blade spinning pinwheel fades saturation
125// #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL // Single hue 3 blade spinning pinwheel fades brightness
126// #define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT // Single hue spinning spiral fades saturation
127// #define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL // Single hue spinning spiral fades brightness
128// #define DISABLE_RGB_MATRIX_CYCLE_ALL // Full keyboard solid hue cycling through full gradient
129// #define DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT // Full gradient scrolling left to right
130// #define DISABLE_RGB_MATRIX_CYCLE_UP_DOWN // Full gradient scrolling top to bottom
131// #define DISABLE_RGB_MATRIX_CYCLE_OUT_IN // Full gradient scrolling out to in
132// #define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL // Full dual gradients scrolling out to in
133// #define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON // Full gradent Chevron shapped scrolling left to right
134// #define DISABLE_RGB_MATRIX_CYCLE_PINWHEEL // Full gradient spinning pinwheel around center of keyboard
135// #define DISABLE_RGB_MATRIX_CYCLE_SPIRAL // Full gradient spinning spiral around center of keyboard
136// #define DISABLE_RGB_MATRIX_DUAL_BEACON // Full gradient spinning around center of keyboard
137// #define DISABLE_RGB_MATRIX_RAINBOW_BEACON // Full tighter gradient spinning around center of keyboard
138// #define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS // Full dual gradients spinning two halfs of keyboard
139// #define DISABLE_RGB_MATRIX_RAINDROPS // Randomly changes a single key's hue
140// #define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS // Randomly changes a single key's hue and saturation
141// =================================================== Requires RGB_MATRIX_FRAMEBUFFER_EFFECTS =============================================================
142// #define DISABLE_RGB_MATRIX_TYPING_HEATMAP // How hot is your WPM!
143#define DISABLE_RGB_MATRIX_DIGITAL_RAIN // That famous computer simulation
144// =================================================== RGB_MATRIX_KEYPRESSES OR RGB_MATRIX_KEYRELEASES =====================================================
145// #define DISABLE_RGB_MATRIX_SOLID_REACTIVE // Static single hue, pulses keys hit to shifted hue then fades to current hue
146// #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE // Pulses keys hit to hue & value then fades value out
147// #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE // Hue & value pulse near a single key hit then fades value out
148// #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE // Hue & value pulse near multiple key hits then fades value out
149// #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS // Hue & value pulse the same column and row of a single key hit then fades value out
150// #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS // Hue & value pulse the same column and row of multiple key hits then fades value out
151// #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS // Hue & value pulse away on the same column and row of a single key hit then fades value out
152// #define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS // Hue & value pulse away on the same column and row of multiple key hits then fades value out
153// #define DISABLE_RGB_MATRIX_SPLASH // Full gradient & value pulse away from a single key hit then fades value out
154// #define DISABLE_RGB_MATRIX_MULTISPLASH // Full gradient & value pulse away from multiple key hits then fades value out
155// #define DISABLE_RGB_MATRIX_SOLID_SPLASH // Hue & value pulse away from a single key hit then fades value out
156// #define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH // Hue & value pulse away from multiple key hits then fades value out
diff --git a/keyboards/massdrop/alt/keymaps/pregame/keymap.c b/keyboards/massdrop/alt/keymaps/pregame/keymap.c
new file mode 100644
index 000000000..6c1d93b03
--- /dev/null
+++ b/keyboards/massdrop/alt/keymaps/pregame/keymap.c
@@ -0,0 +1,209 @@
1/* Copyright 2020 elijahblake81
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include "keymap.h"
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20
21 /*
22 [DEFAULT] = LAYOUT(
23 KC_ESC, 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_DEL,
24 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_HOME,
25 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_PGUP,
26 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_PGDN,
27 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
28 ),
29 */
30 [0] = LAYOUT_65_ansi_blocker(
31 KC_ESC, 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_DEL,
32 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_HOME,
33 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_PGUP,
34 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_PGDN,
35 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
36 ),
37 [1] = LAYOUT_65_ansi_blocker(
38 KC_GRV, 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_F13, KC_CALC,
39 RGB_M_P, RGB_SPD, RGB_HUI, RGB_SPI, RGB_SAI, RGB_VAI, _______, U_T_AUTO, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, _______, KC_MYCM,
40 RGB_TOG, RGB_RMOD, RGB_HUD, RGB_MOD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, _______, KC_MUTE, KC_VOLU,
41 _______, _______, _______, _______, _______, MD_BOOT, NK_TOGG, DBG_TOG, _______, _______, _______, _______, KC_VOLU, KC_VOLD,
42 _______, _______, _______, KC_MPLY, _______, _______, KC_HOME, KC_VOLD, KC_END
43 ),
44 /*
45 [X] = LAYOUT(
46 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
48 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
49 _______, _______, _______, _______, _______, _______, TG_NKRO, _______, _______, _______, _______, _______, _______, _______,
50 _______, _______, _______, _______, _______, _______, _______, _______, _______
51 ),
52 [RGB] = LAYOUT(
53 ESC: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, 0: 10, MINS: 11, EQL: 12, BSPC: 13, DEL: 14,
54 TAB: 15, Q: 16, W: 17, E: 18, R: 19, T: 20, Y: 21, U: 22, I: 23, O: 24, P: 25, LBRC: 26, RBRC: 27, BSLS: 28, HOME: 29,
55 CAPS: 30, A: 31, S: 32, D: 33, F: 34, G: 35, H: 36, J: 37, K: 38, L: 39, SCLN: 40, QUOT: 41, ENT: 42, PGUP: 43,
56 LSFT: 44, Z: 45, X: 46, C: 47, V: 48, B: 49, N: 50, M: 51, COMM: 52, DOT: 53, SLSH: 54, RSFT: 55, UP: 56, PGDN: 57,
57 LCTL: 58, LGUI: 59, LALT: 60, SPC: 61, RALT: 62, FN: 63, LEFT: 64, DOWN: 65, RGHT: 66
58 //UnderGlow
59 :67, :68, :69, :70, :71, :72, :73, :74, :75, :76, :77, :78, :79, :80, :81,
60 :82, :83, :84, :85,
61 :86, :87, :88, :89,
62 :90, :91, :92, :93, :94, :95, :96, :97, :98, :99, :100, :101, :102, :103, :104, :105,
63 ),
64 [MATRIX] = LAYOUT(
65 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
66 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
67 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
68 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
69 58, 59, 60, 61, 62, 63, 64, 65, 66,
70 //UnderGlow
71 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105,
72 88, 89,
73 86, 87,
74 84, 85,
75 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83
76 ),
77 */
78};
79
80#ifdef _______
81#undef _______
82#define _______ {0, 0, 0}
83
84const uint8_t PROGMEM ledmap[][DRIVER_LED_TOTAL][3] = {
85 [0] = {
86 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
87 _______, _______, CHART, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
88 _______, CHART, CHART, CHART, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
89 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, CHART, _______,
90 _______, _______, _______, _______, _______, _______, CHART, CHART, CHART,
91 //UnderGlow
92 CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART,
93 CHART, CHART,
94 CHART, CHART,
95 CHART, CHART,
96 CHART, CHART,
97 CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART
98 },
99 [1] = {
100 CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, BLUE,
101 GOLD, PINK, AZURE, PINK, TURQ, TEAL, _______, RED, _______, _______, GREEN, BLUE, GOLD, _______, BLUE,
102 TEAL, MAGENT, AZURE, MAGENT, TURQ, TEAL, _______, _______, _______, _______, _______, _______, GOLD, BLUE,
103 _______, _______, _______, _______, _______, RED, RED, RED, _______, _______, _______, _______, GOLD, BLUE,
104 _______, _______, _______, GOLD, _______, _______, PURPLE, GOLD, PURPLE,
105 //UnderGlow
106 CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART,
107 CHART, CHART,
108 CHART, CHART,
109 CHART, CHART,
110 CHART, CHART,
111 CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART, CHART
112 },
113};
114
115#undef _______
116#define _______ KC_TRNS
117#endif
118
119// Runs just one time when the keyboard initializes.
120void matrix_init_user(void) {
121 // Enable or disable debugging
122 debug_enable=false;
123 debug_matrix=false;
124 debug_keyboard=false;
125 //rgb_enabled_flag = true; // Initially, keyboard RGB is enabled. Change to false config.h initializes RGB disabled.
126};
127
128void keyboard_post_init_user(void) {
129 rgb_matrix_enable();
130}
131
132bool process_record_user(uint16_t keycode, keyrecord_t *record) {
133 static uint32_t key_timer;
134
135 switch (keycode) {
136 case U_T_AUTO:
137 if (record->event.pressed && MODS_SHIFT && MODS_CTRL) {
138 TOGGLE_FLAG_AND_PRINT(usb_extra_manual, "USB extra port manual mode");
139 }
140 return false;
141 case U_T_AGCR:
142 if (record->event.pressed && MODS_SHIFT && MODS_CTRL) {
143 TOGGLE_FLAG_AND_PRINT(usb_gcr_auto, "USB GCR auto mode");
144 }
145 return false;
146 case MD_BOOT:
147 if (record->event.pressed) {
148 key_timer = timer_read32();
149 } else {
150 if (timer_elapsed32(key_timer) >= 500) {
151 reset_keyboard();
152 }
153 }
154 return false;
155 case RGB_TOG:
156 if (record->event.pressed) {
157 switch (rgb_matrix_get_flags()) {
158 case LED_FLAG_ALL: {
159 rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER);
160 rgb_matrix_set_color_all(0, 0, 0);
161 }
162 break;
163 case LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER: {
164 rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
165 rgb_matrix_set_color_all(0, 0, 0);
166 }
167 break;
168 case LED_FLAG_UNDERGLOW: {
169 rgb_matrix_set_flags(LED_FLAG_NONE);
170 rgb_matrix_disable_noeeprom();
171 }
172 break;
173 default: {
174 rgb_matrix_set_flags(LED_FLAG_ALL);
175 rgb_matrix_enable_noeeprom();
176 }
177 break;
178 }
179 return false;
180 }
181 }
182 return true;
183}
184void set_layer_color(int layer) {
185 for (int i = 0; i < DRIVER_LED_TOTAL; i++) {
186 HSV hsv = {
187 .h = pgm_read_byte(&ledmap[layer][i][0]),
188 .s = pgm_read_byte(&ledmap[layer][i][1]),
189 .v = pgm_read_byte(&ledmap[layer][i][2]),
190 };
191 if (hsv.h || hsv.s || hsv.v) {
192 RGB rgb = hsv_to_rgb(hsv);
193 float f = (float)rgb_matrix_config.hsv.v / UINT8_MAX;
194 rgb_matrix_set_color(i, f * rgb.r, f * rgb.g, f * rgb.b);
195 } else if (layer == 1) {
196 // Only deactivate non-defined key LEDs at layers other than FN. Because at FN we have RGB adjustments and need to see them live.
197 // If the values are all false then it's a transparent key and deactivate LED at this layer
198 rgb_matrix_set_color(i, 0, 0, 0);
199 }
200 }
201}
202void rgb_matrix_indicators_user(void) {
203 if (g_suspend_state || disable_layer_color ||
204 rgb_matrix_get_flags() == LED_FLAG_NONE ||
205 rgb_matrix_get_flags() == LED_FLAG_UNDERGLOW) {
206 return;
207 }
208 set_layer_color(get_highest_layer(layer_state));
209}
diff --git a/keyboards/massdrop/alt/keymaps/pregame/keymap.h b/keyboards/massdrop/alt/keymaps/pregame/keymap.h
new file mode 100644
index 000000000..198080033
--- /dev/null
+++ b/keyboards/massdrop/alt/keymaps/pregame/keymap.h
@@ -0,0 +1,58 @@
1/* Copyright 2020 elijahblake81
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include QMK_KEYBOARD_H
18
19// HID has not yet been implemented for this keyboard
20// #include "raw_hid.h"
21
22#define MILLISECONDS_IN_SECOND 1000
23
24// These are just to make it neater to use builtin HSV values in the keymap
25#define RED {HSV_RED}
26#define CORAL {HSV_CORAL}
27#define ORANGE {HSV_ORANGE}
28#define GOLDEN {HSV_GOLDENROD}
29#define GOLD {HSV_GOLD}
30#define YELLOW {HSV_YELLOW}
31#define CHART {HSV_CHARTREUSE}
32#define GREEN {HSV_GREEN}
33#define SPRING {HSV_SPRINGGREEN}
34#define TURQ {HSV_TURQUOISE}
35#define TEAL {HSV_TEAL}
36#define CYAN {HSV_CYAN}
37#define AZURE {HSV_AZURE}
38#define BLUE {HSV_BLUE}
39#define PURPLE {HSV_PURPLE}
40#define MAGENT {HSV_MAGENTA}
41#define PINK {HSV_PINK}
42
43
44
45//========================================================== CONFIGURABLE DEFAULTS ==========================================================
46extern bool g_suspend_state;
47extern rgb_config_t rgb_matrix_config;
48bool disable_layer_color;
49
50enum alt_keycodes {
51 U_T_AUTO = SAFE_RANGE, // USB Extra Port Toggle Auto Detect / Always Active
52 U_T_AGCR, // USB Toggle Automatic GCR control
53 DBG_TOG, // DEBUG Toggle On / Off
54 DBG_MTRX, // DEBUG Toggle Matrix Prints
55 DBG_KBD, // DEBUG Toggle Keyboard Prints
56 DBG_MOU, // DEBUG Toggle Mouse Prints
57 MD_BOOT, // Restart into bootloader after hold timeout
58};
diff --git a/keyboards/massdrop/alt/keymaps/pregame/readme.md b/keyboards/massdrop/alt/keymaps/pregame/readme.md
new file mode 100644
index 000000000..e18727056
--- /dev/null
+++ b/keyboards/massdrop/alt/keymaps/pregame/readme.md
@@ -0,0 +1,35 @@
1# Massdrop Alt Pregame
2
3This keymap is here to show some love to the MD Alt. This is a stripped down version of the Drop Ctrl Endgame; hence the name Pregame.
4
5## IRL
6![In Real Life](https://i.imgur.com/Xp6Mb6P.jpg)
7
8
9
10## Layers
11
12### Typing Layer
13
14![Typing Layer](https://i.imgur.com/F7iU53K.png)
15
16### Function Layer
17
18![SHORTCUT_LAYER](https://i.imgur.com/Gub1xyC.png)
19
20## Features
21
22These are the features currently supported by this keymap:
23
24### RGB Can be customized by "NAME OF COLOR" in the Keymap.c file.
25 1. Look at keymap for example. My base layer the W,A,S,D and Arrow Keys are CHART short for CHARTREUSE (Close to NVIDIA GREEN). The values to pick from are located on keymap.h file.
26 2. I have applied static colors to the Function layer that let you know which keys are available to that layer only. The not lit up keys are still accessible if set to Transparent Keycap!!!
27
28## Credits
29
30This was all converted originally from the Drop Ctrl Endgame. I took nblyumberg's version of code and converted it to fit into the alt.
31RGB timeout functionality was originally inspired by the code in this [gist](https://gist.github.com/algernon/9182469e21894192017f2bb5d478c7df).
32LED config code was mostly transferred from [matthewrobo keymap](https://github.com/qmk/qmk_firmware/tree/master/keyboards/massdrop/ctrl/keymaps/matthewrobo).
33
34
35**Rest 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/alt/keymaps/pregame/rules.mk b/keyboards/massdrop/alt/keymaps/pregame/rules.mk
new file mode 100644
index 000000000..c6977c23c
--- /dev/null
+++ b/keyboards/massdrop/alt/keymaps/pregame/rules.mk
@@ -0,0 +1,15 @@
1# RGBLIGHT_ENABLE = no # Not for MD boards. This is here in case you forget.
2COMMAND_ENABLE = no # Commands for debug and configuration
3BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
4BOOTMAGIC_ENABLE = no
5# AUTO_SHIFT_ENABLE = yes # Auto Shift
6NKRO_ENABLE = yes # USB Nkey Rollover
7DYNAMIC_MACRO_ENABLE = no # Dynamic macro recording and play
8MOUSEKEY_ENABLE = no # Enable mouse control keycodes. Increases firmware size.
9TAP_DANCE_ENABLE = no # Enable tap dance keys
10CONSOLE_ENABLE = no # Enable debugging console. Increases firmware size.
11TERMINAL_ENABLE = no
12EXTRAKEY_ENABLE = yes # Audio control and System control
13# RAW_ENABLE = yes # Raw HID has not yet been implemented for this keyboard
14# COMBO_ENABLE # Key combo feature
15# LEADER_ENABLE # Enable leader key chording