diff options
| author | Danny <nooges@users.noreply.github.com> | 2021-03-23 11:11:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-23 11:11:07 -0400 |
| commit | be257b6f9f22ac6019a57219aeab15e90f230bcb (patch) | |
| tree | f1bf116999137160ca657147771364206799617a /keyboards/keebio/sinc/rev2/rev2.c | |
| parent | d4a8123267c967613d5e4f481d46043fe4c16965 (diff) | |
| download | qmk_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.c | 40 |
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 | |||
| 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 | |||
| 17 | #include "sinc.h" | ||
| 18 | #include "split_util.h" | ||
| 19 | |||
| 20 | void matrix_init_kb(void) { | ||
| 21 | setPinOutput(CAPS_LOCK_LED_PIN); | ||
| 22 | matrix_init_user(); | ||
| 23 | } | ||
| 24 | |||
| 25 | bool 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 | |||
| 33 | void 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 | } | ||
