kobold.c (495B)
1 // Copyright 2025 Nick Brassel (@tzarc) 2 // SPDX-License-Identifier: GPL-2.0-or-later 3 #include QMK_KEYBOARD_H 4 5 void early_hardware_init_post(void) { 6 // Disable RGB LEDs 7 gpio_set_pin_output(RGB_ENABLE_PIN); 8 gpio_write_pin(RGB_ENABLE_PIN, 1); 9 } 10 11 void housekeeping_task_kb() { 12 // Enable RGB LEDs after 200 milliseconds 13 static bool rgb_enabled = false; 14 if (!rgb_enabled && timer_read32() > 200) { 15 gpio_write_pin(RGB_ENABLE_PIN, 0); 16 rgb_enabled = true; 17 } 18 }