keyboard stuff
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove redundant keyboard headers (#25208)

authored by

Joel Challis and committed by
GitHub
4fb3cf07 e98c41c0

+90 -226
+14 -1
keyboards/4pplet/perk60_iso/rev_a/rev_a.c
··· 14 14 You should have received a copy of the GNU General Public License 15 15 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 16 */ 17 - #include "rev_a.h" 17 + #include "quantum.h" 18 + 19 + #ifndef CAPS_LOCK_ENABLE 20 + # define CAPS_LOCK_ENABLE true 21 + #endif 22 + 23 + #ifndef CAPS_LOCK_COLOR 24 + # define CAPS_LOCK_COLOR RGB_RED 25 + #endif 26 + 27 + #ifndef CAPS_LED_GROUP 28 + // change what leds to target, for example LED_FLAG_KEYLIGHT for alpas or LED_FLAG_MODIFIER for modifiers 29 + # define CAPS_LED_GROUP LED_FLAG_INDICATOR 30 + #endif 18 31 19 32 #ifdef RGB_MATRIX_ENABLE 20 33 const is31fl3733_led_t PROGMEM g_is31fl3733_leds[IS31FL3733_LED_COUNT] = {
-23
keyboards/4pplet/perk60_iso/rev_a/rev_a.h
··· 1 - /* 2 - Copyright 2022 Stefan Sundin "4pplet" <4pplet@protonmail.com> 3 - 4 - This program is free software: you can redistribute it and/or modify 5 - it under the terms of the GNU General Public License as published by 6 - the Free Software Foundation, either version 2 of the License, or 7 - (at your option) any later version. 8 - 9 - This program is distributed in the hope that it will be useful, 10 - but WITHOUT ANY WARRANTY; without even the implied warranty of 11 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 - GNU General Public License for more details. 13 - 14 - You should have received a copy of the GNU General Public License 15 - along with this program. If not, see <http://www.gnu.org/licenses/>. 16 - */ 17 - #pragma once 18 - 19 - #define CAPS_LOCK_ENABLE true 20 - #define CAPS_LOCK_COLOR RGB_RED 21 - #define CAPS_LED_GROUP LED_FLAG_INDICATOR // change what leds to target, for example LED_FLAG_KEYLIGHT for alpas or LED_FLAG_MODIFIER for modifiers 22 - 23 - #include "quantum.h"
+5 -1
keyboards/4pplet/waffling60/rev_b/rev_b.c
··· 14 14 You should have received a copy of the GNU General Public License 15 15 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 16 */ 17 - #include "rev_b.h" 17 + #include "quantum.h" 18 + 19 + #ifndef CAPS_LOCK_ENABLE 20 + # define CAPS_LOCK_ENABLE true 21 + #endif 18 22 19 23 bool led_update_kb(led_t led_state) { 20 24 bool res = led_update_user(led_state);
-22
keyboards/4pplet/waffling60/rev_b/rev_b.h
··· 1 - /* 2 - Copyright 2020 Stefan Sundin "4pplet" <4pplet@protonmail.com> 3 - 4 - This program is free software: you can redistribute it and/or modify 5 - it under the terms of the GNU General Public License as published by 6 - the Free Software Foundation, either version 2 of the License, or 7 - (at your option) any later version. 8 - 9 - This program is distributed in the hope that it will be useful, 10 - but WITHOUT ANY WARRANTY; without even the implied warranty of 11 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 - GNU General Public License for more details. 13 - 14 - You should have received a copy of the GNU General Public License 15 - along with this program. If not, see <http://www.gnu.org/licenses/>. 16 - */ 17 - #pragma once 18 - 19 - #define CAPS_LOCK_ENABLE true 20 - //#define CAPS_LOCK_COLOR HSV_ORANGE 21 - 22 - #include "quantum.h"
+5 -1
keyboards/4pplet/waffling60/rev_c/rev_c.c
··· 14 14 You should have received a copy of the GNU General Public License 15 15 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 16 */ 17 - #include "rev_c.h" 17 + #include "quantum.h" 18 + 19 + #ifndef CAPS_LOCK_ENABLE 20 + # define CAPS_LOCK_ENABLE true 21 + #endif 18 22 19 23 bool led_update_kb(led_t led_state) { 20 24 bool res = led_update_user(led_state);
-22
keyboards/4pplet/waffling60/rev_c/rev_c.h
··· 1 - /* 2 - Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.com> 3 - 4 - This program is free software: you can redistribute it and/or modify 5 - it under the terms of the GNU General Public License as published by 6 - the Free Software Foundation, either version 2 of the License, or 7 - (at your option) any later version. 8 - 9 - This program is distributed in the hope that it will be useful, 10 - but WITHOUT ANY WARRANTY; without even the implied warranty of 11 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 - GNU General Public License for more details. 13 - 14 - You should have received a copy of the GNU General Public License 15 - along with this program. If not, see <http://www.gnu.org/licenses/>. 16 - */ 17 - #pragma once 18 - 19 - #define CAPS_LOCK_ENABLE true 20 - //#define CAPS_LOCK_COLOR HSV_ORANGE 21 - 22 - #include "quantum.h"
+5 -1
keyboards/4pplet/waffling60/rev_d/rev_d.c
··· 14 14 You should have received a copy of the GNU General Public License 15 15 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 16 */ 17 - #include "rev_d.h" 17 + #include "quantum.h" 18 + 19 + #ifndef CAPS_LOCK_ENABLE 20 + # define CAPS_LOCK_ENABLE true 21 + #endif 18 22 19 23 bool led_update_kb(led_t led_state) { 20 24 bool res = led_update_user(led_state);
-22
keyboards/4pplet/waffling60/rev_d/rev_d.h
··· 1 - /* 2 - Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.com> 3 - 4 - This program is free software: you can redistribute it and/or modify 5 - it under the terms of the GNU General Public License as published by 6 - the Free Software Foundation, either version 2 of the License, or 7 - (at your option) any later version. 8 - 9 - This program is distributed in the hope that it will be useful, 10 - but WITHOUT ANY WARRANTY; without even the implied warranty of 11 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 - GNU General Public License for more details. 13 - 14 - You should have received a copy of the GNU General Public License 15 - along with this program. If not, see <http://www.gnu.org/licenses/>. 16 - */ 17 - #pragma once 18 - 19 - #define CAPS_LOCK_ENABLE true 20 - //#define CAPS_LOCK_COLOR HSV_ORANGE 21 - 22 - #include "quantum.h"
+9 -1
keyboards/4pplet/waffling60/rev_e/rev_e.c
··· 14 14 You should have received a copy of the GNU General Public License 15 15 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 16 */ 17 - #include "rev_e.h" 17 + #include "quantum.h" 18 + 19 + #ifndef CAPS_LOCK_ENABLE 20 + # define CAPS_LOCK_ENABLE true 21 + #endif 22 + 23 + #ifndef CAPS_LOCK_COLOR 24 + # define CAPS_LOCK_COLOR HSV_GREEN 25 + #endif 18 26 19 27 void keyboard_pre_init_kb(void) { 20 28 rgblight_set_effect_range(0, 16);
-22
keyboards/4pplet/waffling60/rev_e/rev_e.h
··· 1 - /* 2 - Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.com> 3 - 4 - This program is free software: you can redistribute it and/or modify 5 - it under the terms of the GNU General Public License as published by 6 - the Free Software Foundation, either version 2 of the License, or 7 - (at your option) any later version. 8 - 9 - This program is distributed in the hope that it will be useful, 10 - but WITHOUT ANY WARRANTY; without even the implied warranty of 11 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 - GNU General Public License for more details. 13 - 14 - You should have received a copy of the GNU General Public License 15 - along with this program. If not, see <http://www.gnu.org/licenses/>. 16 - */ 17 - #pragma once 18 - 19 - #include "quantum.h" 20 - 21 - #define CAPS_LOCK_ENABLE true 22 - #define CAPS_LOCK_COLOR HSV_GREEN
+13 -1
keyboards/4pplet/waffling80/rev_a/rev_a.c
··· 14 14 You should have received a copy of the GNU General Public License 15 15 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 16 */ 17 - #include "rev_a.h" 17 + #include "quantum.h" 18 + 19 + #ifndef CAPS_LOCK_ENABLE 20 + # define CAPS_LOCK_ENABLE 1 21 + #endif 22 + 23 + #ifndef SCROLL_LOCK_ENABLE 24 + # define SCROLL_LOCK_ENABLE 1 25 + #endif 26 + 27 + // If colors are defined, they will be static. If not defined, color for indicators can be set in VIA. 28 + //#define CAPS_LOCK_COLOR HSV_GREEN 29 + //#define SCROLL_LOCK_COLOR HSV_GREEN 18 30 19 31 bool led_update_kb(led_t led_state) { 20 32 bool res = led_update_user(led_state);
-26
keyboards/4pplet/waffling80/rev_a/rev_a.h
··· 1 - /* 2 - Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.com> 3 - 4 - This program is free software: you can redistribute it and/or modify 5 - it under the terms of the GNU General Public License as published by 6 - the Free Software Foundation, either version 2 of the License, or 7 - (at your option) any later version. 8 - 9 - This program is distributed in the hope that it will be useful, 10 - but WITHOUT ANY WARRANTY; without even the implied warranty of 11 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 - GNU General Public License for more details. 13 - 14 - You should have received a copy of the GNU General Public License 15 - along with this program. If not, see <http://www.gnu.org/licenses/>. 16 - */ 17 - #pragma once 18 - 19 - #define CAPS_LOCK_ENABLE 1 20 - #define SCROLL_LOCK_ENABLE 1 21 - 22 - // If colors are defined, they will be static. If not defined, color for incicators can be set in VIA. 23 - //#define CAPS_LOCK_COLOR HSV_GREEN 24 - //#define SCROLL_LOCK_COLOR HSV_GREEN 25 - 26 - #include "quantum.h"
+13 -1
keyboards/4pplet/waffling80/rev_b/rev_b.c
··· 14 14 You should have received a copy of the GNU General Public License 15 15 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 16 */ 17 - #include "rev_b.h" 17 + #include "quantum.h" 18 + 19 + #ifndef CAPS_LOCK_ENABLE 20 + # define CAPS_LOCK_ENABLE 1 21 + #endif 22 + 23 + #ifndef SCROLL_LOCK_ENABLE 24 + # define SCROLL_LOCK_ENABLE 1 25 + #endif 26 + 27 + // If colors are defined, they will be static. If not defined, color for indicators can be set in VIA. 28 + //#define CAPS_LOCK_COLOR HSV_GREEN 29 + //#define SCROLL_LOCK_COLOR HSV_GREEN 18 30 19 31 bool led_update_kb(led_t led_state) { 20 32 bool res = led_update_user(led_state);
-26
keyboards/4pplet/waffling80/rev_b/rev_b.h
··· 1 - /* 2 - Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.com> 3 - 4 - This program is free software: you can redistribute it and/or modify 5 - it under the terms of the GNU General Public License as published by 6 - the Free Software Foundation, either version 2 of the License, or 7 - (at your option) any later version. 8 - 9 - This program is distributed in the hope that it will be useful, 10 - but WITHOUT ANY WARRANTY; without even the implied warranty of 11 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 - GNU General Public License for more details. 13 - 14 - You should have received a copy of the GNU General Public License 15 - along with this program. If not, see <http://www.gnu.org/licenses/>. 16 - */ 17 - #pragma once 18 - 19 - #define CAPS_LOCK_ENABLE 1 20 - #define SCROLL_LOCK_ENABLE 1 21 - 22 - // If colors are defined, they will be static. If not defined, color for incicators can be set in VIA. 23 - //#define CAPS_LOCK_COLOR HSV_GREEN 24 - //#define SCROLL_LOCK_COLOR HSV_GREEN 25 - 26 - #include "quantum.h"
+13 -1
keyboards/4pplet/waffling80/rev_b_ansi/rev_b_ansi.c
··· 14 14 You should have received a copy of the GNU General Public License 15 15 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 16 */ 17 - #include "rev_b_ansi.h" 17 + #include "quantum.h" 18 + 19 + #ifndef CAPS_LOCK_ENABLE 20 + # define CAPS_LOCK_ENABLE 1 21 + #endif 22 + 23 + #ifndef SCROLL_LOCK_ENABLE 24 + # define SCROLL_LOCK_ENABLE 1 25 + #endif 26 + 27 + // If colors are defined, they will be static. If not defined, color for indicators can be set in VIA. 28 + //#define CAPS_LOCK_COLOR HSV_GREEN 29 + //#define SCROLL_LOCK_COLOR HSV_GREEN 18 30 19 31 bool led_update_kb(led_t led_state) { 20 32 bool res = led_update_user(led_state);
-26
keyboards/4pplet/waffling80/rev_b_ansi/rev_b_ansi.h
··· 1 - /* 2 - Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.com> 3 - 4 - This program is free software: you can redistribute it and/or modify 5 - it under the terms of the GNU General Public License as published by 6 - the Free Software Foundation, either version 2 of the License, or 7 - (at your option) any later version. 8 - 9 - This program is distributed in the hope that it will be useful, 10 - but WITHOUT ANY WARRANTY; without even the implied warranty of 11 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 - GNU General Public License for more details. 13 - 14 - You should have received a copy of the GNU General Public License 15 - along with this program. If not, see <http://www.gnu.org/licenses/>. 16 - */ 17 - #pragma once 18 - 19 - #define CAPS_LOCK_ENABLE 1 20 - #define SCROLL_LOCK_ENABLE 1 21 - 22 - // If colors are defined, they will be static. If not defined, color for incicators can be set in VIA. 23 - //#define CAPS_LOCK_COLOR HSV_GREEN 24 - //#define SCROLL_LOCK_COLOR HSV_GREEN 25 - 26 - #include "quantum.h"
-6
keyboards/lendunistus/rpneko65/rev1/config.h
··· 1 - // Copyright 2023 lendunistus 2 - // SPDX-License-Identifier: GPL-2.0-or-later 3 - 4 - #pragma once 5 - 6 - #define CAPS_LOCK_ENABLE true
+4
keyboards/lendunistus/rpneko65/rev1/rev1.c
··· 16 16 */ 17 17 #include "quantum.h" 18 18 19 + #ifndef CAPS_LOCK_ENABLE 20 + # define CAPS_LOCK_ENABLE true 21 + #endif 22 + 19 23 bool led_update_kb(led_t led_state) { 20 24 bool res = led_update_user(led_state); 21 25 if (CAPS_LOCK_ENABLE && res) {
+9 -1
keyboards/umbra/solder/solder.c
··· 14 14 You should have received a copy of the GNU General Public License 15 15 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 16 */ 17 - #include "solder.h" 17 + #include "quantum.h" 18 + 19 + #ifndef CAPS_LOCK_ENABLE 20 + # define CAPS_LOCK_ENABLE true 21 + #endif 22 + 23 + #ifndef CAPS_LOCK_COLOR 24 + # define CAPS_LOCK_COLOR HSV_GREEN 25 + #endif 18 26 19 27 void keyboard_pre_init_kb(void) { 20 28 rgblight_set_effect_range(0, 16);
-22
keyboards/umbra/solder/solder.h
··· 1 - /* 2 - Copyright 2024 Joseph Williams IV "IV Works" <josephawilliamsiv@gmail.com> 3 - 4 - This program is free software: you can redistribute it and/or modify 5 - it under the terms of the GNU General Public License as published by 6 - the Free Software Foundation, either version 2 of the License, or 7 - (at your option) any later version. 8 - 9 - This program is distributed in the hope that it will be useful, 10 - but WITHOUT ANY WARRANTY; without even the implied warranty of 11 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 - GNU General Public License for more details. 13 - 14 - You should have received a copy of the GNU General Public License 15 - along with this program. If not, see <http://www.gnu.org/licenses/>. 16 - */ 17 - #pragma once 18 - 19 - #include "quantum.h" 20 - 21 - #define CAPS_LOCK_ENABLE true 22 - #define CAPS_LOCK_COLOR HSV_GREEN