summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/dygma/raise/leds.h
diff options
context:
space:
mode:
authorIslam Sharabash <islam.sharabash@gmail.com>2022-01-09 11:57:08 -0800
committerGitHub <noreply@github.com>2022-01-09 11:57:08 -0800
commitec78acae690ae8b6122132b810ce663604cd8b9b (patch)
treeee3b1a8621aede9326912b123ebc8bb78bea9ce9 /keyboards/handwired/dygma/raise/leds.h
parent8e17f9911d267a86777cf3e814710ac35e673c62 (diff)
[Keyboard] Adding Dygma Raise (#13543)
Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/handwired/dygma/raise/leds.h')
-rw-r--r--keyboards/handwired/dygma/raise/leds.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/keyboards/handwired/dygma/raise/leds.h b/keyboards/handwired/dygma/raise/leds.h
new file mode 100644
index 0000000000..8d70ed70b2
--- /dev/null
+++ b/keyboards/handwired/dygma/raise/leds.h
@@ -0,0 +1,25 @@
+/* Copyright 2018-2021 James Laird-Wah, Islam Sharabash
+ *
+ * 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
+
+#include "quantum.h"
+#include "rgb_matrix.h"
+
+extern const uint8_t led_map[DRIVER_LED_TOTAL];
+
+void set_all_leds_to(uint8_t r, uint8_t g, uint8_t b);
+void set_led_to(int led, uint8_t r, uint8_t g, uint8_t b);