From 31c6fb2bae2461f5280f8cdbf8bf52fe8c5e0171 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 7 Dec 2024 11:15:49 +0200 Subject: feat(chak): Turn off Liatris LED only when it's used --- keyboards/crkbd/keymaps/chak/keymap.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/keyboards/crkbd/keymaps/chak/keymap.c b/keyboards/crkbd/keymaps/chak/keymap.c index 28b6b7e..4174f63 100644 --- a/keyboards/crkbd/keymaps/chak/keymap.c +++ b/keyboards/crkbd/keymaps/chak/keymap.c @@ -200,10 +200,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { // XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX //), -// void keyboard_pre_init_user(void) { -// // Set our LED pin as output -// setPinOutput(24); -// // Turn the LED off -// // (Due to technical reasons, high is off and low is on) -// writePinHigh(24); -// } +#ifdef CONVERT_TO_LIATRIS +void keyboard_pre_init_user(void) { + // Set our LED pin as output + setPinOutput(24); + // Turn the LED off + // (Due to technical reasons, high is off and low is on) + writePinHigh(24); +} +#endif -- cgit v1.2.3