logo

qmk_firmware

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

planck_ez.h (1480B)


  1. /* Copyright 2018 Jack Humbert <jack.humb@gmail.com>
  2. * Copyright 2015 ZSA Technology Labs Inc (@zsa)
  3. * Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #pragma once
  19. #include "quantum.h"
  20. void planck_ez_right_led_on(void);
  21. void planck_ez_right_led_off(void);
  22. void planck_ez_right_led_level(uint8_t level);
  23. void planck_ez_left_led_on(void);
  24. void planck_ez_left_led_off(void);
  25. void planck_ez_left_led_level(uint8_t level);
  26. enum planck_ez_keycodes {
  27. LED_LEVEL = QK_KB_0,
  28. TOGGLE_LAYER_COLOR,
  29. };
  30. #ifndef WEBUSB_ENABLE
  31. # define WEBUSB_PAIR KC_NO
  32. #endif
  33. typedef union {
  34. uint32_t raw;
  35. struct {
  36. uint8_t led_level :3;
  37. bool disable_layer_led :1;
  38. bool rgb_matrix_enable :1;
  39. };
  40. } keyboard_config_t;
  41. extern keyboard_config_t keyboard_config;