diff options
| author | Drashna Jaelre <drashna@live.com> | 2020-10-31 05:15:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-31 23:15:26 +1100 |
| commit | a3f1defcd40f2d53b01ace2f520ff7901a44c714 (patch) | |
| tree | 27720a567ca4d38ec5acce1d5e3feb43e44d21d5 | |
| parent | fb579aae49fac9326600d5719ee9cc07463857cc (diff) | |
| download | qmk_firmware-a3f1defcd40f2d53b01ace2f520ff7901a44c714.tar.gz qmk_firmware-a3f1defcd40f2d53b01ace2f520ff7901a44c714.zip | |
[Keyboard] Fix function references IDB 60 (#10810)
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Thorben <34752364+itspngu@users.noreply.github.com>
| -rw-r--r-- | keyboards/idb/idb_60/idb_60.c | 16 | ||||
| -rw-r--r-- | keyboards/idb/idb_60/idb_60.h | 23 |
2 files changed, 22 insertions, 17 deletions
diff --git a/keyboards/idb/idb_60/idb_60.c b/keyboards/idb/idb_60/idb_60.c index 18ce69043..a86606425 100644 --- a/keyboards/idb/idb_60/idb_60.c +++ b/keyboards/idb/idb_60/idb_60.c | |||
| @@ -15,3 +15,19 @@ void led_set_kb(uint8_t usb_led) { | |||
| 15 | 15 | ||
| 16 | led_set_user(usb_led); | 16 | led_set_user(usb_led); |
| 17 | } | 17 | } |
| 18 | |||
| 19 | inline void _idb_60_caps_led_on(void) { | ||
| 20 | writePinLow(C5); | ||
| 21 | } | ||
| 22 | |||
| 23 | inline void _idb_60_fn_led_on(void) { | ||
| 24 | writePinLow(C4); | ||
| 25 | } | ||
| 26 | |||
| 27 | inline void _idb_60_caps_led_off(void) { | ||
| 28 | writePinHigh(C5); | ||
| 29 | } | ||
| 30 | |||
| 31 | inline void _idb_60_fn_led_off(void) { | ||
| 32 | writePinHigh(C4); | ||
| 33 | } | ||
diff --git a/keyboards/idb/idb_60/idb_60.h b/keyboards/idb/idb_60/idb_60.h index 5d61ac464..608c9ab7f 100644 --- a/keyboards/idb/idb_60/idb_60.h +++ b/keyboards/idb/idb_60/idb_60.h | |||
| @@ -2,24 +2,13 @@ | |||
| 2 | 2 | ||
| 3 | #include "quantum.h" | 3 | #include "quantum.h" |
| 4 | 4 | ||
| 5 | inline void _idb_60_caps_led_on(void) { | 5 | void _idb_60_caps_led_on(void); |
| 6 | writePinHigh(C5); | 6 | void _idb_60_fn_led_on(void); |
| 7 | } | 7 | void _idb_60_caps_led_off(void); |
| 8 | 8 | void _idb_60_fn_led_off(void); | |
| 9 | inline void _idb_60_fn_led_on(void) { | ||
| 10 | writePinHigh(C4); | ||
| 11 | } | ||
| 12 | |||
| 13 | inline void _idb_60_caps_led_off(void) { | ||
| 14 | writePinLow(C5); | ||
| 15 | } | ||
| 16 | |||
| 17 | inline void _idb_60_fn_led_off(void) { | ||
| 18 | writePinLow(C4); | ||
| 19 | } | ||
| 20 | 9 | ||
| 21 | #define _idb_60_esc_led_on _idb_60_fn_led_on | 10 | #define _idb_60_esc_led_on() _idb_60_fn_led_on() |
| 22 | #define _idb_60_esc_led_off _idb_60_fn_led_off | 11 | #define _idb_60_esc_led_off() _idb_60_fn_led_off() |
| 23 | 12 | ||
| 24 | #define LAYOUT( \ | 13 | #define LAYOUT( \ |
| 25 | K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07,\ | 14 | K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07,\ |
