qmk_firmware/keyboards/dz60/keymaps/mrsendyyk/readme.md
Sendy YK c4eb0df428
Minor updates dz60:mrsendyyk (#10334)
* Minor updates dz60:mrsendyyk

* Update keymap.c

* Update keymap.c

* Update readme.md
2020-09-21 13:34:57 -07:00

2.1 KiB

Sendy YK's 60% ANSI Arrow Layout and Keymap

https://mr.sendyyk.com

60% ANSI Arrow Layout

LAYOUT_60_ansi_arrow

Keymap

Default Layer

_BASE

Fn Layer 1

Press and hold right Ctrl key.

_FN

Fn Layer 2

Press and hold right Alt key.

_SETTINGS

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(100, 255, 100);
    }

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_setrgb(255, 110, 0);
    }

Layer Indicator

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

Build The Firmware

You will need to build the firmware. To do so go to your terminal window and run the compile command:

qmk compile -kb dz60 -km mrsendyyk

See The Complete Newbs Guide To QMK.