From 078a51139440e416e3d23d1f568b19f390d1a3cc Mon Sep 17 00:00:00 2001 From: mechlovin <57231893+mechlovin@users.noreply.github.com> Date: Sun, 30 Oct 2022 03:48:45 +0700 Subject: [Keyboard] Update Kay65 LED state (#18895) --- keyboards/mechlovin/kay65/config.h | 1 + keyboards/mechlovin/kay65/keymaps/default/keymap.c | 4 ++-- keyboards/mechlovin/kay65/keymaps/via/keymap.c | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/keyboards/mechlovin/kay65/config.h b/keyboards/mechlovin/kay65/config.h index 09e841804e..8dcdbf9611 100644 --- a/keyboards/mechlovin/kay65/config.h +++ b/keyboards/mechlovin/kay65/config.h @@ -48,6 +48,7 @@ along with this program. If not, see . //#define LED_SCROLL_LOCK_PIN B2 //#define LED_COMPOSE_PIN B3 //#define LED_KANA_PIN B4 +#define LED_PIN_ON_STATE 0 //#define BACKLIGHT_PIN B7 //#define BACKLIGHT_LEVELS 3 diff --git a/keyboards/mechlovin/kay65/keymaps/default/keymap.c b/keyboards/mechlovin/kay65/keymaps/default/keymap.c index f72c8d8bb4..189b782b20 100644 --- a/keyboards/mechlovin/kay65/keymaps/default/keymap.c +++ b/keyboards/mechlovin/kay65/keymaps/default/keymap.c @@ -36,12 +36,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { switch (keycode) { case LOGO_LED_ON: if (record->event.pressed) { - writePinHigh(D7); + writePinLow(D7); } break; case LOGO_LED_OFF: if (record->event.pressed) { - writePinLow(D7); + writePinHigh(D7); } break; } diff --git a/keyboards/mechlovin/kay65/keymaps/via/keymap.c b/keyboards/mechlovin/kay65/keymaps/via/keymap.c index 01a524e2a0..5011472a79 100644 --- a/keyboards/mechlovin/kay65/keymaps/via/keymap.c +++ b/keyboards/mechlovin/kay65/keymaps/via/keymap.c @@ -59,12 +59,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { switch (keycode) { case LOGO_LED_ON: if (record->event.pressed) { - writePinHigh(D7); + writePinLow(D7); } break; case LOGO_LED_OFF: if (record->event.pressed) { - writePinLow(D7); + writePinHigh(D7); } break; } -- cgit v1.2.3