forked from mirrors/qmk_userspace
Add Q5/Q6/Q8/K5/K7/V5 Max
This commit is contained in:
parent
f45cb07e26
commit
0b812c9dc0
160 changed files with 10423 additions and 187 deletions
93
keyboards/keychron/k5_max/config.h
Normal file
93
keyboards/keychron/k5_max/config.h
Normal file
|
@ -0,0 +1,93 @@
|
|||
/* Copyright 2024 @ 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
|
||||
* 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
|
||||
|
||||
/* Caps lock LED */
|
||||
#define LED_CAPS_LOCK_PIN A13
|
||||
#define LED_PIN_ON_STATE 1
|
||||
|
||||
#ifdef LK_WIRELESS_ENABLE
|
||||
/* Hardware configuration */
|
||||
# define P2P4_MODE_SELECT_PIN A10
|
||||
# define BT_MODE_SELECT_PIN A9
|
||||
|
||||
# define LKBT51_RESET_PIN C4
|
||||
# define LKBT51_INT_INPUT_PIN B1
|
||||
# define BLUETOOTH_INT_OUTPUT_PIN A4
|
||||
|
||||
# define USB_POWER_SENSE_PIN B0
|
||||
# define USB_POWER_CONNECTED_LEVEL 0
|
||||
|
||||
# define BAT_CHARGING_PIN B13
|
||||
# define BAT_CHARGING_LEVEL 0
|
||||
|
||||
# define BAT_LOW_LED_PIN B12
|
||||
# define BAT_LOW_LED_PIN_ON_STATE 1
|
||||
|
||||
# define BT_HOST_DEVICES_COUNT 3
|
||||
|
||||
# define BT_HOST_LED_PIN_LIST \
|
||||
{ C9, C9, C9 }
|
||||
# define HOST_LED_PIN_ON_STATE 0
|
||||
|
||||
# define P24G_HOST_DEVICES_COUNT 1
|
||||
|
||||
# define P24G_HOST_LED_PIN_LIST \
|
||||
{ A8 }
|
||||
|
||||
# if defined(RGB_MATRIX_ENABLE) || defined(LED_MATRIX_ENABLE)
|
||||
|
||||
# define LED_DRIVER_SHUTDOWN_PIN B7
|
||||
|
||||
# define BT_HOST_LED_MATRIX_LIST \
|
||||
{ 21, 22, 23 }
|
||||
|
||||
# define P2P4G_HOST_LED_MATRIX_LIST \
|
||||
{ 24 }
|
||||
|
||||
# define BAT_LEVEL_LED_LIST \
|
||||
{ 21, 22, 23, 24, 25, 26, 27, 28, 29, 30 }
|
||||
|
||||
/* Backlit disable timeout when keyboard is disconnected(unit: second) */
|
||||
# define DISCONNECTED_BACKLIGHT_DISABLE_TIMEOUT 40
|
||||
|
||||
/* Backlit disable timeout when keyboard is connected(unit: second) */
|
||||
# define CONNECTED_BACKLIGHT_DISABLE_TIMEOUT 600
|
||||
|
||||
/* Reinit LED driver on tranport changed */
|
||||
# define REINIT_LED_DRIVER 1
|
||||
|
||||
# endif
|
||||
|
||||
/* Keep USB connection in blueooth mode */
|
||||
# define KEEP_USB_CONNECTION_IN_WIRELESS_MODE
|
||||
|
||||
/* Enable bluetooth NKRO */
|
||||
# define WIRELESS_NKRO_ENABLE
|
||||
|
||||
/* Raw hid command for factory test and bluetooth DFU */
|
||||
# define RAW_HID_CMD 0xAA ... 0xAB
|
||||
#else
|
||||
/* Raw hid command for factory test */
|
||||
# define RAW_HID_CMD 0xAB
|
||||
#endif
|
||||
|
||||
/* Factory test keys */
|
||||
#define FN_KEY_1 MO(1)
|
||||
#define FN_KEY_2 MO(3)
|
||||
|
||||
#define MATRIX_IO_DELAY 10
|
Loading…
Add table
Add a link
Reference in a new issue