From 60cd12f8a4ac82b1dcb2c8ec0f0231c2004507ce Mon Sep 17 00:00:00 2001 From: Erovia Date: Sun, 6 Oct 2019 20:15:17 +0200 Subject: [PATCH] Dimple: Fix Caps Lock LED behaviour (#6936) * Dimple: Fix Caps Lock LED behaviour * Dimple: fix helper functions and cleanup unnecessary code --- keyboards/lazydesigners/dimple/config.h | 6 ------ keyboards/lazydesigners/dimple/dimple.c | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/keyboards/lazydesigners/dimple/config.h b/keyboards/lazydesigners/dimple/config.h index 9814d1050..5c36a7252 100644 --- a/keyboards/lazydesigners/dimple/config.h +++ b/keyboards/lazydesigners/dimple/config.h @@ -58,9 +58,3 @@ along with this program. If not, see . /* #define RGBLIGHT_SAT_STEP 8 */ /* #define RGBLIGHT_VAL_STEP 8 */ #endif - -/* CapsLock LED */ -#define BACKLIGHT_PIN E6 -#ifdef BACKLIGHT_PIN - #define BACKLIGHT_LEVELS 6 -#endif diff --git a/keyboards/lazydesigners/dimple/dimple.c b/keyboards/lazydesigners/dimple/dimple.c index 69fb2253f..6bbb9a047 100644 --- a/keyboards/lazydesigners/dimple/dimple.c +++ b/keyboards/lazydesigners/dimple/dimple.c @@ -16,11 +16,11 @@ #include "dimple.h" void dimple_led_on() { - writePinHigh(E6); + writePinLow(E6); } void dimple_led_off() { - writePinLow(E6); + writePinHigh(E6); } void keyboard_pre_init_kb(void) {