Skip to content

Commit

Permalink
Added missing GPLv2 license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
HorrorTroll committed Dec 27, 2021
1 parent 3768403 commit 843abf4
Show file tree
Hide file tree
Showing 15 changed files with 172 additions and 52 deletions.
33 changes: 16 additions & 17 deletions keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/config.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
/*
Copyright 2021 HorrorTroll <https://github.com/HorrorTroll>
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/>.
*/
/* Copyright 2021 HorrorTroll <https://github.com/HorrorTroll>
*
* 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

Expand All @@ -37,4 +36,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#undef DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
#undef DISABLE_RGB_MATRIX_SPLASH
#undef DISABLE_RGB_MATRIX_SOLID_SPLASH
#endif
#endif
18 changes: 17 additions & 1 deletion keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/keymap_stuff.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/* Copyright 2021 HorrorTroll <https://github.com/HorrorTroll>
*
* 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/>.
*/

// Each layer gets a name for readability, which is then used in the keymap matrix below.
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
// Layer names don't all need to be of the same length, obviously, and you can also skip them
Expand Down Expand Up @@ -306,4 +322,4 @@ void rgb_matrix_indicators_user(void) {
rgb_matrix_set_color(52, 0, 0, 0);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
/* Copyright 2021 HorrorTroll <https://github.com/HorrorTroll>
*
* 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/>.
*/

static HSV COOL_DIAGONAL_math(HSV hsv, uint8_t i, uint8_t time) {
hsv.h = (g_led_config.point[i].x / 4) - g_led_config.point[i].y - time;
return hsv;
}

bool COOL_DIAGONAL(effect_params_t* params) { return effect_runner_i(params, &COOL_DIAGONAL_math); }
bool COOL_DIAGONAL(effect_params_t* params) { return effect_runner_i(params, &COOL_DIAGONAL_math); }
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/* Copyright 2021 HorrorTroll <https://github.com/HorrorTroll>
*
* 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/>.
*/

extern HSV gradient_0;
extern HSV gradient_100;
extern bool reflected_gradient;
Expand Down Expand Up @@ -55,4 +71,4 @@ static bool CUSTOM_GRADIENT(effect_params_t* params) {
}

return led_max < DRIVER_LED_TOTAL;
}
}
18 changes: 17 additions & 1 deletion keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/diagonal.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
/* Copyright 2021 HorrorTroll <https://github.com/HorrorTroll>
*
* 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/>.
*/

static HSV DIAGONAL_math(HSV hsv, uint8_t i, uint8_t time) {
hsv.h = g_led_config.point[i].x - g_led_config.point[i].y - time;
return hsv;
}

bool DIAGONAL(effect_params_t* params) { return effect_runner_i(params, &DIAGONAL_math); }
bool DIAGONAL(effect_params_t* params) { return effect_runner_i(params, &DIAGONAL_math); }
18 changes: 17 additions & 1 deletion keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/led/kitt.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/* Copyright 2021 HorrorTroll <https://github.com/HorrorTroll>
*
* 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/>.
*/

// variable for startup animation
bool BASE_EFFECT_NOT_STARTED_YET = true;
uint8_t base_effect_startup_counter = 255;
Expand Down Expand Up @@ -49,4 +65,4 @@ static HSV KITT_math(HSV hsv, uint8_t i, uint8_t time) {
return hsv;
}

bool KITT(effect_params_t* params) { return effect_runner_i(params, &KITT_math); }
bool KITT(effect_params_t* params) { return effect_runner_i(params, &KITT_math); }
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/* Copyright 2021 HorrorTroll <https://github.com/HorrorTroll>
*
* 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/>.
*/

#include "led/rainbow_reactive_simple/rainbow_reactive_simple.h"

static HSV RAINBOW_REACTIVE_SIMPLE_math(HSV hsv, uint8_t i, uint8_t time, uint16_t offset) {
Expand All @@ -6,4 +22,4 @@ static HSV RAINBOW_REACTIVE_SIMPLE_math(HSV hsv, uint8_t i, uint8_t time, uint16
return hsv;
}

bool RAINBOW_REACTIVE_SIMPLE(effect_params_t* params) { return effect_rainbow_reactive(params, &RAINBOW_REACTIVE_SIMPLE_math); }
bool RAINBOW_REACTIVE_SIMPLE(effect_params_t* params) { return effect_rainbow_reactive(params, &RAINBOW_REACTIVE_SIMPLE_math); }
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/* Copyright 2021 HorrorTroll <https://github.com/HorrorTroll>
*
* 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

typedef HSV (*rainbow_reactive_f)(HSV hsv, uint8_t i, uint8_t time, uint16_t offset);
Expand Down Expand Up @@ -26,4 +42,4 @@ bool effect_rainbow_reactive(effect_params_t* params, rainbow_reactive_f effect_
}

return led_max < DRIVER_LED_TOTAL;
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/* Copyright 2021 HorrorTroll <https://github.com/HorrorTroll>
*
* 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/>.
*/

static uint8_t offset[DRIVER_LED_TOTAL];

static void doRandom_breath_rainbow(int i, effect_params_t* params) {
Expand Down Expand Up @@ -36,4 +52,4 @@ bool RANDOM_BREATH_RAINBOW(effect_params_t* params) {
}

return led_max < DRIVER_LED_TOTAL;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ RGB_MATRIX_EFFECT(RANDOM_BREATH_RAINBOW)
#include "led/kitt.c"
#include "led/random_breath_rainbow.c"

#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS
3 changes: 0 additions & 3 deletions keyboards/mwstudio/mw65_rgb/keymaps/horrortroll/rules.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Build Options
# change yes to no to disable
#
MOUSEKEY_ENABLE = no # Mouse keys
VIA_ENABLE = yes
LTO_ENABLE = yes
Expand Down
33 changes: 16 additions & 17 deletions keyboards/mwstudio/mw65_rgb/keymaps/thearesia/config.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
/*
Copyright 2021 HorrorTroll <https://github.com/HorrorTroll>
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/>.
*/
/* Copyright 2021 Thearesia
*
* 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

Expand All @@ -24,4 +23,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

/* Change USB Polling Rate to 1000hz and a larger keys per scan for elite gaming */
#define USB_POLLING_INTERVAL_MS 1
#define QMK_KEYS_PER_SCAN 12
#define QMK_KEYS_PER_SCAN 12
4 changes: 2 additions & 2 deletions keyboards/mwstudio/mw65_rgb/keymaps/thearesia/keymap.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2021 HorrorTroll <https://github.com/HorrorTroll>
/* Copyright 2021 Thearesia
*
* 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
Expand Down Expand Up @@ -188,4 +188,4 @@ void rgb_matrix_indicators_user(void) {
rgb_matrix_set_color(52, 0, 0, 0);
}
}
}
}
2 changes: 1 addition & 1 deletion keyboards/mwstudio/mw65_rgb/keymaps/thearesia/readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Personal Layout with VIA

Keymap is default 67 qwerty, 65 ansi blocker layout
Keymap is default 67 qwerty, 65 ansi blocker layout
3 changes: 0 additions & 3 deletions keyboards/mwstudio/mw65_rgb/keymaps/thearesia/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# Build Options
# change yes to no to disable
#
VIA_ENABLE = yes
LTO_ENABLE = yes

0 comments on commit 843abf4

Please sign in to comment.