diff options
Diffstat (limited to 'keyboards/wheatfield/split75')
| -rw-r--r-- | keyboards/wheatfield/split75/config.h | 4 | ||||
| -rw-r--r-- | keyboards/wheatfield/split75/split75.c | 24 | ||||
| -rw-r--r-- | keyboards/wheatfield/split75/split75.h | 4 |
3 files changed, 4 insertions, 28 deletions
diff --git a/keyboards/wheatfield/split75/config.h b/keyboards/wheatfield/split75/config.h index 4646dac46..63c9492c3 100644 --- a/keyboards/wheatfield/split75/config.h +++ b/keyboards/wheatfield/split75/config.h | |||
| @@ -10,6 +10,10 @@ | |||
| 10 | #define MATRIX_ROWS 8 | 10 | #define MATRIX_ROWS 8 |
| 11 | #define MATRIX_COLS 14 | 11 | #define MATRIX_COLS 14 |
| 12 | 12 | ||
| 13 | #define LED_NUM_LOCK_PIN D0 | ||
| 14 | #define LED_CAPS_LOCK_PIN D1 | ||
| 15 | #define LED_SCROLL_LOCK_PIN D6 | ||
| 16 | |||
| 13 | #define RGBLED_NUM 8 | 17 | #define RGBLED_NUM 8 |
| 14 | #define RGBLIGHT_ANIMATIONS | 18 | #define RGBLIGHT_ANIMATIONS |
| 15 | #define RGBLIGHT_SLEEP | 19 | #define RGBLIGHT_SLEEP |
diff --git a/keyboards/wheatfield/split75/split75.c b/keyboards/wheatfield/split75/split75.c index 3ed456292..b8a3fe6c2 100644 --- a/keyboards/wheatfield/split75/split75.c +++ b/keyboards/wheatfield/split75/split75.c | |||
| @@ -1,25 +1 @@ | |||
| 1 | #include "split75.h" | #include "split75.h" | |
| 2 | |||
| 3 | #include "i2c_master.h" | ||
| 4 | |||
| 5 | |||
| 6 | void keyboard_pre_init_kb(void) { | ||
| 7 | led_init_ports(); | ||
| 8 | keyboard_pre_init_user(); | ||
| 9 | } | ||
| 10 | |||
| 11 | void led_init_ports(void) { | ||
| 12 | setPinOutput(NUMLOCK_LED_PIN); | ||
| 13 | setPinOutput(CAPSLOCK_LED_PIN); | ||
| 14 | setPinOutput(SCROLLLOCK_LED_PIN); | ||
| 15 | } | ||
| 16 | |||
| 17 | bool led_update_kb(led_t led_state) { | ||
| 18 | bool res = led_update_user(led_state); | ||
| 19 | if(res) { | ||
| 20 | writePin(NUMLOCK_LED_PIN, led_state.num_lock); | ||
| 21 | writePin(CAPSLOCK_LED_PIN, led_state.caps_lock); | ||
| 22 | writePin(SCROLLLOCK_LED_PIN, led_state.scroll_lock); | ||
| 23 | } | ||
| 24 | return res; | ||
| 25 | } | ||
diff --git a/keyboards/wheatfield/split75/split75.h b/keyboards/wheatfield/split75/split75.h index 9a84c129d..93da3e7b8 100644 --- a/keyboards/wheatfield/split75/split75.h +++ b/keyboards/wheatfield/split75/split75.h | |||
| @@ -45,7 +45,3 @@ | |||
| 45 | { K06, K16, K26, K36, K46, KC_NO, KC_NO, KC_NO, K86, K96, KC_NO, K116, K126, K136 }, \ | 45 | { K06, K16, K26, K36, K46, KC_NO, KC_NO, KC_NO, K86, K96, KC_NO, K116, K126, K136 }, \ |
| 46 | { K07, K17, K27, K37, K47, KC_NO, KC_NO, KC_NO, K87, K97, K107, K117, K127, K137 } \ | 46 | { K07, K17, K27, K37, K47, KC_NO, KC_NO, KC_NO, K87, K97, K107, K117, K127, K137 } \ |
| 47 | } | 47 | } |
| 48 | |||
| 49 | #define NUMLOCK_LED_PIN D0 | ||
| 50 | #define CAPSLOCK_LED_PIN D1 | ||
| 51 | #define SCROLLLOCK_LED_PIN D6 | ||
