2020-10-17 21:14:02 +02:00
|
|
|
# 60 ANSI Arrow Keymap by [Sendy YK](https://mr.sendyyk.com)
|
2020-08-19 20:16:10 +02:00
|
|
|
|
2020-10-17 21:14:02 +02:00
|
|
|
With RGB Lighting/LED/Underglow as Caps Lock, Num Lock, Scroll Lock, and Layer Indicator.
|
2020-08-19 20:16:10 +02:00
|
|
|
|
2020-10-17 21:14:02 +02:00
|
|
|
## Default Layer
|
2020-09-21 22:34:06 +02:00
|
|
|
|
2020-10-17 21:14:02 +02:00
|
|
|
![_BASE](https://raw.githubusercontent.com/mrsendyyk/qmk_firmware/development/images/60_ansi_arrow_keymap_base.png)
|
2020-09-21 22:34:06 +02:00
|
|
|
|
2020-10-17 21:14:02 +02:00
|
|
|
## Fn Layer
|
2020-09-21 22:34:06 +02:00
|
|
|
|
2020-10-17 21:14:02 +02:00
|
|
|
![_FN](https://raw.githubusercontent.com/mrsendyyk/qmk_firmware/development/images/60_ansi_arrow_keymap_fn.png)
|
2020-09-21 22:34:06 +02:00
|
|
|
|
2020-10-17 21:14:02 +02:00
|
|
|
## RGB Lighting/LED/Underglow as Caps Lock, Num Lock, Scroll Lock, and Layer Indicator
|
2020-09-21 22:34:06 +02:00
|
|
|
|
2020-10-17 21:14:02 +02:00
|
|
|
### Caps Lock Indicator
|
2020-09-21 22:34:06 +02:00
|
|
|
|
|
|
|
```c
|
|
|
|
// Caps Lock Indicator
|
|
|
|
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
|
|
|
writePinLow(B2);
|
2020-10-17 21:14:02 +02:00
|
|
|
rgblight_setrgb(255, 110, 0);
|
2020-09-21 22:34:06 +02:00
|
|
|
}
|
2020-08-19 20:16:10 +02:00
|
|
|
```
|
2020-09-21 22:34:06 +02:00
|
|
|
|
2020-10-17 21:14:02 +02:00
|
|
|
### Num Lock Indicator
|
2020-09-21 22:34:06 +02:00
|
|
|
|
|
|
|
```c
|
|
|
|
// Num Lock Indicator
|
|
|
|
if (host_keyboard_led_state().num_lock) {
|
|
|
|
rgblight_setrgb(225, 8, 0);
|
|
|
|
}
|
2020-08-19 20:16:10 +02:00
|
|
|
```
|
|
|
|
|
2020-10-17 21:14:02 +02:00
|
|
|
### Scroll Lock Indicator
|
2020-09-21 22:34:06 +02:00
|
|
|
```c
|
|
|
|
// Scroll Lock Indicator
|
|
|
|
if (host_keyboard_led_state().scroll_lock) {
|
2020-10-17 21:14:02 +02:00
|
|
|
rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_GRADIENT + 2);
|
2020-09-21 22:34:06 +02:00
|
|
|
}
|
2020-08-19 20:16:10 +02:00
|
|
|
```
|
2020-09-21 22:34:06 +02:00
|
|
|
|
2020-10-17 21:14:02 +02:00
|
|
|
### Layer Indicator
|
2020-09-21 22:34:06 +02:00
|
|
|
|
|
|
|
```c
|
|
|
|
// Layer Indicator
|
2020-09-29 06:32:38 +02:00
|
|
|
else {
|
2020-09-21 22:34:06 +02:00
|
|
|
switch (get_highest_layer(layer_state)) {
|
2020-10-17 21:14:02 +02:00
|
|
|
// Fn Layer Indicator
|
2020-09-21 22:34:06 +02:00
|
|
|
case _FN:
|
2020-10-17 21:14:02 +02:00
|
|
|
rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_GRADIENT + 1);
|
2020-09-21 22:34:06 +02:00
|
|
|
break;
|
|
|
|
// Default Layer Indicator
|
|
|
|
case _BASE:
|
2020-10-17 21:14:02 +02:00
|
|
|
rgblight_setrgb(100, 255, 100);
|
2020-09-21 22:34:06 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
update_led();
|
|
|
|
}
|
2020-08-19 20:16:10 +02:00
|
|
|
```
|
2020-09-21 22:34:06 +02:00
|
|
|
|
|
|
|
## Build The Firmware
|
|
|
|
|
2020-09-29 06:32:38 +02:00
|
|
|
Make example for keyboard (after setting up your build environment):
|
2020-09-21 22:34:06 +02:00
|
|
|
|
2020-09-29 06:32:38 +02:00
|
|
|
make <keyboard_folder>:mrsendyyk
|
2020-09-21 22:34:06 +02:00
|
|
|
|
2020-09-29 06:32:38 +02:00
|
|
|
More information:
|
|
|
|
* [Setting Up Your QMK Environment](https://docs.qmk.fm/#/getting_started_build_tools)
|
|
|
|
* [More Detailed make Instructions](https://docs.qmk.fm/#/getting_started_make_guide)
|
|
|
|
* [The Complete Newbs Guide To QMK](https://docs.qmk.fm/#/newbs)
|