qmk_firmware/layouts/community/60_ansi_arrow/mrsendyyk
Sendy YK f663ba5ed0
mrsendyyk Keymap Cleanup (#10539)
* Cleanup

* Update info.json

* Update license notice

* Fix license notice

* Update keymap.c

* Update readme.md

* Update readme.md

* Update readme.md

* Update readme.md

* Update readme.md

* Update readme.md

* Add RGB Light Mode Static Gradient 26

* Update
2020-10-17 12:14:02 -07:00
..
keymap.c mrsendyyk Keymap Cleanup (#10539) 2020-10-17 12:14:02 -07:00
readme.md mrsendyyk Keymap Cleanup (#10539) 2020-10-17 12:14:02 -07:00
rules.mk

readme.md

60 ANSI Arrow Keymap by Sendy YK

With RGB Lighting/LED/Underglow as Caps Lock, Num Lock, Scroll Lock, and Layer Indicator.

Default Layer

_BASE

Fn Layer

_FN

RGB Lighting/LED/Underglow as Caps Lock, Num Lock, Scroll Lock, and Layer Indicator

Caps Lock Indicator

    // Caps Lock Indicator
    if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
        writePinLow(B2);
        rgblight_setrgb(255, 110, 0);
    }

Num Lock Indicator

    // Num Lock Indicator
    if (host_keyboard_led_state().num_lock) {
        rgblight_setrgb(225, 8, 0);
    }

Scroll Lock Indicator

    // Scroll Lock Indicator
    if (host_keyboard_led_state().scroll_lock) {
        rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_GRADIENT + 2);
    }

Layer Indicator

    // Layer Indicator
    else {
        switch (get_highest_layer(layer_state)) {
            // Fn Layer Indicator
            case _FN:
                rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_GRADIENT + 1);
                break;
            // Default Layer Indicator
            case _BASE:
                rgblight_setrgb(100, 255, 100);
                break;
        }
        update_led();
    }

Build The Firmware

Make example for keyboard (after setting up your build environment):

make <keyboard_folder>:mrsendyyk

More information: