diff options
author | mechlovin <57231893+mechlovin@users.noreply.github.com> | 2022-10-30 03:48:45 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-29 13:48:45 -0700 |
commit | 078a51139440e416e3d23d1f568b19f390d1a3cc (patch) | |
tree | 6872a78274b4eac37c080ba366abf3e83bbcf130 | |
parent | e90ff84c31905932849164204c10ea58255ddad2 (diff) |
[Keyboard] Update Kay65 LED state (#18895)
-rw-r--r-- | keyboards/mechlovin/kay65/config.h | 1 | ||||
-rw-r--r-- | keyboards/mechlovin/kay65/keymaps/default/keymap.c | 4 | ||||
-rw-r--r-- | 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 <http://www.gnu.org/licenses/>. //#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; } |