forked from mirrors/qmk_userspace
Added wireless support; Added Lemokey L3; Added Keychron V1 Max
This commit is contained in:
parent
9539f135d8
commit
4ae5990fcc
31585 changed files with 99327 additions and 1763186 deletions
64
keyboards/lemokey/common/lemokey_common.h
Normal file
64
keyboards/lemokey/common/lemokey_common.h
Normal file
|
@ -0,0 +1,64 @@
|
|||
/* Copyright 2022 @ Keychron (https://www.lemokey.com)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "stdint.h"
|
||||
|
||||
// clang-format off
|
||||
enum {
|
||||
KC_TASK_VIEW = QK_KB_0,
|
||||
KC_FILE_EXPLORER,
|
||||
KC_LOCK_SCREEN, // Lock screen
|
||||
KC_MCTRL,
|
||||
KC_LANCH,
|
||||
KC_LOPTN,
|
||||
KC_ROPTN,
|
||||
KC_LCMMD,
|
||||
KC_RCMMD,
|
||||
#ifdef LK_WIRELESS_ENABLE
|
||||
BT_HST1,
|
||||
BT_HST2,
|
||||
BT_HST3,
|
||||
P2P4G,
|
||||
BAT_LVL,
|
||||
#else
|
||||
BT_HST1 = _______,
|
||||
BT_HST2 = _______,
|
||||
BT_HST3 = _______,
|
||||
P2P4G = _______,
|
||||
BAT_LVL = _______,
|
||||
#endif
|
||||
|
||||
NEW_SAFE_RANGE,
|
||||
};
|
||||
|
||||
#define KC_TASK KC_TASK_VIEW
|
||||
#define KC_FILE KC_FILE_EXPLORER
|
||||
#define KC_LOCK KC_LOCK_SCREEN
|
||||
|
||||
typedef struct PACKED {
|
||||
uint8_t len;
|
||||
uint8_t keycode[2];
|
||||
} key_combination_t;
|
||||
|
||||
bool process_record_lemokey_common(uint16_t keycode, keyrecord_t *record);
|
||||
void lemokey_common_task(void);
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
void encoder_cb_init(void);
|
||||
#endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue