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
|
@ -1,4 +1,4 @@
|
|||
/* Copyright 2022 @ Keychron (https://www.keychron.com)
|
||||
/* Copyright 2023 @ Keychron (https://www.keychron.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
|
||||
|
@ -16,37 +16,60 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "action.h"
|
||||
#include "stdint.h"
|
||||
|
||||
#ifdef VIA_ENABLE
|
||||
# include "via.h"
|
||||
#endif
|
||||
|
||||
#include "quantum_keycodes.h"
|
||||
|
||||
enum custom_keycodes {
|
||||
KC_LOPTN = QK_KB_2, // TECH DEBT: Starts at QK_KB_2 to maintain ordering with VIA definitions. See #19884. Revert to QK_KB_0 when VIA catches up with QMK.
|
||||
// clang-format off
|
||||
enum {
|
||||
KC_LOPTN = QK_KB_0,
|
||||
KC_ROPTN,
|
||||
KC_LCMMD,
|
||||
KC_RCMMD,
|
||||
KC_SIRI,
|
||||
KC_MCTRL,
|
||||
KC_LNPAD,
|
||||
KC_TASK_VIEW,
|
||||
KC_FILE_EXPLORER,
|
||||
KC_SCREEN_SHOT,
|
||||
KC_CORTANA
|
||||
KC_CORTANA,
|
||||
KC_SIRI,
|
||||
#ifdef LK_WIRELESS_ENABLE
|
||||
BT_HST1,
|
||||
BT_HST2,
|
||||
BT_HST3,
|
||||
P2P4G,
|
||||
BAT_LVL,
|
||||
#else
|
||||
BT_HST1 = _______,
|
||||
BT_HST2 = _______,
|
||||
BT_HST3 = _______,
|
||||
P2P4G = _______,
|
||||
BAT_LVL = _______,
|
||||
#endif
|
||||
#ifdef DANANLOG_MATRIX
|
||||
PROF1,
|
||||
PROF2,
|
||||
PROF3,
|
||||
#else
|
||||
PROF1 = _______,
|
||||
PROF2 = _______,
|
||||
PROF3 = _______,
|
||||
#endif
|
||||
NEW_SAFE_RANGE,
|
||||
};
|
||||
|
||||
#define KC_TASK KC_TASK_VIEW
|
||||
#define KC_FLXP KC_FILE_EXPLORER
|
||||
#define KC_FILE KC_FILE_EXPLORER
|
||||
#define KC_SNAP KC_SCREEN_SHOT
|
||||
#define KC_CRTA KC_CORTANA
|
||||
#define KC_CTANA KC_CORTANA
|
||||
|
||||
typedef struct PACKED {
|
||||
uint8_t len;
|
||||
uint8_t keycode[3];
|
||||
} key_combination_t;
|
||||
|
||||
void housekeeping_task_keychron(void);
|
||||
bool process_record_keychron(uint16_t keycode, keyrecord_t *record);
|
||||
bool process_record_keychron_common(uint16_t keycode, keyrecord_t *record);
|
||||
void keychron_common_task(void);
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
void encoder_cb_init(void);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue