~ruther/qmk_firmware

ref: 89b9a39614f0d788aa9f2ac0a338b30fb34745b7 qmk_firmware/keyboards/matrix/m12og/rev2/rev2.c -rw-r--r-- 448 bytes
89b9a396 — James Young Migrate `LOCKING_*_ENABLE` to Data-Driven: H, Part 4 (#23764) 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 * rev2.c
 */

#include "quantum.h"

void matrix_init_user(void) {
	gpio_set_pin_output(C6);
	gpio_set_pin_output(B2);
	gpio_set_pin_output(B1);
  
  matrix_init_user();
}

bool led_update_kb(led_t led_state) {
    bool res = led_update_user(led_state);
    if (res) {
        gpio_write_pin(B1, !led_state.num_lock);
        gpio_write_pin(C6, !led_state.caps_lock);
        gpio_write_pin(B2, !led_state.scroll_lock);
    }
    return res;
}
Do not follow this link