2019-09-10 05:03:33 +00:00
|
|
|
#include "2x5keypad.h"
|
|
|
|
|
|
|
|
|
|
|
|
void matrix_init_kb(void)
|
|
|
|
{
|
|
|
|
matrix_init_user();
|
|
|
|
|
2024-05-03 05:21:29 +00:00
|
|
|
gpio_set_pin_output(RED_LED);
|
|
|
|
gpio_set_pin_output(BLUE_LED);
|
|
|
|
gpio_set_pin_output(GREEN_LED);
|
2019-09-10 05:03:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void turn_off_leds(void)
|
|
|
|
{
|
2024-05-03 05:21:29 +00:00
|
|
|
gpio_write_pin_low(RED_LED);
|
|
|
|
gpio_write_pin_low(BLUE_LED);
|
|
|
|
gpio_write_pin_low(GREEN_LED);
|
2019-09-10 05:03:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void turn_on_led(pin_t pin)
|
|
|
|
{
|
2024-05-03 05:21:29 +00:00
|
|
|
gpio_write_pin_high(pin);
|
2019-09-10 05:03:33 +00:00
|
|
|
}
|