aboutsummaryrefslogtreecommitdiff
path: root/keyboards/rart/rartlice/rartlice.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/rart/rartlice/rartlice.c')
-rw-r--r--keyboards/rart/rartlice/rartlice.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/keyboards/rart/rartlice/rartlice.c b/keyboards/rart/rartlice/rartlice.c
new file mode 100644
index 000000000..be805da33
--- /dev/null
+++ b/keyboards/rart/rartlice/rartlice.c
@@ -0,0 +1,36 @@
1/* Copyright 2020 Alabahuy
2 * This program is free software: you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation, either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 */
15
16#include "rartlice.h"
17
18void keyboard_pre_init_kb(void) {
19 led_init_ports();
20 keyboard_pre_init_user();
21}
22
23void led_init_ports(void) {
24 setPinOutput(A8);
25 setPinOutput(B14);
26 setPinOutput(A9);
27}
28
29bool led_update_kb(led_t led_state) {
30 if (led_update_user(led_state)) {
31 writePin(A8, !led_state.num_lock);
32 writePin(B14, !led_state.caps_lock);
33 writePin(A9, !led_state.scroll_lock);
34 }
35 return true;
36}