summaryrefslogtreecommitdiffstats
path: root/keyboards/gray_studio/space65/space65.c
diff options
context:
space:
mode:
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-02-01 01:37:13 +0100
committerDrashna Jaelre <drashna@live.com>2019-02-01 01:37:13 +0100
commit8c5c1fd7fe8866f61081ec4cf953f48352d7c088 (patch)
tree269347952dfc43fd2d49bfa1d39048b51f956ca7 /keyboards/gray_studio/space65/space65.c
parentaa6cc28d431f2659a1a531bd7467011aa6713d03 (diff)
downloadqmk_firmware-8c5c1fd7fe8866f61081ec4cf953f48352d7c088.tar.gz
qmk_firmware-8c5c1fd7fe8866f61081ec4cf953f48352d7c088.tar.xz
Space65 Updates (#5008)
* update reset sequence info * fix my rgb underglow led number flub * add a more sensible keymap * add caps lock led support * remove unused #define * swap the spacebar sizes around to match the space65 * use vomindoraan's suggestion in PR to use IS_LED_ON
Diffstat (limited to 'keyboards/gray_studio/space65/space65.c')
-rw-r--r--keyboards/gray_studio/space65/space65.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/keyboards/gray_studio/space65/space65.c b/keyboards/gray_studio/space65/space65.c
index 26d80e00e..f9f2224ab 100644
--- a/keyboards/gray_studio/space65/space65.c
+++ b/keyboards/gray_studio/space65/space65.c
@@ -38,6 +38,11 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
+ if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
+ writePinHigh(E6);
+ } else {
+ writePinLow(E6);
+ }
led_set_user(usb_led);
}