From 3b816b959343db16845b48530770551ef0a2b526 Mon Sep 17 00:00:00 2001 From: di0ib Date: Wed, 19 Oct 2016 19:34:17 -1000 Subject: [PATCH] pro micro LEDs as capslock indicator --- keyboard/kwark/FLASH.bin | Bin 21968 -> 21988 bytes keyboard/kwark/kwark.bin | Bin 21968 -> 21988 bytes keyboard/kwark/led.c | 16 ++++++++++++++-- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/keyboard/kwark/FLASH.bin b/keyboard/kwark/FLASH.bin index a0607b152c0d04e4243ea70ee2c71bd04ca10bca..b9b272c984ba73d620ebb4e1acbe35ef2acd004d 100644 GIT binary patch delta 3141 zcmZuz4RBLc7Vdpm+BE4)(liO(Bu!q@5R$gMl+c!f7)o6cp%%po_}6x^P|=QMTnBZ9 z<~1$-5w=aw%Tf?<-L9j%jLX!_s4Sol#$CZU)}PhUb&xG5RT$*M$~S|v)BP?J5&m#Y#Vn118`aeAof=8!Gj*QS11 z-K(Mh3u=|7S5v3?ttKlwD|-?Cc4vQ{ecW)|5J!4We@@?z{Bgq@11Eo-kybL_=bb;d zB$BVJC$38uzdg%HsXdv!ulNSiz8KfVUKtvQ5y{fq?;S`xHO`8HQYHQ?@`kFOq(#$P zzgCG+aInvlw<2$|>lt!4xU~LkVe%%)wrf^j^{#1>tq;e(2m2!Hw7Uo?2claqQzHa) z^N>5B>qfdX+n4%DCM$YD$j&E^z^mC$yDKvn$LcP%#8@%O1(V$Ax=XE7Tw6>fRzj7& zhIGMx{Y#lGnSs#vOaPQbC0>L&gPyd&CPNw00fWh!n}t$?N?fPJeOLmaai+uJjVGX^mZ9Rj&+$ zCYUyF&KN5`shk*OMZfkxNDrZ(J29drCOxbYk3+X{ob*Hcj3uN$GC1QOOlmpHic4Xq zsq`B6si}fgLXLSQxeSfwHDnFEYc9+5XQWCwhcvwt3@hFRnU*s01T3+vCm+Io%QAH( zZabdRQ5%4G3M;M#MebVi05s;-k=I}_*GW3z+uUJH!YOMwze|-Z{f$)B)Kt}men4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