diff options
Diffstat (limited to 'keyboards/orange75/keymaps/default/keymap.c')
-rw-r--r-- | keyboards/orange75/keymaps/default/keymap.c | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/keyboards/orange75/keymaps/default/keymap.c b/keyboards/orange75/keymaps/default/keymap.c index 37e198f99..11027ca6e 100644 --- a/keyboards/orange75/keymaps/default/keymap.c +++ b/keyboards/orange75/keymaps/default/keymap.c | |||
@@ -52,34 +52,29 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
52 | ) | 52 | ) |
53 | }; | 53 | }; |
54 | 54 | ||
55 | |||
56 | void matrix_init_user(void) { | ||
57 | } | ||
58 | |||
59 | void matrix_scan_user(void) { | ||
60 | } | ||
61 | |||
62 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
63 | return true; | ||
64 | } | ||
65 | |||
66 | void led_set_user(uint8_t usb_led) { | 55 | void led_set_user(uint8_t usb_led) { |
67 | 56 | ||
68 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { | 57 | if (usb_led & (1 << USB_LED_NUM_LOCK)) { |
69 | DDRB |= (1 << 0); PORTB &= ~(1 << 0); | 58 | setPinOutput(B0); |
59 | writePinLow(B0); | ||
70 | } else { | 60 | } else { |
71 | DDRB &= ~(1 << 0); PORTB &= ~(1 << 0); | 61 | setPinInput(B0); |
62 | writePinLow(B0); | ||
72 | } | 63 | } |
73 | 64 | ||
74 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { | 65 | if (usb_led & (1 << USB_LED_CAPS_LOCK)) { |
75 | DDRB |= (1 << 1); PORTB &= ~(1 << 1); | 66 | setPinOutput(B1); |
67 | writePinLow(B1); | ||
76 | } else { | 68 | } else { |
77 | DDRB &= ~(1 << 1); PORTB &= ~(1 << 1); | 69 | setPinInput(B1); |
70 | writePinLow(B1); | ||
78 | } | 71 | } |
79 | 72 | ||
80 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { | 73 | if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { |
81 | DDRB |= (1 << 2); PORTB &= ~(1 << 2); | 74 | setPinOutput(B2); |
75 | writePinLow(B2); | ||
82 | } else { | 76 | } else { |
83 | DDRB &= ~(1 << 2); PORTB &= ~(1 << 2); | 77 | setPinInput(B2); |
78 | writePinLow(B2); | ||
84 | } | 79 | } |
85 | } \ No newline at end of file | 80 | } |