diff options
| author | Christopher Browne <cbbrowne@acm.org> | 2019-03-05 15:22:51 -0500 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-03-05 12:22:51 -0800 |
| commit | dbfbe0d7f0d829fdebb3be5dff1c1dcc4b677568 (patch) | |
| tree | 30f0f2ba52a8ca4f645e2216eebb58f0be8d7348 /keyboards/xd75 | |
| parent | 8c2a23dee16077b5906ea090cd6fac268d0079f2 (diff) | |
| download | qmk_firmware-dbfbe0d7f0d829fdebb3be5dff1c1dcc4b677568.tar.gz qmk_firmware-dbfbe0d7f0d829fdebb3be5dff1c1dcc4b677568.zip | |
Adopted LAYOUT, added some keys (#5320)
* Add HOME/END keys as upper/lower on arrow-up/down
* Reduce .hex file size by turning off unneeded options
* Put digit keypad onto left hand upon RAISE; this will sometimes be preferable to double-hits of right hand
* Latest super latest version merge
* cbbrowne keymap for XD75re
* starting notes on XD75re keymap plans
* First draft of bottom row of QWERTY
* Switch my special bottom line over to QCENT
* Dunno
* Filling in wanted keys, bit by bit...
* Add copyright, extra macro
* Clean up comments, remove some experimental code I didn't like
* TODO plans for xd75re
* clean up keyboard layout
* QCENT2 is my new experiment for the main keyboard...
* Add a few more main layer keys, and modify LOWER to shift things outwards to conform with main layer
* Clean up RAISE layer to conform with main layer, remove QCENT layer as QCENT2 is the new thing
* More xd75 changes, now that I actually have it in hand
* shift keymap around, as original attempt was a bit too aggressive in keeping to the edges
* more revs to XD75
* Dropping parts of the centre keypad in favor of Keys I Really Need
* Improve documentation to conform with how builds are done now
* Improve documentation to conform with how builds are done now
* Add cbbrowne rules file as alternative to having the rules in Makefile
* Makefile not needed anymore for individual keymap
* Some revs to my keymapping
* Add {}
* Add PGUP/PGDN
* Shifted some middle-range keys around
* Needed Tilde, Backquote, and to shift RESET onto FUNCTION layer
* Wanted ~
* cbbrowne hasn't anything to do with hadron keymaps
* trim unneeded bits
* I prefer OrgMode for my notes
* Have a right-alt
* Layer keys make LED colors change
* Add sample user rules for cbbrowne
* Add source of xd75 rules
* Individualized xd75 rules
* Adopt LAYOUT to genericize the layout as an ortholinear 5x15 keyboard
Diffstat (limited to 'keyboards/xd75')
| -rw-r--r-- | keyboards/xd75/keymaps/cbbrowne/keymap.c | 141 | ||||
| -rw-r--r-- | keyboards/xd75/keymaps/cbbrowne/rules.mk | 24 |
2 files changed, 104 insertions, 61 deletions
diff --git a/keyboards/xd75/keymaps/cbbrowne/keymap.c b/keyboards/xd75/keymaps/cbbrowne/keymap.c index 1bebf2d11..b20cafabc 100644 --- a/keyboards/xd75/keymaps/cbbrowne/keymap.c +++ b/keyboards/xd75/keymaps/cbbrowne/keymap.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright 2017 REPLACE_WITH_YOUR_NAME | 1 | /* Copyright 2017 Christopher B Browne |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 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 | 4 | * it under the terms of the GNU General Public License as published by |
| @@ -62,12 +62,7 @@ enum macro_id { | |||
| 62 | #define FUNCTION MO(_FUNCTION) | 62 | #define FUNCTION MO(_FUNCTION) |
| 63 | #define MRAISE MO(_RAISE) | 63 | #define MRAISE MO(_RAISE) |
| 64 | #define MLOWER MO(_LOWER) | 64 | #define MLOWER MO(_LOWER) |
| 65 | #define ALTBSP ALT_T(KC_BSPC) | 65 | #define ALTPLUS ALT_T(KC_PLUS) |
| 66 | |||
| 67 | /* More modifiers for QCENT2... */ | ||
| 68 | #define PALT MT(KC_RALT, KC_P) | ||
| 69 | #define SCTL MT(KC_RCTL, KC_SCLN) | ||
| 70 | #define SSHF MT(KC_RSFT, KC_SLSH) | ||
| 71 | 66 | ||
| 72 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 67 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 73 | 68 | ||
| @@ -84,7 +79,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 84 | * | BRITE | LCTRL | LALT | LGUI | RAISE | XXXXXX . SPACE | LOWER | RGUI | RALT | RCTRL | FN | LEFT | DOWN | RIGHT | | 79 | * | BRITE | LCTRL | LALT | LGUI | RAISE | XXXXXX . SPACE | LOWER | RGUI | RALT | RCTRL | FN | LEFT | DOWN | RIGHT | |
| 85 | * '--------------------------------------------------------------------------------------------------------------------------------------' | 80 | * '--------------------------------------------------------------------------------------------------------------------------------------' |
| 86 | */ | 81 | */ |
| 87 | 82 | ||
| 88 | /* layout for centred keypad + qwerty... | 83 | /* layout for centred keypad + qwerty... |
| 89 | 84 | ||
| 90 | |ESC| 1 | 2 | 3 | 4 | 5 | ? | ? | ? | ? | 6 | 7 | 8 | 9 | 0 | | 85 | |ESC| 1 | 2 | 3 | 4 | 5 | ? | ? | ? | ? | 6 | 7 | 8 | 9 | 0 | |
| @@ -94,40 +89,35 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 94 | |ALT|LED| | | | | | | | | | | | | | | 89 | |ALT|LED| | | | | | | | | | | | | | |
| 95 | 90 | ||
| 96 | 91 | ||
| 97 | |||
| 98 | |||
| 99 | keys needing to be assigned: | 92 | keys needing to be assigned: |
| 100 | 11 - KC_TAB - tab | 93 | 51 - KC_TAB - tab |
| 101 | 52 - ROT_LED - rotate LED | 94 | - ROT_LED - rotate LED |
| 102 | 15 - KC_LALT - Left ALT | 95 | 15 - KC_LALT - Left ALT |
| 103 | - KC_LGUI - this is the windows/command key, which I think I do not use... | 96 | 53,55 - M_RAISE - switch to RAISE layer |
| 104 | - M_LOWER - switch to LOWER layer | 97 | 5b - M_LOWER - switch to LOWER layer |
| 105 | - KC_SPC - space | 98 | 56,59,5a - KC_SPC - space |
| 106 | - M_UPPER - switch to UPPER layer, maybe unneeded for 15x5 | 99 | 5c - KC_LEFT - famous arrows |
| 107 | - KC_LEFT - famous arrows | 100 | 5d - KC_DOWN - famous arrows |
| 108 | - KC_DOWN - famous arrows | 101 | 5e - KC_UP - famous arrows |
| 109 | - KC_UP - famous arrows | 102 | 5f - KC_RIGHT - famous arrows |
| 110 | - KC_RIGHT - famous arrows | 103 | 3f - KC_ENT - enter |
| 111 | - KC_ENT - enter | ||
| 112 | - KC_GRV - leftwards quote | 104 | - KC_GRV - leftwards quote |
| 113 | - KC_QUOT - rightwards quote | 105 | 4f - KC_QUOT - rightwards quote |
| 114 | - KC_BSPC - backspace | 106 | 1f - KC_BSPC - backspace |
| 115 | - KC_ESC | 107 | 11 - KC_ESC |
| 108 | 19 - KC_GRV - ` - raised | ||
| 109 | 19 - KC_TILD - ~ - lowered | ||
| 116 | 110 | ||
| 117 | Missing still... | 111 | */ |
| 118 | KC_LBRC and KC_LCBR | ||
| 119 | KC_RBRC and KC_RCBR | ||
| 120 | 112 | ||
| 121 | */ | 113 | [_QWERTY] = LAYOUT_ortho_5x15( /* QWERTY, with keypad in the centre */ |
| 114 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_EQL, KC_MINS, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC , | ||
| 115 | KC_LALT, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_7, KC_8, KC_EQL, KC_Y, KC_U, KC_I, KC_O, KC_P, ALTPLUS , | ||
| 116 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LBRC, KC_RBRC,KC_MINS, KC_H, KC_J, KC_K, KC_L, KC_SCLN, CTLENTER , | ||
| 117 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_PGUP, KC_EQL, KC_BSLS, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SHIFTQUOTE , | ||
| 118 | KC_TAB, FUNCTION, MRAISE, FUNCTION, MRAISE, KC_SPC,KC_PGDN, KC_MINS, KC_SPC, KC_SPC, MLOWER, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 119 | ), | ||
| 122 | 120 | ||
| 123 | [_QWERTY] = { /* QWERTY, with keypad in the centre */ | ||
| 124 | { KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_EQL, KC_MINS, RESET, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC }, | ||
| 125 | { KC_LALT, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_7, KC_8, KC_EQL, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_PLUS }, | ||
| 126 | { KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_4, KC_5, KC_MINS, KC_H, KC_J, KC_K, KC_L, KC_SCLN, CTLENTER }, | ||
| 127 | { KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_1, KC_2, KC_BSLS, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SHIFTQUOTE }, | ||
| 128 | { KC_TAB, FUNCTION, MRAISE, FUNCTION, MRAISE, KC_SPC, KC_0, KC_MINS, KC_SPC, KC_SPC, MLOWER, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT } | ||
| 129 | }, | ||
| 130 | |||
| 131 | /* LOWER | 121 | /* LOWER |
| 132 | * .---------------------------------------------------------------------------------------------------------------------- 2u ------------. | 122 | * .---------------------------------------------------------------------------------------------------------------------- 2u ------------. |
| 133 | * | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | XXXXXX . | | 123 | * | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | XXXXXX . | |
| @@ -142,13 +132,13 @@ Missing still... | |||
| 142 | * '--------------------------------------------------------------------------------------------------------------------------------------' | 132 | * '--------------------------------------------------------------------------------------------------------------------------------------' |
| 143 | */ | 133 | */ |
| 144 | 134 | ||
| 145 | [_LOWER] = { /* LOWERED */ | 135 | [_LOWER] = LAYOUT_ortho_5x15( /* LOWERED */ |
| 146 | { ___T___, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11 }, | 136 | ___T___, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, KC_TILD, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11 , |
| 147 | { ___T___, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_INS }, | 137 | ___T___, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_INS , |
| 148 | { ___T___, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, _______ }, | 138 | ___T___, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE , |
| 149 | { _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, ___T___, ___T___, _______ }, | 139 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, ___T___, ___T___, _______ , |
| 150 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ }, | 140 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ |
| 151 | }, | 141 | ), |
| 152 | 142 | ||
| 153 | /* RAISED | 143 | /* RAISED |
| 154 | * .---------------------------------------------------------------------------------------------------------------------- 2u ------------. | 144 | * .---------------------------------------------------------------------------------------------------------------------- 2u ------------. |
| @@ -164,13 +154,13 @@ Missing still... | |||
| 164 | * '--------------------------------------------------------------------------------------------------------------------------------------' | 154 | * '--------------------------------------------------------------------------------------------------------------------------------------' |
| 165 | */ | 155 | */ |
| 166 | 156 | ||
| 167 | [_RAISE] = { /* RAISED */ | 157 | [_RAISE] = LAYOUT_ortho_5x15 ( /* RAISED */ |
| 168 | { KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, _______, _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, ___T___ }, | 158 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, MVERSION, _______, KC_GRV, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, ___T___ , |
| 169 | { KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, _______, _______, KC_7, KC_8, KC_9, KC_0, _______, _______, KC_INS }, | 159 | KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, USERNAME, _______, KC_7, KC_8, KC_LCBR, KC_RCBR, _______, _______, KC_INS , |
| 170 | { KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, ___T___, ___T___ }, | 160 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, RANDDIG, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, ___T___, ___T___ , |
| 171 | { KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, ___T___, ___T___, _______, _______ }, | 161 | KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, RANDALP, _______, _______, _______, _______, ___T___, ___T___, _______, _______ , |
| 172 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ }, | 162 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ |
| 173 | }, | 163 | ), |
| 174 | 164 | ||
| 175 | /* FUNCTION | 165 | /* FUNCTION |
| 176 | * .---------------------------------------------------------------------------------------------------------------------- 2u ------------. | 166 | * .---------------------------------------------------------------------------------------------------------------------- 2u ------------. |
| @@ -178,21 +168,21 @@ Missing still... | |||
| 178 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------| | 168 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------| |
| 179 | * | SCR LK | F13 | F14 | F15 | F16 | F17 | F18 | F19 | F20 | F21 | F22 | F23 | F24 | PAUSE | PR SCR | | 169 | * | SCR LK | F13 | F14 | F15 | F16 | F17 | F18 | F19 | F20 | F21 | F22 | F23 | F24 | PAUSE | PR SCR | |
| 180 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+- 2u ------------+--------| | 170 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+- 2u ------------+--------| |
| 181 | * | CAP LK | MS BT5 | MS BT4 | MS BT3 | MS BT2 | SLOW M | FAST M | NEXT | VOL+ | VOL- | PLAY | | XXXXXX . | WHEEL+ | | 171 | * | CAP LK | MS BT5 | MS BT4 | MS BT3 | MS BT2 | SLOW M | FAST M | NEXT | VOL+ | VOL- | PLAY | | XXXXXX | | WHEEL+ | |
| 182 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+- 2u ---------------------+--------| | 172 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+- 2u ---------------------+--------| |
| 183 | * | RGB TG | RGB MD | RGB HI | RGB HD | RGB SI | RGB SD | RGB VI | RGB VD | BL TOG | BL INC | BL DEC | XXXXXX . | MOUS Un | WHEEL- | | 173 | * | RGB TG | RGB MD | RGB HI | RGB HD | RGB SI | RGB SD | RGB VI | RGB VD | BL TOG | BL INC | BL DEC | XXXXXX | | MOUS U | WHEEL- | |
| 184 | * |--------+--------+--------+--------+--------+-- 2u -----------+--------+--------+--------+--------+-----------------+--------+--------| | 174 | * |--------+--------+--------+--------+--------+-- 2u -----------+--------+--------+--------+--------+-----------------+--------+--------| |
| 185 | * | RESET | | QWERTY | COLEMK | DVORAK | XXXXXX . MS BT1 | | | | | | MOUS L | MOUS D | MOUS R | | 175 | * | RESET | | QWERTY | COLEMK | DVORAK | XXXXXX . MS BT1 | | | | | | MOUS L | MOUS D | MOUS R | |
| 186 | * '--------------------------------------------------------------------------------------------------------------------------------------' | 176 | * '--------------------------------------------------------------------------------------------------------------------------------------' |
| 187 | */ | 177 | */ |
| 188 | 178 | ||
| 189 | [_FUNCTION] = { /* FUNCTION */ | 179 | [_FUNCTION] = LAYOUT_ortho_5x15( /* FUNCTION */ |
| 190 | { KC_NLCK, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, ___T___, ___T___ }, | 180 | KC_NLCK, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, RESET, RESET, |
| 191 | { KC_SLCK, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, KC_PAUS, KC_PSCR }, | 181 | KC_SLCK, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, KC_PAUS, KC_PSCR , |
| 192 | { KC_CAPS, KC_BTN5, KC_BTN4, KC_BTN3, KC_BTN2, KC_ACL0, KC_ACL2, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY, _______, ___T___, ___T___, KC_WH_U }, | 182 | KC_CAPS, KC_BTN5, KC_BTN4, KC_BTN3, KC_BTN2, KC_ACL0, KC_ACL2, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY, _______, ___T___, ___T___, KC_WH_U , |
| 193 | { RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, BL_TOGG, BL_INC, BL_DEC, ___T___, ___T___, KC_MS_U, KC_WH_D }, | 183 | RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, BL_TOGG, BL_INC, BL_DEC, ___T___, ___T___, KC_MS_U, KC_WH_D , |
| 194 | { RESET , _______, DF(_QWERTY), DF(_QWERTY), DF(_QWERTY), KC_BTN1, KC_BTN1, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R }, | 184 | RESET , _______, DF(_QWERTY), DF(_QWERTY), DF(_QWERTY), KC_BTN1, KC_BTN1, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R |
| 195 | }, | 185 | ) |
| 196 | }; | 186 | }; |
| 197 | 187 | ||
| 198 | /* This bit of logic seeds a wee linear congruential random number generator */ | 188 | /* This bit of logic seeds a wee linear congruential random number generator */ |
| @@ -223,8 +213,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | |||
| 223 | break; | 213 | break; |
| 224 | case M_VERSION: | 214 | case M_VERSION: |
| 225 | if (record->event.pressed) { | 215 | if (record->event.pressed) { |
| 226 | SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP "@"); | 216 | SEND_STRING(QMK_KEYBOARD "/" QMK_KEYMAP); |
| 227 | // SEND_STRING(QMK_VERSION "@" QMK_BUILDDATE); | ||
| 228 | } | 217 | } |
| 229 | break; | 218 | break; |
| 230 | case M_RANDDIGIT: | 219 | case M_RANDDIGIT: |
| @@ -289,3 +278,33 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | |||
| 289 | } | 278 | } |
| 290 | return MACRO_NONE; | 279 | return MACRO_NONE; |
| 291 | }; | 280 | }; |
| 281 | |||
| 282 | void matrix_init_user(void) { | ||
| 283 | rgblight_enable(); | ||
| 284 | rgblight_mode(1); | ||
| 285 | rgblight_sethsv(325,255,255); | ||
| 286 | } | ||
| 287 | |||
| 288 | uint32_t layer_state_set_user(uint32_t state) { | ||
| 289 | switch(biton32(state)) { | ||
| 290 | case _QWERTY: | ||
| 291 | rgblight_sethsv_white(); | ||
| 292 | break; | ||
| 293 | case _LOWER: | ||
| 294 | rgblight_sethsv_blue(); | ||
| 295 | break; | ||
| 296 | case _RAISE: | ||
| 297 | rgblight_sethsv_green(); | ||
| 298 | break; | ||
| 299 | case _ADJUST: | ||
| 300 | rgblight_sethsv_orange(); | ||
| 301 | break; | ||
| 302 | case _FUNCTION: | ||
| 303 | rgblight_sethsv_red(); | ||
| 304 | break; | ||
| 305 | default: | ||
| 306 | rgblight_sethsv(325,255,255); | ||
| 307 | break; | ||
| 308 | } | ||
| 309 | return state; | ||
| 310 | } | ||
diff --git a/keyboards/xd75/keymaps/cbbrowne/rules.mk b/keyboards/xd75/keymaps/cbbrowne/rules.mk new file mode 100644 index 000000000..0968298a0 --- /dev/null +++ b/keyboards/xd75/keymaps/cbbrowne/rules.mk | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | # Build Options | ||
| 2 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 3 | # the appropriate keymap folder that will get included automatically | ||
| 4 | # | ||
| 5 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 6 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 7 | EXTRAKEY_ENABLE = no # Audio control and System control(+450) | ||
| 8 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 9 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 11 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 12 | MIDI_ENABLE = no # MIDI controls | ||
| 13 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 14 | UNICODE_ENABLE = no # Unicode | ||
| 15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 16 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
| 17 | API_SYSEX_ENABLE = no # Enable SYSEX API (+5390) | ||
| 18 | |||
| 19 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 20 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 21 | |||
| 22 | ifndef QUANTUM_DIR | ||
| 23 | include ../../../../Makefile | ||
| 24 | endif | ||
