aboutsummaryrefslogtreecommitdiff
path: root/keyboards/matrix/m12og/rev2/rev2.c
diff options
context:
space:
mode:
authorkb-elmo <lorwel@mailbox.org>2021-06-11 12:35:13 +0200
committerGitHub <noreply@github.com>2021-06-11 20:35:13 +1000
commit0ef145db151f907c33973e3ceab8dc51f7c00b16 (patch)
tree6365619adec626d926f6cd64a1a154ac15adec76 /keyboards/matrix/m12og/rev2/rev2.c
parent2e90ef05363893f3aa49c99af408e774609aa97a (diff)
downloadqmk_firmware-0ef145db151f907c33973e3ceab8dc51f7c00b16.tar.gz
qmk_firmware-0ef145db151f907c33973e3ceab8dc51f7c00b16.zip
Add Matrix 8XV1.2 OG rev1 PCB (#11614)
* add v1 12og pcb * update * matrix changes for testing * Update matrix.c * finalized files * rename board versions * update readmes * typo in readme * fix board filenames * Update keyboards/matrix/m12og/rev1/rev1.c Co-authored-by: Drashna Jaelre <drashna@live.com> * change function * update halconf and chconf * merge master * Update readme.md * Update readme.md * Update readme.md Co-authored-by: Drashna Jaelre <drashna@live.com>
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}