mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-26 13:16:44 +00:00
d844f5af70
* Add layouts/community/numpad_5x4/mrsendyyk * Update keymap.c * Update readme.md * Update readme.md * Update readme.md * Rename my community layouts * Rename * Rename * Cleanup my code * Update readme.md * Cleanup * Update keymap.c * Delete unnecessary files |
||
---|---|---|
.. | ||
keymap.c | ||
readme.md | ||
rules.mk |
Sendy YK's 60% ANSI Arrow Layout and Keymap
60% ANSI Arrow keyboard layout and keymap with RGB lighting/LED/underglow as Caps Lock, Num Lock, Scroll Lock, and layer indicator by Sendy YK.
60% ANSI Arrow Layout
Keymap
Default Layer
Fn Layer 1
Press and hold right Ctrl key.
Fn Layer 2
Press and hold right Alt key.
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
Make example for keyboard (after setting up your build environment):
make <keyboard_folder>:mrsendyyk
More information: