aboutsummaryrefslogtreecommitdiff
path: root/keyboards/maartenwut/eon95/eon95.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/maartenwut/eon95/eon95.c')
-rw-r--r--keyboards/maartenwut/eon95/eon95.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/keyboards/maartenwut/eon95/eon95.c b/keyboards/maartenwut/eon95/eon95.c
new file mode 100644
index 000000000..b57cb3000
--- /dev/null
+++ b/keyboards/maartenwut/eon95/eon95.c
@@ -0,0 +1,45 @@
1/* Copyright 2019 Maarten Dekkers <maartenwut@gmail.com>
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 "eon95.h"
17
18void matrix_init_kb(void) {
19 // put your keyboard start-up code here
20 // runs once when the firmware starts up
21 matrix_init_user();
22 led_init_ports();
23}
24
25void led_init_ports(void) {
26 // * Set our LED pins as output and high
27 setPinOutput(D5);
28 writePinHigh(D5);
29
30 setPinOutput(B7);
31 writePinHigh(B7);
32
33 setPinOutput(B0);
34 writePinHigh(B0);
35}
36
37bool led_update_kb(led_t led_state) {
38 if(led_update_user(led_state)) {
39 writePin(D5, !led_state.caps_lock);
40 writePin(B7, !led_state.num_lock);
41 writePin(B0, !led_state.scroll_lock);
42 }
43
44 return true;
45}