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/planck.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'keyboards/planck/planck.c') diff --git a/keyboards/planck/planck.c b/keyboards/planck/planck.c index d9e3f00f2..5a65d5e5f 100644 --- a/keyboards/planck/planck.c +++ b/keyboards/planck/planck.c @@ -14,8 +14,8 @@ __attribute__ ((weak)) void matrix_init_kb(void) { // Turn status LED on #ifdef __AVR__ - DDRE |= (1<<6); - PORTE |= (1<<6); + setPinOutput(E6); + writePinHigh(E6); #endif matrix_init_user(); @@ -26,4 +26,4 @@ const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_planck_grid( 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 -); \ No newline at end of file +); -- cgit v1.2.3