Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Keyboard] Fix function references IDB 60 #10810

Merged
merged 3 commits into from
Oct 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions keyboards/idb/idb_60/idb_60.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,19 @@ void led_set_kb(uint8_t usb_led) {

led_set_user(usb_led);
}

inline void _idb_60_caps_led_on(void) {
writePinLow(C5);
}

inline void _idb_60_fn_led_on(void) {
writePinLow(C4);
}

inline void _idb_60_caps_led_off(void) {
writePinHigh(C5);
}

inline void _idb_60_fn_led_off(void) {
writePinHigh(C4);
}
23 changes: 6 additions & 17 deletions keyboards/idb/idb_60/idb_60.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,13 @@

#include "quantum.h"

inline void _idb_60_caps_led_on(void) {
writePinHigh(C5);
}

inline void _idb_60_fn_led_on(void) {
writePinHigh(C4);
}

inline void _idb_60_caps_led_off(void) {
writePinLow(C5);
}

inline void _idb_60_fn_led_off(void) {
writePinLow(C4);
}
void _idb_60_caps_led_on(void);
void _idb_60_fn_led_on(void);
void _idb_60_caps_led_off(void);
void _idb_60_fn_led_off(void);

#define _idb_60_esc_led_on _idb_60_fn_led_on
#define _idb_60_esc_led_off _idb_60_fn_led_off
#define _idb_60_esc_led_on() _idb_60_fn_led_on()
#define _idb_60_esc_led_off() _idb_60_fn_led_off()

#define LAYOUT( \
K00, K10, K01, K11, K02, K12, K03, K13, K04, K14, K05, K15, K06, K16, K07,\
Expand Down