diff options
| author | Drashna Jaelre <drashna@live.com> | 2019-05-06 22:34:09 -0700 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-05-06 22:34:09 -0700 |
| commit | f3d5b1091d364468cd9f5510aef9e723d8542279 (patch) | |
| tree | 762b8f562b1e96e42657f872fd4b04c8efaaa829 /layouts/community/ergodox | |
| parent | 7a751f114114bf3b78d5d8fc8bedf2b42b665dba (diff) | |
| download | qmk_firmware-f3d5b1091d364468cd9f5510aef9e723d8542279.tar.gz qmk_firmware-f3d5b1091d364468cd9f5510aef9e723d8542279.zip | |
[Keymap] RGB Changes for Drashna Keyboards (#5803)
* Disable a bunch of reactive modes
* Enable rgb matrix for Corne Keyboard
* Convert CRKBD to rgb matrix
* Add Gergo keyboard layout
* Make Diablo 3 tap dance better
* Add basic support for Planck EZ
* Fix RGB Matrix stuff
* Fix keycodes for Planck EZ
* Update CRKBD OLED stuff
* Fix typo for sleep on ergodox glow
* Improve my gergo layout
* Scrolling OLED key logger!
* Change gergo layout
* Hnadle unicode keycodes if unicode is disabled
* Disable COMMAND/CONSOLE for gergo
* Fix right side control
* Re-enable LTO for all platforms
Since I got updated arm gcc binaries that no longer error out on lto
* Update formatting to match newer community standards
Poor 2 space
* Re-alight startup animation to use new HUE range
* Streamline gitlab ci scripts
* Disabled Space Cadet
* Add support for breathing table
* Enable new LTO Option
And clean up defines that will now be repeatitive
* Remove vscode settings
* Additional formatting cleanup of config.h files
Diffstat (limited to 'layouts/community/ergodox')
| -rw-r--r-- | layouts/community/ergodox/drashna/config.h | 9 | ||||
| -rw-r--r-- | layouts/community/ergodox/drashna/keymap.c | 300 | ||||
| -rw-r--r-- | layouts/community/ergodox/drashna/rules.mk | 23 | ||||
| -rw-r--r-- | layouts/community/ergodox/drashna_glow/config.h | 15 |
4 files changed, 171 insertions, 176 deletions
diff --git a/layouts/community/ergodox/drashna/config.h b/layouts/community/ergodox/drashna/config.h index 7b2ad4fa1..7feaf6f25 100644 --- a/layouts/community/ergodox/drashna/config.h +++ b/layouts/community/ergodox/drashna/config.h | |||
| @@ -1,12 +1,11 @@ | |||
| 1 | #pragma once | 1 | #pragma once |
| 2 | 2 | ||
| 3 | #ifdef RGBLIGHT_ENABLE | 3 | #ifdef RGBLIGHT_ENABLE |
| 4 | #undef RGBLIGHT_SAT_STEP | 4 | # undef RGBLIGHT_SAT_STEP |
| 5 | #define RGBLIGHT_SAT_STEP 12 | 5 | # define RGBLIGHT_SAT_STEP 12 |
| 6 | 6 | ||
| 7 | #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 3 | 7 | # define RGBLIGHT_EFFECT_KNIGHT_LENGTH 3 |
| 8 | #define RGBLIGHT_EFFECT_SNAKE_LENGTH 3 | 8 | # define RGBLIGHT_EFFECT_SNAKE_LENGTH 3 |
| 9 | #define RGBLIGHT_EFFECT_BREATHE_CENTER 1 | ||
| 10 | #endif // RGBLIGHT_ENABLE | 9 | #endif // RGBLIGHT_ENABLE |
| 11 | 10 | ||
| 12 | 11 | ||
diff --git a/layouts/community/ergodox/drashna/keymap.c b/layouts/community/ergodox/drashna/keymap.c index 26c2e3304..eeb21501b 100644 --- a/layouts/community/ergodox/drashna/keymap.c +++ b/layouts/community/ergodox/drashna/keymap.c | |||
| @@ -20,6 +20,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 20 | #ifdef UNICODEMAP_ENABLE | 20 | #ifdef UNICODEMAP_ENABLE |
| 21 | #include "drashna_unicode.h" | 21 | #include "drashna_unicode.h" |
| 22 | #endif // UNICODEMAP_ENABLE | 22 | #endif // UNICODEMAP_ENABLE |
| 23 | #ifndef UNICODE_ENABLE | ||
| 24 | # define UC(x) KC_NO | ||
| 25 | #endif | ||
| 23 | 26 | ||
| 24 | #ifdef RGB_MATRIX_ENABLE | 27 | #ifdef RGB_MATRIX_ENABLE |
| 25 | extern bool g_suspend_state; | 28 | extern bool g_suspend_state; |
| @@ -28,7 +31,7 @@ extern rgb_config_t rgb_matrix_config; | |||
| 28 | extern userspace_config_t userspace_config; | 31 | extern userspace_config_t userspace_config; |
| 29 | 32 | ||
| 30 | enum more_custom_keycodes { | 33 | enum more_custom_keycodes { |
| 31 | KC_SWAP_NUM = NEW_SAFE_RANGE | 34 | KC_SWAP_NUM = NEW_SAFE_RANGE |
| 32 | }; | 35 | }; |
| 33 | 36 | ||
| 34 | //define layer change stuff for underglow indicator | 37 | //define layer change stuff for underglow indicator |
| @@ -43,7 +46,7 @@ bool skip_leds = false; | |||
| 43 | KC_ESC, ________________NUMBER_LEFT________________, UC_FLIP, UC_TABL, ________________NUMBER_RIGHT_______________, KC_MINS, \ | 46 | KC_ESC, ________________NUMBER_LEFT________________, UC_FLIP, UC_TABL, ________________NUMBER_RIGHT_______________, KC_MINS, \ |
| 44 | KC_TAB, K01, K02, K03, K04, K05, TG(_DIABLO), TG(_DIABLO), K06, K07, K08, K09, K0A, KC_BSLS, \ | 47 | KC_TAB, K01, K02, K03, K04, K05, TG(_DIABLO), TG(_DIABLO), K06, K07, K08, K09, K0A, KC_BSLS, \ |
| 45 | KC_C1R3, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, KC_QUOT, \ | 48 | KC_C1R3, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, KC_QUOT, \ |
| 46 | KC_MLSF, CTL_T(K21), K22, K23, K24, K25, TG(_GAMEPAD), TG(_GAMEPAD), K26, K27, K28, K29, CTL_T(K2A), KC_MRSF, \ | 49 | KC_MLSF, CTL_T(K21), K22, K23, K24, K25, TG(_GAMEPAD), TG(_GAMEPAD), K26, K27, K28, K29, RCTL_T(K2A), KC_MRSF, \ |
| 47 | KC_GRV, OS_MEH, OS_HYPR, KC_LBRC, KC_RBRC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, UC(0x2E2E), \ | 50 | KC_GRV, OS_MEH, OS_HYPR, KC_LBRC, KC_RBRC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, UC(0x2E2E), \ |
| 48 | OS_LALT, OS_LGUI, OS_RGUI, CTL_T(KC_ESCAPE), \ | 51 | OS_LALT, OS_LGUI, OS_RGUI, CTL_T(KC_ESCAPE), \ |
| 49 | KC_APP, KC_MENU, \ | 52 | KC_APP, KC_MENU, \ |
| @@ -305,87 +308,88 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 305 | 308 | ||
| 306 | bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { | 309 | bool process_record_keymap(uint16_t keycode, keyrecord_t *record) { |
| 307 | 310 | ||
| 308 | switch (keycode) { | 311 | switch (keycode) { |
| 309 | case KC_1: | 312 | case KC_1: |
| 310 | if (IS_LAYER_ON(_GAMEPAD) && userspace_config.swapped_numbers) { | 313 | if (IS_LAYER_ON(_GAMEPAD) && userspace_config.swapped_numbers) { |
| 311 | if (record->event.pressed) { | 314 | if (record->event.pressed) { |
| 312 | register_code(KC_2); | 315 | register_code(KC_2); |
| 313 | } else { | 316 | } else { |
| 314 | unregister_code(KC_2); | 317 | unregister_code(KC_2); |
| 315 | } | 318 | } |
| 316 | return false; | 319 | return false; |
| 317 | } | 320 | } |
| 318 | break; | 321 | break; |
| 319 | case KC_2: | 322 | case KC_2: |
| 320 | if (IS_LAYER_ON(_GAMEPAD) && userspace_config.swapped_numbers) { | 323 | if (IS_LAYER_ON(_GAMEPAD) && userspace_config.swapped_numbers) { |
| 321 | if (record->event.pressed) { | 324 | if (record->event.pressed) { |
| 322 | register_code(KC_1); | 325 | register_code(KC_1); |
| 323 | } else { | 326 | } else { |
| 324 | unregister_code(KC_1); | 327 | unregister_code(KC_1); |
| 325 | } | 328 | } |
| 326 | return false; | 329 | return false; |
| 327 | } | 330 | } |
| 328 | break; | 331 | break; |
| 329 | case KC_SWAP_NUM: | 332 | case KC_SWAP_NUM: |
| 330 | if (record->event.pressed) { | 333 | if (record->event.pressed) { |
| 331 | userspace_config.swapped_numbers ^= 1; | 334 | userspace_config.swapped_numbers ^= 1; |
| 332 | eeconfig_update_user(userspace_config.raw); | 335 | eeconfig_update_user(userspace_config.raw); |
| 333 | } | 336 | } |
| 334 | } | 337 | break; |
| 335 | //switch (keycode) { | 338 | } |
| 336 | // case KC_P00: | 339 | //switch (keycode) { |
| 337 | // if (!record->event.pressed) { | 340 | // case KC_P00: |
| 338 | // register_code(KC_KP_0); | 341 | // if (!record->event.pressed) { |
| 339 | // unregister_code(KC_KP_0); | 342 | // register_code(KC_KP_0); |
| 340 | // register_code(KC_KP_0); | 343 | // unregister_code(KC_KP_0); |
| 341 | // unregister_code(KC_KP_0); | 344 | // register_code(KC_KP_0); |
| 342 | // } | 345 | // unregister_code(KC_KP_0); |
| 343 | // return false; | 346 | // } |
| 344 | // break; | 347 | // return false; |
| 345 | //} | 348 | // break; |
| 346 | return true; | 349 | //} |
| 350 | return true; | ||
| 347 | } | 351 | } |
| 348 | 352 | ||
| 349 | void matrix_scan_keymap(void) { // runs frequently to update info | 353 | void matrix_scan_keymap(void) { // runs frequently to update info |
| 350 | uint8_t modifiers = get_mods(); | 354 | uint8_t modifiers = get_mods(); |
| 351 | uint8_t led_usb_state = host_keyboard_leds(); | 355 | uint8_t led_usb_state = host_keyboard_leds(); |
| 352 | uint8_t one_shot = get_oneshot_mods(); | 356 | uint8_t one_shot = get_oneshot_mods(); |
| 353 | 357 | ||
| 354 | if (!skip_leds) { | 358 | if (!skip_leds) { |
| 355 | ergodox_board_led_off(); | 359 | ergodox_board_led_off(); |
| 356 | ergodox_right_led_1_off(); | 360 | ergodox_right_led_1_off(); |
| 357 | ergodox_right_led_2_off(); | 361 | ergodox_right_led_2_off(); |
| 358 | ergodox_right_led_3_off(); | 362 | ergodox_right_led_3_off(); |
| 359 | 363 | ||
| 360 | // Since we're not using the LEDs here for layer indication anymore, | 364 | // Since we're not using the LEDs here for layer indication anymore, |
| 361 | // then lets use them for modifier indicators. Shame we don't have 4... | 365 | // then lets use them for modifier indicators. Shame we don't have 4... |
| 362 | // Also, no "else", since we want to know each, independently. | 366 | // Also, no "else", since we want to know each, independently. |
| 363 | if ( ( modifiers | one_shot ) & MOD_MASK_SHIFT || led_usb_state & (1<<USB_LED_CAPS_LOCK) ) { | 367 | if ( ( modifiers | one_shot ) & MOD_MASK_SHIFT || led_usb_state & (1<<USB_LED_CAPS_LOCK) ) { |
| 364 | ergodox_right_led_2_on(); | 368 | ergodox_right_led_2_on(); |
| 365 | ergodox_right_led_2_set( 50 ); | 369 | ergodox_right_led_2_set( 50 ); |
| 366 | } | 370 | } |
| 367 | if ( ( modifiers | one_shot ) & MOD_MASK_CTRL) { | 371 | if ( ( modifiers | one_shot ) & MOD_MASK_CTRL) { |
| 368 | ergodox_right_led_1_on(); | 372 | ergodox_right_led_1_on(); |
| 369 | ergodox_right_led_1_set( 10 ); | 373 | ergodox_right_led_1_set( 10 ); |
| 370 | } | 374 | } |
| 371 | if ( ( modifiers | one_shot ) & MOD_MASK_ALT) { | 375 | if ( ( modifiers | one_shot ) & MOD_MASK_ALT) { |
| 372 | ergodox_right_led_3_on(); | 376 | ergodox_right_led_3_on(); |
| 373 | ergodox_right_led_3_set( 10 ); | 377 | ergodox_right_led_3_set( 10 ); |
| 374 | } | 378 | } |
| 375 | 379 | ||
| 376 | } | 380 | } |
| 377 | 381 | ||
| 378 | }; | 382 | } |
| 379 | 383 | ||
| 380 | 384 | ||
| 381 | bool indicator_is_this_led_used_keyboard(uint8_t index) { | 385 | bool indicator_is_this_led_used_keyboard(uint8_t index) { |
| 382 | switch (index) { | 386 | switch (index) { |
| 383 | case 13 ... 14: | 387 | case 13 ... 14: |
| 384 | return true; | 388 | return true; |
| 385 | break; | 389 | break; |
| 386 | default: | 390 | default: |
| 387 | return false; | 391 | return false; |
| 388 | } | 392 | } |
| 389 | } | 393 | } |
| 390 | 394 | ||
| 391 | 395 | ||
| @@ -393,101 +397,81 @@ bool indicator_is_this_led_used_keyboard(uint8_t index) { | |||
| 393 | 397 | ||
| 394 | void suspend_power_down_keymap(void) { | 398 | void suspend_power_down_keymap(void) { |
| 395 | rgb_matrix_set_suspend_state(true); | 399 | rgb_matrix_set_suspend_state(true); |
| 396 | rgb_matrix_config.enable = false; | ||
| 397 | } | 400 | } |
| 398 | 401 | ||
| 399 | void suspend_wakeup_init_keymap(void) { | 402 | void suspend_wakeup_init_keymap(void) { |
| 400 | rgb_matrix_config.enable = true; | ||
| 401 | rgb_matrix_set_suspend_state(false); | 403 | rgb_matrix_set_suspend_state(false); |
| 402 | } | 404 | } |
| 403 | 405 | ||
| 404 | void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) { | 406 | void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) { |
| 405 | rgb_led led; | 407 | rgb_led led; |
| 406 | for (int i = 0; i < DRIVER_LED_TOTAL; i++) { | 408 | for (int i = 0; i < DRIVER_LED_TOTAL; i++) { |
| 407 | led = g_rgb_leds[i]; | 409 | led = g_rgb_leds[i]; |
| 408 | if (HAS_FLAGS(led.flags, LED_FLAG_MODIFIER)) { | 410 | if (HAS_FLAGS(led.flags, LED_FLAG_MODIFIER)) { |
| 409 | rgb_matrix_set_color( i, red, green, blue ); | 411 | rgb_matrix_set_color( i, red, green, blue ); |
| 412 | } | ||
| 410 | } | 413 | } |
| 411 | } | ||
| 412 | } | 414 | } |
| 413 | 415 | ||
| 414 | void rgb_matrix_indicators_user(void) { | 416 | void rgb_matrix_indicators_user(void) { |
| 415 | if (g_suspend_state || !rgb_matrix_config.enable || !userspace_config.rgb_layer_change) { return; } | 417 | if ( userspace_config.rgb_layer_change && |
| 416 | 418 | #ifdef RGB_DISABLE_WHEN_USB_SUSPENDED | |
| 417 | switch (biton32(layer_state)) { | 419 | !g_suspend_state && |
| 418 | case _MODS: | ||
| 419 | rgb_matrix_layer_helper(0xFF, 0xFF, 0x00); break; | ||
| 420 | case _GAMEPAD: | ||
| 421 | rgb_matrix_layer_helper(0xFF, 0x80, 0x00); | ||
| 422 | rgb_matrix_set_color(32, 0x00, 0xFF, 0x00); // Q | ||
| 423 | rgb_matrix_set_color(31, 0x00, 0xFF, 0xFF); // W | ||
| 424 | rgb_matrix_set_color(30, 0xFF, 0x00, 0x00); // E | ||
| 425 | rgb_matrix_set_color(29, 0xFF, 0x80, 0x00); // R | ||
| 426 | rgb_matrix_set_color(37, 0x00, 0xFF, 0xFF); // A | ||
| 427 | rgb_matrix_set_color(36, 0x00, 0xFF, 0xFF); // S | ||
| 428 | rgb_matrix_set_color(35, 0x00, 0xFF, 0xFF); // D | ||
| 429 | rgb_matrix_set_color(34, 0x7A, 0x00, 0xFF); // F | ||
| 430 | |||
| 431 | rgb_matrix_set_color(27, 0xFF, 0xFF, 0xFF); // 1 | ||
| 432 | rgb_matrix_set_color(26, 0x00, 0xFF, 0x00); // 2 | ||
| 433 | rgb_matrix_set_color(25, 0x7A, 0x00, 0xFF); // 3 | ||
| 434 | |||
| 435 | break; | ||
| 436 | case _DIABLO: | ||
| 437 | rgb_matrix_layer_helper(0xFF, 0x00, 0x00); break; | ||
| 438 | case _RAISE: | ||
| 439 | rgb_matrix_layer_helper(0xFF, 0xFF, 0x00); break; | ||
| 440 | case _LOWER: | ||
| 441 | rgb_matrix_layer_helper(0x00, 0xFF, 0x00); break; | ||
| 442 | case _ADJUST: | ||
| 443 | rgb_matrix_layer_helper(0xFF, 0x00, 0x00); break; | ||
| 444 | default: | ||
| 445 | switch (biton32(default_layer_state)) { | ||
| 446 | case _QWERTY: | ||
| 447 | rgb_matrix_layer_helper(0x00, 0xFF, 0xFF); break; | ||
| 448 | case _COLEMAK: | ||
| 449 | rgb_matrix_layer_helper(0xFF, 0x00, 0xFF); break; | ||
| 450 | case _DVORAK: | ||
| 451 | rgb_matrix_layer_helper(0x00, 0xFF, 0x00); break; | ||
| 452 | case _WORKMAN: | ||
| 453 | rgb_matrix_layer_helper(0xD9, 0xA5, 0x21); break; | ||
| 454 | case _NORMAN: | ||
| 455 | rgb_matrix_layer_helper(0xFF, 0x7C, 0x4D); break; | ||
| 456 | case _MALTRON: | ||
| 457 | rgb_matrix_layer_helper(0xFF, 0xFF, 0x00); break; | ||
| 458 | case _EUCALYN: | ||
| 459 | rgb_matrix_layer_helper(0xFF, 0x80, 0xBF); break; | ||
| 460 | case _CARPLAX: | ||
| 461 | rgb_matrix_layer_helper(0x00, 0x00, 0xFF); break; | ||
| 462 | } | ||
| 463 | } | ||
| 464 | #if 0 | ||
| 465 | if (this_mod & MOD_MASK_SHIFT || this_led & (1<<USB_LED_CAPS_LOCK) || this_osm & MOD_MASK_SHIFT) { | ||
| 466 | rgb_matrix_set_color(24, 0x00, 0xFF, 0x00); | ||
| 467 | rgb_matrix_set_color(36, 0x00, 0xFF, 0x00); | ||
| 468 | } | ||
| 469 | if (this_mod & MOD_MASK_CTRL || this_osm & MOD_MASK_CTRL) { | ||
| 470 | rgb_matrix_set_color(25, 0xFF, 0x00, 0x00); | ||
| 471 | rgb_matrix_set_color(34, 0xFF, 0x00, 0x00); | ||
| 472 | rgb_matrix_set_color(37, 0xFF, 0x00, 0x00); | ||
| 473 | |||
| 474 | } | ||
| 475 | if (this_mod & MOD_MASK_GUI || this_osm & MOD_MASK_GUI) { | ||
| 476 | rgb_matrix_set_color(39, 0xFF, 0xD9, 0x00); | ||
| 477 | } | ||
| 478 | if (this_mod & MOD_MASK_ALT || this_osm & MOD_MASK_ALT) { | ||
| 479 | rgb_matrix_set_color(38, 0x00, 0x00, 0xFF); | ||
| 480 | } | ||
| 481 | #endif | 420 | #endif |
| 482 | } | 421 | #if defined(RGBLIGHT_ENABLE) |
| 483 | 422 | (!rgblight_config.enable && rgb_matrix_config.enable) | |
| 484 | void matrix_init_keymap(void) { | 423 | #else |
| 485 | #if 0 | 424 | rgb_matrix_config.enable |
| 486 | #ifdef RGB_MATRIX_KEYPRESSES | ||
| 487 | rgblight_mode(RGB_MATRIX_MULTISPLASH); | ||
| 488 | #else | ||
| 489 | rgblight_mode(RGB_MATRIX_RAINBOW_MOVING_CHEVRON); | ||
| 490 | #endif | ||
| 491 | #endif | 425 | #endif |
| 426 | ) { | ||
| 427 | switch (biton32(layer_state)) { | ||
| 428 | case _MODS: | ||
| 429 | rgb_matrix_layer_helper(0xFF, 0xFF, 0x00); break; | ||
| 430 | case _GAMEPAD: | ||
| 431 | rgb_matrix_layer_helper(0xFF, 0x80, 0x00); | ||
| 432 | rgb_matrix_set_color(32, 0x00, 0xFF, 0x00); // Q | ||
| 433 | rgb_matrix_set_color(31, 0x00, 0xFF, 0xFF); // W | ||
| 434 | rgb_matrix_set_color(30, 0xFF, 0x00, 0x00); // E | ||
| 435 | rgb_matrix_set_color(29, 0xFF, 0x80, 0x00); // R | ||
| 436 | rgb_matrix_set_color(37, 0x00, 0xFF, 0xFF); // A | ||
| 437 | rgb_matrix_set_color(36, 0x00, 0xFF, 0xFF); // S | ||
| 438 | rgb_matrix_set_color(35, 0x00, 0xFF, 0xFF); // D | ||
| 439 | rgb_matrix_set_color(34, 0x7A, 0x00, 0xFF); // F | ||
| 440 | |||
| 441 | rgb_matrix_set_color(27, 0xFF, 0xFF, 0xFF); // 1 | ||
| 442 | rgb_matrix_set_color(26, 0x00, 0xFF, 0x00); // 2 | ||
| 443 | rgb_matrix_set_color(25, 0x7A, 0x00, 0xFF); // 3 | ||
| 444 | |||
| 445 | break; | ||
| 446 | case _DIABLO: | ||
| 447 | rgb_matrix_layer_helper(0xFF, 0x00, 0x00); break; | ||
| 448 | case _RAISE: | ||
| 449 | rgb_matrix_layer_helper(0xFF, 0xFF, 0x00); break; | ||
| 450 | case _LOWER: | ||
| 451 | rgb_matrix_layer_helper(0x00, 0xFF, 0x00); break; | ||
| 452 | case _ADJUST: | ||
| 453 | rgb_matrix_layer_helper(0xFF, 0x00, 0x00); break; | ||
| 454 | default: | ||
| 455 | switch (biton32(default_layer_state)) { | ||
| 456 | case _QWERTY: | ||
| 457 | rgb_matrix_layer_helper(0x00, 0xFF, 0xFF); break; | ||
| 458 | case _COLEMAK: | ||
| 459 | rgb_matrix_layer_helper(0xFF, 0x00, 0xFF); break; | ||
| 460 | case _DVORAK: | ||
| 461 | rgb_matrix_layer_helper(0x00, 0xFF, 0x00); break; | ||
| 462 | case _WORKMAN: | ||
| 463 | rgb_matrix_layer_helper(0xD9, 0xA5, 0x21); break; | ||
| 464 | case _NORMAN: | ||
| 465 | rgb_matrix_layer_helper(0xFF, 0x7C, 0x4D); break; | ||
| 466 | case _MALTRON: | ||
| 467 | rgb_matrix_layer_helper(0xFF, 0xFF, 0x00); break; | ||
| 468 | case _EUCALYN: | ||
| 469 | rgb_matrix_layer_helper(0xFF, 0x80, 0xBF); break; | ||
| 470 | case _CARPLAX: | ||
| 471 | rgb_matrix_layer_helper(0x00, 0x00, 0xFF); break; | ||
| 472 | } | ||
| 473 | } | ||
| 474 | } | ||
| 492 | } | 475 | } |
| 476 | |||
| 493 | #endif //RGB_MATRIX_INIT | 477 | #endif //RGB_MATRIX_INIT |
diff --git a/layouts/community/ergodox/drashna/rules.mk b/layouts/community/ergodox/drashna/rules.mk index ee231321e..f0628d9da 100644 --- a/layouts/community/ergodox/drashna/rules.mk +++ b/layouts/community/ergodox/drashna/rules.mk | |||
| @@ -1,19 +1,20 @@ | |||
| 1 | TAP_DANCE_ENABLE = yes | 1 | TAP_DANCE_ENABLE = yes |
| 2 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 2 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
| 3 | COMMAND_ENABLE = no # Commands for debug and configuration | 3 | COMMAND_ENABLE = no # Commands for debug and configuration |
| 4 | SPACE_CADET_ENABLE = no | ||
| 4 | ifneq (,$(findstring ergodox_ez,$(KEYBOARD))) | 5 | ifneq (,$(findstring ergodox_ez,$(KEYBOARD))) |
| 5 | RGBLIGHT_ENABLE = yes | 6 | RGBLIGHT_ENABLE = yes |
| 6 | RGB_MATRIX_ENABLE = no | 7 | RGB_MATRIX_ENABLE = no |
| 7 | endif | 8 | endif |
| 8 | CONSOLE_ENABLE = no | 9 | CONSOLE_ENABLE = no |
| 9 | BOOTMAGIC_ENABLE = yes | 10 | BOOTMAGIC_ENABLE = yes |
| 10 | 11 | ||
| 11 | UNICODE_ENABLE = yes | 12 | UNICODE_ENABLE = yes |
| 12 | UNICDOEMAP_ENABLE = no | 13 | UNICDOEMAP_ENABLE = no |
| 13 | 14 | ||
| 14 | MACROS_ENABLED = no | 15 | MACROS_ENABLED = no |
| 15 | RGBLIGHT_TWINKLE = no | 16 | RGBLIGHT_TWINKLE = no |
| 16 | INDICATOR_LIGHTS = no | 17 | INDICATOR_LIGHTS = no |
| 17 | RGBLIGHT_STARTUP_ANIMATION = yes | 18 | RGBLIGHT_STARTUP_ANIMATION = yes |
| 18 | 19 | ||
| 19 | DEBOUNCE_TYPE = eager_pk | 20 | DEBOUNCE_TYPE = eager_pk |
diff --git a/layouts/community/ergodox/drashna_glow/config.h b/layouts/community/ergodox/drashna_glow/config.h index e2d959426..5eb1c6d0f 100644 --- a/layouts/community/ergodox/drashna_glow/config.h +++ b/layouts/community/ergodox/drashna_glow/config.h | |||
| @@ -6,10 +6,21 @@ | |||
| 6 | #define PRODUCT DrashnaDox - Hacked ErgoDox EZ Glow | 6 | #define PRODUCT DrashnaDox - Hacked ErgoDox EZ Glow |
| 7 | 7 | ||
| 8 | #ifdef RGB_MATRIX_ENABLE | 8 | #ifdef RGB_MATRIX_ENABLE |
| 9 | #define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot) | 9 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot) |
| 10 | // #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (not recommened) | 10 | // #define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (not recommened) |
| 11 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 11 | // #define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 12 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true// turn off effects when suspended | 12 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true// turn off effects when suspended |
| 13 | // #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | 13 | // #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 |
| 14 | // #define EECONFIG_RGB_MATRIX (uint32_t *)16 | 14 | // #define EECONFIG_RGB_MATRIX (uint32_t *)16 |
| 15 | |||
| 16 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | ||
| 17 | # define DISABLE_RGB_MATRIX_CYCLE_ALL | ||
| 18 | # define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON | ||
| 19 | # define DISABLE_RGB_MATRIX_DUAL_BEACON | ||
| 20 | # define DISABLE_RGB_MATRIX_RAINBOW_BEACON | ||
| 21 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN | ||
| 22 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE | ||
| 23 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | ||
| 24 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS | ||
| 25 | |||
| 15 | #endif | 26 | #endif |
