logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

kira75.h (1270B)


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