aboutsummaryrefslogtreecommitdiff
path: root/keyboards/keebio/sinc/rev2/rev2.c
diff options
context:
space:
mode:
authorDanny <nooges@users.noreply.github.com>2021-03-23 11:11:07 -0400
committerGitHub <noreply@github.com>2021-03-23 11:11:07 -0400
commitbe257b6f9f22ac6019a57219aeab15e90f230bcb (patch)
treef1bf116999137160ca657147771364206799617a /keyboards/keebio/sinc/rev2/rev2.c
parentd4a8123267c967613d5e4f481d46043fe4c16965 (diff)
downloadqmk_firmware-be257b6f9f22ac6019a57219aeab15e90f230bcb.tar.gz
qmk_firmware-be257b6f9f22ac6019a57219aeab15e90f230bcb.zip
Add Sinc Rev. 2 (#12138)
Diffstat (limited to 'keyboards/keebio/sinc/rev2/rev2.c')
-rw-r--r--keyboards/keebio/sinc/rev2/rev2.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/keyboards/keebio/sinc/rev2/rev2.c b/keyboards/keebio/sinc/rev2/rev2.c
new file mode 100644
index 000000000..aea877d83
--- /dev/null
+++ b/keyboards/keebio/sinc/rev2/rev2.c
@@ -0,0 +1,40 @@
1/* Copyright 2021 Danny Nguyen <danny@keeb.io>
2
3This program is free software: you can redistribute it and/or modify
4it under the terms of the GNU General Public License as published by
5the Free Software Foundation, either version 2 of the License, or
6(at your option) any later version.
7
8This program is distributed in the hope that it will be useful,
9but WITHOUT ANY WARRANTY; without even the implied warranty of
10MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License
14along with this program. If not, see <http://www.gnu.org/licenses/>.
15*/
16
17#include "sinc.h"
18#include "split_util.h"
19
20void matrix_init_kb(void) {
21 setPinOutput(CAPS_LOCK_LED_PIN);
22 matrix_init_user();
23}
24
25bool led_update_kb(led_t led_state) {
26 // Only update if left half
27 if (isLeftHand && led_update_user(led_state)) {
28 writePin(CAPS_LOCK_LED_PIN, !led_state.caps_lock);
29 }
30 return true;
31}
32
33void eeconfig_init_kb(void) {
34#ifdef BACKLIGHT_ENABLE
35 backlight_enable();
36 backlight_level(3);
37#endif
38 eeconfig_update_kb(0);
39 eeconfig_init_user();
40}