logo

qmk_firmware

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

annepro2.h (1288B)


  1. /*
  2. * Copyright (c) 2018 Yaotian Feng
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. #include "quantum.h"
  19. #include <stdint.h>
  20. #include "ap2_led.h"
  21. typedef struct __attribute__((__packed__)) {
  22. uint8_t _dummy[10];
  23. bool caps_lock;
  24. } ble_capslock_t;
  25. extern ble_capslock_t ble_capslock;
  26. enum AP2KeyCodes {
  27. KC_AP2_BT1 = QK_KB_0,
  28. KC_AP2_BT2,
  29. KC_AP2_BT3,
  30. KC_AP2_BT4,
  31. KC_AP2_BT_UNPAIR,
  32. KC_AP2_USB,
  33. KC_AP_LED_ON,
  34. KC_AP_LED_OFF,
  35. KC_AP_LED_TOG,
  36. KC_AP_LED_NEXT_PROFILE,
  37. KC_AP_LED_PREV_PROFILE,
  38. KC_AP_LED_NEXT_INTENSITY,
  39. KC_AP_LED_SPEED,
  40. KC_AP_RGB_VAI,
  41. KC_AP_RGB_VAD,
  42. KC_AP_RGB_TOG,
  43. KC_AP_RGB_MOD,
  44. };