summaryrefslogtreecommitdiff
path: root/keyboards/massdrop/ctrl/keymaps/matthewrobo/config_led.c
diff options
context:
space:
mode:
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