mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-28 11:47:32 +06:00
26 lines
382 B
C
26 lines
382 B
C
#include "2x5keypad.h"
|
|
|
|
|
|
void matrix_init_kb(void)
|
|
{
|
|
matrix_init_user();
|
|
|
|
gpio_set_pin_output(RED_LED);
|
|
gpio_set_pin_output(BLUE_LED);
|
|
gpio_set_pin_output(GREEN_LED);
|
|
}
|
|
|
|
|
|
|
|
void turn_off_leds(void)
|
|
{
|
|
gpio_write_pin_low(RED_LED);
|
|
gpio_write_pin_low(BLUE_LED);
|
|
gpio_write_pin_low(GREEN_LED);
|
|
}
|
|
|
|
void turn_on_led(pin_t pin)
|
|
{
|
|
gpio_write_pin_high(pin);
|
|
}
|