mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-20 14:42:03 +00:00
Update keyboards/mectechpad/mectechpad.c
Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
parent
48669d130d
commit
1ee762e125
@ -2,8 +2,8 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#include "quantum.h"
|
||||
|
||||
void keyboard_post_init_kb(void) {
|
||||
// Initialize LED pins
|
||||
void matrix_init_kb() {
|
||||
gpio_set_pin_output(LED_PIN_LAYER_0);
|
||||
gpio_write_pin_low(LED_PIN_LAYER_0);
|
||||
gpio_set_pin_output(LED_PIN_LAYER_1);
|
||||
@ -12,7 +12,10 @@ void matrix_init_kb() {
|
||||
gpio_write_pin_low(LED_PIN_LAYER_2);
|
||||
gpio_set_pin_output(LED_PIN_LAYER_3);
|
||||
gpio_write_pin_low(LED_PIN_LAYER_3);
|
||||
|
||||
keyboard_post_init_user();
|
||||
}
|
||||
|
||||
// Update LEDs based on the current layer
|
||||
void housekeeping_task_kb(void) {
|
||||
gpio_write_pin(LED_PIN_LAYER_0, (get_highest_layer(layer_state) == 0));
|
||||
|
Loading…
Reference in New Issue
Block a user