summaryrefslogtreecommitdiff
path: root/keyboards/xd84pro
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/xd84pro')
-rw-r--r--keyboards/xd84pro/config.h3
-rw-r--r--keyboards/xd84pro/xd84pro.c14
2 files changed, 3 insertions, 14 deletions
diff --git a/keyboards/xd84pro/config.h b/keyboards/xd84pro/config.h
index 7fd4496fe3..01f410ea6b 100644
--- a/keyboards/xd84pro/config.h
+++ b/keyboards/xd84pro/config.h
@@ -35,6 +35,9 @@
#define DIODE_DIRECTION COL2ROW
+#define LED_CAPS_LOCK_PIN B2
+#define LED_PIN_ON_STATE 0
+
#define RGB_DI_PIN F6
#ifdef RGB_DI_PIN
#define RGBLED_NUM 12
diff --git a/keyboards/xd84pro/xd84pro.c b/keyboards/xd84pro/xd84pro.c
index cba8a57f26..0eb52fda0f 100644
--- a/keyboards/xd84pro/xd84pro.c
+++ b/keyboards/xd84pro/xd84pro.c
@@ -14,17 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "xd84pro.h"
-
-void keyboard_pre_init_kb(void) {
- led_init_ports();
- keyboard_pre_init_user();
-}
-void led_init_ports(void) {
- setPinOutput(B2);
-}
-bool led_update_kb(led_t led_state) {
- if (led_update_user(led_state)) {
- writePin(B2, !led_state.caps_lock);
- }
- return false;
-} \ No newline at end of file