From 97b8ade1aa7dd96027d10dc92da2a2ccbde61b8c Mon Sep 17 00:00:00 2001 From: fauxpark Date: Mon, 21 Oct 2019 16:38:22 +1100 Subject: [Keyboard] Use GPIO macros for E6 LED in Planck and Preonic default keymaps (#7098) --- keyboards/planck/keymaps/default/keymap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'keyboards/planck/keymaps') diff --git a/keyboards/planck/keymaps/default/keymap.c b/keyboards/planck/keymaps/default/keymap.c index f0ba47b2a9..47394378c5 100644 --- a/keyboards/planck/keymaps/default/keymap.c +++ b/keyboards/planck/keymaps/default/keymap.c @@ -209,12 +209,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { backlight_step(); #endif #ifdef KEYBOARD_planck_rev5 - PORTE &= ~(1<<6); + writePinLow(E6); #endif } else { unregister_code(KC_RSFT); #ifdef KEYBOARD_planck_rev5 - PORTE |= (1<<6); + writePinHigh(E6); #endif } return false; -- cgit v1.2.3