qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

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 
     18 #pragma once
     19 #include "quantum.h"
     20 #include <stdint.h>
     21 #include "ap2_led.h"
     22 
     23 typedef struct __attribute__((__packed__)) {
     24     uint8_t _dummy[10];
     25     bool    caps_lock;
     26 } ble_capslock_t;
     27 extern ble_capslock_t ble_capslock;
     28 
     29 enum AP2KeyCodes {
     30     KC_AP2_BT1 = QK_KB_0,
     31     KC_AP2_BT2,
     32     KC_AP2_BT3,
     33     KC_AP2_BT4,
     34     KC_AP2_BT_UNPAIR,
     35     KC_AP2_USB,
     36     KC_AP_LED_ON,
     37     KC_AP_LED_OFF,
     38     KC_AP_LED_TOG,
     39     KC_AP_LED_NEXT_PROFILE,
     40     KC_AP_LED_PREV_PROFILE,
     41     KC_AP_LED_NEXT_INTENSITY,
     42     KC_AP_LED_SPEED,
     43     KC_AP_RGB_VAI,
     44     KC_AP_RGB_VAD,
     45     KC_AP_RGB_TOG,
     46     KC_AP_RGB_MOD,
     47 };