From dba23759aa8eaca96e38fdadd241a39bc7054f1a Mon Sep 17 00:00:00 2001 From: KemoNine Date: Mon, 14 Sep 2020 14:09:40 -0400 Subject: [PATCH] Add caps lock indication --- .../kemonine/qmk/massdrop_alt_kemonine.bin | Bin 43944 -> 43928 bytes .../massdrop/alt/keymaps/kemonine/keymap.c | 9 +++++++++ 2 files changed, 9 insertions(+) diff --git a/firmware/alt/kemonine/qmk/massdrop_alt_kemonine.bin b/firmware/alt/kemonine/qmk/massdrop_alt_kemonine.bin index 035c20bc9610753cc852ca8b03a02cfcb19eb10a..7bacc902d322ba8491542e0577e2ba9d99386361 100644 GIT binary patch delta 2299 zcmbtVYfKbZ6h3!mmtE9N0o@`mndMOy5wt1-F+`9$2rCM;q?(FowLBUhptYh6UBpnI zDC8CejYVV8n#L3yX@H6gMN^3(EU8pTG-!b=)*1&b?!ro^XJC!m)F0YOzH`3$&bi;c zGxzT7cQ={xn~ZUBHE=cG0G$61z`w3%J+l0a|IciE$!P7t*E7yO`g;BHVqaeTisuHY zZ(#Q7r>CW7ryIBZ2vCeDMU)|4p8NUKueN#fp6st+_1McDpZ3j-Ub#4$#<(lZ9ROy! zgYk8+6HEv((^kgURj#OOL7X5l1zKpXc9$z6fGKlm~g7<#sTp# zE4I=HiUr2l26ZhX&a+M6()}bIBc8A|4ya=Y$B3)za^e9ZYZpBUTVB3!Lf4`vL73HD zQF>SNq9;Gcl`jNwe*p;yy>oJ?AtpHTV4hO%*3~lrV(5FxA7$h&TjHM=QX~0$@*ey& z4#YmmKX124SpS?p%cOb;aJ|EdQ;haP)mxpc=wfeCu{T(8lKqO)U}vnsI}iN+tS5e+ zIUFC^$ckVua=L$`&jK@kH?!jKNP)^3M-7cMkBu4}X>t0kGu+T?Va59+g-(Mv+AW?r zZP%+tqoV~nE^%RWN+qB(F(E^w%YtOeC`X5TTj z$)UEew=7eWylYrdIhwWRm?bLCI$nt@z4laH4_suU zj@M%?pFU6-NGgp|M`-HW0El6Z%>{De-GqE~B_V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_YSSl#D>(# zk%9_$dhVXK7O)8-1vBPs^s>fE7SU+!RNc8I0Aii&3x=FzqqtUkkdQl~ZcsQ&CeUcz zK4KK>bt^Q)NKJ;R2Dcj^_#1ZiJK2YXbRTEUNCuai<{JJs$qUgYMfMiEz?JmI0JkB} zpF6u?WjzeGr$ibFAeYt<{OWhC&S3m(ph!CWW}iU?0Ae?&E)s=RYnRcd%1nLhf@s~d=L z>6q-*`W@OIsg+NGt6f|k(Z>-tO^<9M8^su7C`;U8l4%rcTAm3o4bh0OBSvHabYslL zn1XO1_KG{r25!T210eQBS8~61N1yDyDaXwLv(?@1JGW=50H$TV#XgJB z?;T0ck28=^@!GhBgiI8tjW6TKYhq(umQL5$BYS-^M0Fgy=gkrmEQvuRgBGTg;iylg zBtx{Pp4S<+U~k+W4g7m}D66pfl`p|zap&Tp92qNCzLmw04pFtt${FeB0OeHxVjva= zqM|8K9ir=3Y*KZg-!-vw#b`zyeHgGi>72~*Dhs-9q-mLx$@{c0GjT+>9l$&ccy<fGSNt^auB@VHs{OVA>;S+$iPXVT2T!qM` ocDpd50RDDwcmMzZ diff --git a/firmware/alt/kemonine/qmk/qmk_firmware/keyboards/massdrop/alt/keymaps/kemonine/keymap.c b/firmware/alt/kemonine/qmk/qmk_firmware/keyboards/massdrop/alt/keymaps/kemonine/keymap.c index ff7c84d8..b9e908c4 100644 --- a/firmware/alt/kemonine/qmk/qmk_firmware/keyboards/massdrop/alt/keymaps/kemonine/keymap.c +++ b/firmware/alt/kemonine/qmk/qmk_firmware/keyboards/massdrop/alt/keymaps/kemonine/keymap.c @@ -1,5 +1,7 @@ #include QMK_KEYBOARD_H +#define CAPS_LOCK_LED_ID 30 + enum alt_keycodes { U_T_AUTO = SAFE_RANGE, //USB Extra Port Toggle Auto Detect / Always Active U_T_AGCR, //USB Toggle Automatic GCR control @@ -42,8 +44,15 @@ void matrix_scan_user(void) { bool process_record_user(uint16_t keycode, keyrecord_t *record) { static uint32_t key_timer; + static bool caps_state; switch (keycode) { + case KC_CAPSLOCK: + if (caps_state) { + rgb_matrix_set_color(CAPS_LOCK_LED_ID, 255, 255, 255); + } + caps_state = !caps_state; + return true; case U_T_AUTO: if (record->event.pressed && MODS_SHIFT && MODS_CTRL) { TOGGLE_FLAG_AND_PRINT(usb_extra_manual, "USB extra port manual mode");