X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=keyboards%2Flazydesigners%2Fdimple%2Fdimple.c;h=69fb2253fc00e7cd6de4cc17f6ef333a2c80e99d;hb=a678f4a206f88cb2dc99be260da4d5030b1adeaa;hp=5f9571651682161f300d0f2072e28c149c360dc1;hpb=32952d8624f1228a865b9636ad546ea32822abda;p=qmk_firmware.git 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(); }