Created
September 18, 2017 12:16
-
-
Save jmadden91/2b9c1f521724c82f47653345e16cb9af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copyright 2017 REPLACE_WITH_YOUR_NAME | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 2 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
* GNU General Public License for more details. | |
* | |
* You should have received a copy of the GNU General Public License | |
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
*/ | |
#include "workkeeb.h" | |
#define _BASE 0 | |
#define _FUNCTION 1 | |
#define _LOWER 2 | |
#define _RAISE 3 | |
// RGB Underglow Setup | |
// How long (in ms) to wait between animation steps for the breathing mode | |
const uint8_t RGBLED_BREATHING_INTERVALS[] PROGMEM = {30, 20, 10, 5}; | |
// How long (in ms) to wait between animation steps for the rainbow mode | |
const uint8_t RGBLED_RAINBOW_MOOD_INTERVALS[] PROGMEM = {60, 60, 30}; | |
// How long (in ms) to wait between animation steps for the swirl mode | |
const uint8_t RGBLED_RAINBOW_SWIRL_INTERVALS[] PROGMEM = {50, 50, 20}; | |
// How long (in ms) to wait between animation steps for the snake mode | |
const uint8_t RGBLED_SNAKE_INTERVALS[] PROGMEM = {100, 50, 20}; | |
// How long (in ms) to wait between animation steps for the knight modes | |
const uint8_t RGBLED_KNIGHT_INTERVALS[] PROGMEM = {127, 63, 31}; | |
// These control which colors are selected for the gradient mode | |
const uint16_t RGBLED_GRADIENT_RANGES[] PROGMEM = {360, 240, 180, 120, 90}; | |
///////////////////////////////////////////////////////////////////////////////////////////////////////// | |
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |
/* Qwerty | |
* ,-----------------------------------------------------------------------------------. | |
* | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp | | |
* |------+------+------+------+------+-------------+------+------+------+------+------| | |
* | Esc | A | S | D | F | G | H | J | K | L | ; | " | | |
* |------+------+------+------+------+------|------+------+------+------+------+------| | |
* | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | |
* |------+------+------+------+------+------+------+------+------+------+------+------| | |
* | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | |
* `-----------------------------------------------------------------------------------' | |
*/ | |
[_BASE] = KEYMAP( /* Base */ | |
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | |
LT((1), KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, | |
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, | |
KC_LCTL, KC_LGUI, KC_LALT, MO(2), KC_SPC, MO(3), KC_RALT, KC_RGUI, KC_RCTL), | |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
/* Function | |
* ,-----------------------------------------------------------------------------------. | |
* | | | | | | | | | | | | Del | | |
* |------+------+------+------+------+-------------+------+------+------+------+------| | |
* | | | | | | | | | | | | | | |
* |------+------+------+------+------+------|------+------+------+------+------+------| | |
* | | | | | | | | | | | | | | |
* |------+------+------+------+------+------+------+------+------+------+------+------| | |
* | | | | | | | | | | | | | |
* `-----------------------------------------------------------------------------------' | |
*/ | |
[_FUNCTION] = KEYMAP( | |
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP , KC_TRNS, KC_TRNS, KC_DELT, | |
KC_TRNS, KC_LGUI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, | |
KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_TRNS, KC_TRNS, | |
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET), | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
/* Lower | |
* ,-----------------------------------------------------------------------------------. | |
* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | |
* |------+------+------+------+------+-------------+------+------+------+------+------| | |
* | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | |
* |------+------+------+------+------+------|------+------+------+------+------+------| | |
* | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / |Pg Up |Pg Dn | | | |
* |------+------+------+------+------+------+------+------+------+------+------+------| | |
* | | | | | | | | Next | Vol- | Vol+ | Play | | |
* `-----------------------------------------------------------------------------------' | |
*/ | |
[_LOWER] = KEYMAP( | |
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_TRNS, KC_TRNS, KC_LGUI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SCLN, KC_QUOT, 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, KC_TRNS), | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
/* Raise | |
* ,-----------------------------------------------------------------------------------. | |
* | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | |
* |------+------+------+------+------+-------------+------+------+------+------+------| | |
* | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | |
* |------+------+------+------+------+------|------+------+------+------+------+------| | |
* | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | Home | End | | | |
* |------+------+------+------+------+------+------+------+------+------+------+------| | |
* | | | | | | | | Next | Vol- | Vol+ | Play | | |
* `-----------------------------------------------------------------------------------' | |
*/ | |
[_RAISE] = KEYMAP( | |
KC_ESC, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DELT, | |
KC_TRNS, KC_TRNS, KC_TRNS, KC_LGUI, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | |
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
}; | |
/* | |
const uint16_t PROGMEM fn_actions[] = { | |
}; | |
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | |
{ | |
// MACRODOWN only works in this function | |
switch(id) { | |
case 0: | |
if (record->event.pressed) { | |
register_code(KC_RSFT); | |
} else { | |
unregister_code(KC_RSFT); | |
} | |
break; | |
} | |
return MACRO_NONE; | |
}; | |
*/ | |
void matrix_init_user(void) { | |
} | |
void matrix_scan_user(void) { | |
} | |
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |
return true; | |
} | |
void led_set_user(uint8_t usb_led) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment