aboutsummaryrefslogtreecommitdiff
path: root/keyboards/matrix/m12og/rev2/rev2.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/matrix/m12og/rev2/rev2.c')
-rw-r--r--keyboards/matrix/m12og/rev2/rev2.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/keyboards/matrix/m12og/rev2/rev2.c b/keyboards/matrix/m12og/rev2/rev2.c
new file mode 100644
index 000000000..4f2af13eb
--- /dev/null
+++ b/keyboards/matrix/m12og/rev2/rev2.c
@@ -0,0 +1,21 @@
1/**
2 * rev2.c
3 */
4
5#include "rev2.h"
6
7void matrix_init_user(void) {
8 setPinOutput(C6);
9 setPinOutput(B2);
10 setPinOutput(B1);
11}
12
13bool led_update_kb(led_t led_state) {
14 bool res = led_update_user(led_state);
15 if (res) {
16 writePin(B1, !led_state.num_lock);
17 writePin(C6, !led_state.caps_lock);
18 writePin(B2, !led_state.scroll_lock);
19 }
20 return res;
21}