summaryrefslogtreecommitdiffstats
path: root/keyboards/rart/rartpad/rartpad.c
diff options
context:
space:
mode:
authorladbahuy <67696967+ladbahuy@users.noreply.github.com>2020-07-11 17:54:22 +0700
committerGitHub <noreply@github.com>2020-07-11 11:54:22 +0100
commit6609197cde9420b1e9e8b2337d939df6475e8a3c (patch)
tree8c1ddd9b21d1c2a88017449b4f054c025cdab8df /keyboards/rart/rartpad/rartpad.c
parent421621fbf13df48a462ce33ffd7988a886f3ec06 (diff)
[keyboard] Add rartpad (#9614)
Diffstat (limited to 'keyboards/rart/rartpad/rartpad.c')
-rw-r--r--keyboards/rart/rartpad/rartpad.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/keyboards/rart/rartpad/rartpad.c b/keyboards/rart/rartpad/rartpad.c
new file mode 100644
index 0000000000..566c3fa466
--- /dev/null
+++ b/keyboards/rart/rartpad/rartpad.c
@@ -0,0 +1,22 @@
+/* Copyright 2020 Alabahuy
+ * 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 "rartpad.h"
+
+bool led_update_kb(led_t led_state) {
+ if (led_update_user(led_state)) {
+ writePin(NUM_LOCK_LED_PIN, led_state.num_lock);
+ }
+ return true;
+}