aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/lazydesigners/dimple
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/lazydesigners/dimple')
-rw-r--r--keyboards/lazydesigners/dimple/dimple.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/keyboards/lazydesigners/dimple/dimple.c b/keyboards/lazydesigners/dimple/dimple.c
index 5f9571651..69fb2253f 100644
--- a/keyboards/lazydesigners/dimple/dimple.c
+++ b/keyboards/lazydesigners/dimple/dimple.c
@@ -16,9 +16,15 @@
#include "dimple.h"
void dimple_led_on() {
- DDRE |= (1 << 6); PORTE &= ~(1 << 6);
+ writePinHigh(E6);
}
void dimple_led_off() {
- DDRE &= ~(1 << 6); PORTE &= ~(1 << 6);
+ writePinLow(E6);
+}
+
+void keyboard_pre_init_kb(void) {
+ // Initialize Caps Lock LED
+ setPinOutput(E6);
+ keyboard_pre_init_user();
}