From f1b5659ba8227624a3f31fc551212cb64d8c763f Mon Sep 17 00:00:00 2001 From: wangfuco <46733695+wangfuco@users.noreply.github.com> Date: Thu, 26 Jan 2023 22:11:29 -0800 Subject: fix pegasushoof caps light, add via keymap (#19649) Co-authored-by: jack <0x6a73@protonmail.com> Co-authored-by: Ryan Co-authored-by: Fucong Wang --- keyboards/bpiphany/pegasushoof/2013/2013.c | 25 ------------------------- keyboards/bpiphany/pegasushoof/2013/2013.h | 6 ------ keyboards/bpiphany/pegasushoof/2013/config.h | 6 +----- keyboards/bpiphany/pegasushoof/2013/info.json | 7 +++++++ 4 files changed, 8 insertions(+), 36 deletions(-) delete mode 100644 keyboards/bpiphany/pegasushoof/2013/2013.c (limited to 'keyboards/bpiphany/pegasushoof/2013') diff --git a/keyboards/bpiphany/pegasushoof/2013/2013.c b/keyboards/bpiphany/pegasushoof/2013/2013.c deleted file mode 100644 index c9bd01a997..0000000000 --- a/keyboards/bpiphany/pegasushoof/2013/2013.c +++ /dev/null @@ -1,25 +0,0 @@ -/* -Copyright 2016 Daniel Svensson - -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 . -*/ - -#include "2013.h" - - -extern inline void ph_caps_led_on(void); -extern inline void ph_caps_led_off(void); - -extern inline void ph_sclk_led_on(void); -extern inline void ph_sclk_led_off(void); diff --git a/keyboards/bpiphany/pegasushoof/2013/2013.h b/keyboards/bpiphany/pegasushoof/2013/2013.h index f43fdcf92c..7454c7c860 100644 --- a/keyboards/bpiphany/pegasushoof/2013/2013.h +++ b/keyboards/bpiphany/pegasushoof/2013/2013.h @@ -73,9 +73,3 @@ along with this program. If not, see . /* 6 */ { KC_NO, KC_NO, KC6, KC_NO, KC_NO, KF6, KG6, KC_NO, KI6, KJ6, KK6, KL6, KC_NO, KN6, KO6, KC_NO, KQ6, KC_NO },\ /* 7 */ { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KF7, KG7, KH7, KI7, KJ7, KK7, KL7, KK7, KL7, KO7, KP7, KC_NO, KC_NO } \ } - -inline void ph_caps_led_on(void) { DDRC |= (1<<6); PORTC &= ~(1<<6); } -inline void ph_caps_led_off(void) { DDRC &= ~(1<<6); PORTC &= ~(1<<6); } - -inline void ph_sclk_led_on(void) { DDRC |= (1<<5); PORTC &= ~(1<<5); } -inline void ph_sclk_led_off(void) { DDRC &= ~(1<<5); PORTC &= ~(1<<5); } diff --git a/keyboards/bpiphany/pegasushoof/2013/config.h b/keyboards/bpiphany/pegasushoof/2013/config.h index 33762f020d..eb7c2fde13 100644 --- a/keyboards/bpiphany/pegasushoof/2013/config.h +++ b/keyboards/bpiphany/pegasushoof/2013/config.h @@ -21,8 +21,4 @@ along with this program. If not, see . #define MATRIX_ROWS 8 #define MATRIX_COLS 18 -/* COL2ROW or ROW2COL */ -#define DIODE_DIRECTION COL2ROW - -/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 +#define DYNAMIC_KEYMAP_LAYER_COUNT 3 // not enough memory for a 4th layer with VIA diff --git a/keyboards/bpiphany/pegasushoof/2013/info.json b/keyboards/bpiphany/pegasushoof/2013/info.json index d512d1b780..96f0749735 100644 --- a/keyboards/bpiphany/pegasushoof/2013/info.json +++ b/keyboards/bpiphany/pegasushoof/2013/info.json @@ -1,5 +1,12 @@ { "keyboard_name": "Majestouch TKL \\\\w The Pegasus Hoof 2013", + "diode_direction": "COL2ROW", + "debounce": 5, + "indicators": { + "caps_lock" : "C6", + "scroll_lock": "C5", + "on_state": 0 + }, "community_layouts": ["tkl_ansi"], "layouts": { "LAYOUT": { -- cgit v1.2.3