aboutsummaryrefslogtreecommitdiff
path: root/keyboards/tkc/osav2/osav2.c
diff options
context:
space:
mode:
authorTerryMathews <terry@terrymathews.net>2020-07-11 07:28:53 -0400
committerGitHub <noreply@github.com>2020-07-11 12:28:53 +0100
commitca946f61165ba6e7cfa33bee1c5ed895c67c0e74 (patch)
tree981adf158c2b9b5d0d93146d8c464ed922202124 /keyboards/tkc/osav2/osav2.c
parent63fe92017ccf49739297a472ed5072a4abd7b1de (diff)
downloadqmk_firmware-ca946f61165ba6e7cfa33bee1c5ed895c67c0e74.tar.gz
qmk_firmware-ca946f61165ba6e7cfa33bee1c5ed895c67c0e74.zip
Initial support for TKC Alice (#9640)
Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Erovia <Erovia@users.noreply.github.com>
Diffstat (limited to 'keyboards/tkc/osav2/osav2.c')
-rw-r--r--keyboards/tkc/osav2/osav2.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/keyboards/tkc/osav2/osav2.c b/keyboards/tkc/osav2/osav2.c
new file mode 100644
index 000000000..4d8b90149
--- /dev/null
+++ b/keyboards/tkc/osav2/osav2.c
@@ -0,0 +1,33 @@
1/* Copyright 2019 jrfhoutx
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include "osav2.h"
17
18void keyboard_pre_init_kb(void) {
19 setPinOutput(C7);
20 setPinOutput(C6);
21 setPinOutput(B6);
22
23 keyboard_pre_init_user();
24}
25
26bool led_update_kb(led_t led_state) {
27 if (led_update_user(led_state)) {
28 writePin(C7, led_state.num_lock);
29 writePin(C6, led_state.caps_lock);
30 writePin(B6, led_state.scroll_lock);
31 }
32 return true;
33}