summaryrefslogtreecommitdiffstats
path: root/keyboards/acheron/elongate/elongate.c
diff options
context:
space:
mode:
authorÁlvaro A. Volpato <alvaro.volpato@usp.br>2020-05-06 13:11:59 -0300
committerGitHub <noreply@github.com>2020-05-06 17:11:59 +0100
commitb18c261040f6473fa445e57c80f1c5646797105c (patch)
tree5e025483b76077c6b9bbfda85d5606db284e64d4 /keyboards/acheron/elongate/elongate.c
parentbac5d6bc6ade705f1d10f42385e420686bb182d5 (diff)
Add Elongate PCB support (#8419)
* Working on proto * Start adding VIA support * Apply suggestions from code review Removed redundant comments and fixed typos Co-Authored-By: Ryan <fauxpark@gmail.com> Co-Authored-By: Joel Challis <git@zvecr.com> * Delete useless config.h As per code review * Delete elongate.c As per code review * Updated readme.md * Update keyboards/acheron/elongate/keymaps/default/keymap.c As per code review Co-Authored-By: Ryan <fauxpark@gmail.com> * Apply suggestions from code review Removed RGB_MODE_TEST definition and substituted for RGB_M_T Co-Authored-By: Ryan <fauxpark@gmail.com> * Apply suggestions from code review Reverted changes to alice.h Co-Authored-By: Ryan <fauxpark@gmail.com> * Update info.json * Update via/keymap.c Co-Authored-By: Ryan <fauxpark@gmail.com> * Solve compiling issue for via keymap * Add botmagic support and remoce console_enable Co-Authored-By: Joel Challis <git@zvecr.com> * Update keyboards/acheron/elongate/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/acheron/elongate/keymaps/via/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/acheron/elongate/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/acheron/elongate/config.h Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Gondolindrim <alvaro.augusto.volpato@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'keyboards/acheron/elongate/elongate.c')
-rw-r--r--keyboards/acheron/elongate/elongate.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/keyboards/acheron/elongate/elongate.c b/keyboards/acheron/elongate/elongate.c
new file mode 100644
index 0000000000..31c4720360
--- /dev/null
+++ b/keyboards/acheron/elongate/elongate.c
@@ -0,0 +1,26 @@
+/* Copyright 2020 Gondolindrim
+ *
+ * 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 "elongate.h"
+bool led_update_kb(led_t led_state) {
+ bool res = led_update_user(led_state);
+ if(res) {
+ writePin(D2, led_state.num_lock);
+ writePin(D1, led_state.caps_lock);
+ writePin(D0, led_state.scroll_lock);
+ }
+ return res;
+}