~ruther/qmk_firmware

ref: 31c81d432cbe963a1132f231036d38aa908c9403 qmk_firmware/keyboards/handwired/2x5keypad/2x5keypad.c -rw-r--r-- 333 bytes
31c81d43 — Cipulot Add EC980C (#23172) 1 year, 2 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "2x5keypad.h"


void matrix_init_kb(void)
{
    matrix_init_user();

    setPinOutput(RED_LED);
    setPinOutput(BLUE_LED);
    setPinOutput(GREEN_LED);
}



void turn_off_leds(void)
{
    writePinLow(RED_LED);
    writePinLow(BLUE_LED);
    writePinLow(GREEN_LED);
}

void turn_on_led(pin_t pin)
{
    writePinHigh(pin);
}
Do not follow this link