summaryrefslogtreecommitdiff
path: root/keyboards/xd84
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/xd84')
-rw-r--r--keyboards/xd84/config.h3
-rw-r--r--keyboards/xd84/xd84.c16
2 files changed, 3 insertions, 16 deletions
diff --git a/keyboards/xd84/config.h b/keyboards/xd84/config.h
index 2a77db68a4..503cba3187 100644
--- a/keyboards/xd84/config.h
+++ b/keyboards/xd84/config.h
@@ -47,6 +47,9 @@
/* COL2ROW, ROW2COL */
//#define DIODE_DIRECTION COL2ROW
+#define LED_CAPS_LOCK_PIN B6
+#define LED_PIN_ON_STATE 0
+
#define BACKLIGHT_PIN B5
#define BACKLIGHT_LEVELS 10
// #define BACKLIGHT_BREATHING
diff --git a/keyboards/xd84/xd84.c b/keyboards/xd84/xd84.c
index eaf531421b..dec4ef95e2 100644
--- a/keyboards/xd84/xd84.c
+++ b/keyboards/xd84/xd84.c
@@ -14,19 +14,3 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "xd84.h"
-
-void keyboard_pre_init_kb(void) {
- setPinOutput(B6);
-
- keyboard_pre_init_user();
-}
-
-void led_set_kb(uint8_t usb_led) {
- if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
- writePinLow(B6);
- } else {
- writePinHigh(B6);
- }
-
- led_set_user(usb_led);
-}