aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards
diff options
context:
space:
mode:
authorGravatar Erovia <Erovia@users.noreply.github.com>2019-06-03 21:09:46 +0200
committerGravatar Drashna Jaelre <drashna@live.com>2019-06-03 12:09:46 -0700
commita678f4a206f88cb2dc99be260da4d5030b1adeaa (patch)
treea497f0e08547e7780c9cd4bb7cf2f7df9b4076de /keyboards
parent32952d8624f1228a865b9636ad546ea32822abda (diff)
downloadqmk_firmware-a678f4a206f88cb2dc99be260da4d5030b1adeaa.tar.gz
[Keyboard] Dimple: fix unintended LED behaviour (#6046)
* Dimple: fix unintended LED behaviour The LED was always-on if the custom keymap did not call dimple_led_off() at least once. * Dimple: LED code fixup
Diffstat (limited to 'keyboards')
-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();
}