diff options
Diffstat (limited to 'keyboards/doppelganger')
-rw-r--r-- | keyboards/doppelganger/config.h | 38 | ||||
-rw-r--r-- | keyboards/doppelganger/doppelganger.c | 14 | ||||
-rw-r--r-- | keyboards/doppelganger/keyboard.json | 11 |
3 files changed, 11 insertions, 52 deletions
diff --git a/keyboards/doppelganger/config.h b/keyboards/doppelganger/config.h deleted file mode 100644 index 20a23ab6da..0000000000 --- a/keyboards/doppelganger/config.h +++ /dev/null @@ -1,38 +0,0 @@ -/* -Copyright 2019 Yiancar-Designs - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#pragma once - -#define SPLIT_HAND_PIN D4 - -// #define USE_I2C - -/* - * Feature disable options - * These options are also useful to firmware size reduction. - */ - -/* disable debug print */ -//#define NO_DEBUG - -/* disable print */ -//#define NO_PRINT - -/* disable action features */ -//#define NO_ACTION_LAYER -//#define NO_ACTION_TAPPING -//#define NO_ACTION_ONESHOT diff --git a/keyboards/doppelganger/doppelganger.c b/keyboards/doppelganger/doppelganger.c index 4a62fdf45f..de0e2cc755 100644 --- a/keyboards/doppelganger/doppelganger.c +++ b/keyboards/doppelganger/doppelganger.c @@ -16,21 +16,9 @@ #include "quantum.h" void keyboard_pre_init_kb(void) { - gpio_set_pin_output(C6); gpio_set_pin_output(B0); -} -bool led_update_kb(led_t led_state) { - bool res = led_update_user(led_state); - if (res) { - // gpio_write_pin sets the pin high for 1 and low for 0. - // In this example the pins are inverted, setting - // it low/0 turns it on, and high/1 turns the LED off. - // This behavior depends on whether the LED is between the pin - // and VCC or the pin and GND. - gpio_write_pin(C6, !led_state.caps_lock); - } - return res; + keyboard_pre_init_user(); } __attribute__((weak)) layer_state_t layer_state_set_user(layer_state_t state) { diff --git a/keyboards/doppelganger/keyboard.json b/keyboards/doppelganger/keyboard.json index 9ea2241a80..8856927012 100644 --- a/keyboards/doppelganger/keyboard.json +++ b/keyboards/doppelganger/keyboard.json @@ -8,6 +8,10 @@ "pid": "0x4447", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "C6", + "on_state": 0 + }, "matrix_pins": { "cols": ["F4", "F0", "B7", "B3", "B2", "B1", "D5", "D3", "D2"], "rows": ["E6", "F1", "C7", "F7", "F6"] @@ -15,7 +19,12 @@ "diode_direction": "COL2ROW", "split": { "enabled": true, - "soft_serial_pin": "D1", + "handedness": { + "pin": "D4" + }, + "serial": { + "pin": "D1" + }, "matrix_pins": { "right": { "cols": ["F1", "F0", "F4", "F5", "F6", "F7", "C7", "C6", "B6"], |