From 6609197cde9420b1e9e8b2337d939df6475e8a3c Mon Sep 17 00:00:00 2001 From: ladbahuy <67696967+ladbahuy@users.noreply.github.com> Date: Sat, 11 Jul 2020 17:54:22 +0700 Subject: [keyboard] Add rartpad (#9614) --- keyboards/rart/rartpad/rartpad.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 keyboards/rart/rartpad/rartpad.c (limited to 'keyboards/rart/rartpad/rartpad.c') 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 . + */ +#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; +} -- cgit v1.2.3