kira75.h (1270B)
1 /* Copyright 2018 MechMerlin 2 3 * This program is free software: you can redistribute it and/or modify 4 * it under the terms of the GNU General Public License as published by 5 * the Free Software Foundation, either version 2 of the License, or 6 * (at your option) any later version. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 */ 16 17 #pragma once 18 19 #include "quantum.h" 20 21 #define KIRA75_CAPS_LOCK_LED_PIN D7 22 #define KIRA75_NUM_LOCK_LED_PIN D6 23 24 // Functions for setting LEDs on toggle keys 25 inline void caps_led_on(void) { 26 gpio_set_pin_output(KIRA75_CAPS_LOCK_LED_PIN); 27 gpio_write_pin_low(KIRA75_CAPS_LOCK_LED_PIN); 28 } 29 inline void caps_led_off(void) { 30 gpio_set_pin_input(KIRA75_CAPS_LOCK_LED_PIN); 31 } 32 33 inline void num_led_on(void) { 34 gpio_set_pin_output(KIRA75_NUM_LOCK_LED_PIN); 35 gpio_write_pin_low(KIRA75_NUM_LOCK_LED_PIN); 36 } 37 inline void num_led_off(void) { 38 gpio_set_pin_input(KIRA75_NUM_LOCK_LED_PIN); 39 }