summaryrefslogtreecommitdiff
path: root/keyboards/massdrop/ctrl/keymaps/matthewrobo/config_led.c
diff options
context:
space:
mode:
authorM-AS <matthewtransformer@hotmail.com>2020-10-18 19:30:24 -0400
committerGitHub <noreply@github.com>2020-10-18 16:30:24 -0700
commit9f1f43bb8620cc8fe6715019c3dc58cd4f79cf17 (patch)
tree4ebaef1fdea22d64350f70a4647d46331cf45c66 /keyboards/massdrop/ctrl/keymaps/matthewrobo/config_led.c
parentc4d87f307385ba61b4a3ac3f5f6e596105b0bf07 (diff)
downloadqmk_firmware-9f1f43bb8620cc8fe6715019c3dc58cd4f79cf17.tar.gz
qmk_firmware-9f1f43bb8620cc8fe6715019c3dc58cd4f79cf17.zip
[Keymap] Updated personal Massdrop CTRL keymap (#10649)
* initial port of keymap to latest qmk version * forgot to add space cadet shift, fixed * corrected colors and added color macros * added custom rgb matrix effects * enabled extrakey * updated readme * Added GPL3 License Headers * Added images to readme * clang-format * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> * renamed README.md to readme.md Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/massdrop/ctrl/keymaps/matthewrobo/config_led.c')
-rw-r--r--keyboards/massdrop/ctrl/keymaps/matthewrobo/config_led.c39
1 files changed, 27 insertions, 12 deletions
diff --git a/keyboards/massdrop/ctrl/keymaps/matthewrobo/config_led.c b/keyboards/massdrop/ctrl/keymaps/matthewrobo/config_led.c
index 448793cf5d..a4ce649d3b 100644
--- a/keyboards/massdrop/ctrl/keymaps/matthewrobo/config_led.c
+++ b/keyboards/massdrop/ctrl/keymaps/matthewrobo/config_led.c
@@ -1,10 +1,28 @@
-#ifdef RGB_MATRIX_ENABLE
-#include "ctrl.h"
+/*
+QMK Firmware Massdrop CTRL M-AS Keymap
+Copyright (C) 2020 matthewrobo
+
+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 3 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.
-#include "led_matrix.h"
-#include "rgb_matrix.h"
-#include "config_led.h"
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+#ifdef RGB_MATRIX_ENABLE
+# include "ctrl.h"
+
+# include "led_matrix.h"
+# include "rgb_matrix.h"
+# include "config_led.h"
+// clang-format off
led_config_t g_led_config = { {
{ 0, 1, 2, 3, 4, 5, 6, 7 },
{ 16, 17, 18, 19, 20, 21, 22, 23 },
@@ -70,13 +88,10 @@ led_config_t g_led_config = { {
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2
} };
+// clang-format on
-
-#ifdef USB_LED_INDICATOR_ENABLE
-void rgb_matrix_indicators_kb(void)
-{
- led_matrix_indicators();
-}
-#endif // USB_LED_INDICATOR_ENABLE
+# ifdef USB_LED_INDICATOR_ENABLE
+void rgb_matrix_indicators_kb(void) { led_matrix_indicators(); }
+# endif // USB_LED_INDICATOR_ENABLE
#endif