Skip to content

Commit

Permalink
修正G84-4100按键阵列和配置不正确的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-kirisame committed May 24, 2020
1 parent da5c5c7 commit 0590606
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion keyboard/g84-4100/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ SRC_FILES += keymap_plain.c

# 配置项:功能选项
# 关于更多的可配置项目,请参考doc目录下的相应文档
BOOTMAGIC_ENABLE = yes # 启用Bootmagic
BOOTMAGIC_ENABLE = no # 禁用Bootmagic
EXTRAKEY_ENABLE = yes # 启用媒体键功能
NKRO_ENABLE = yes # 启用USB的全键无冲功能
USB_6KRO_ENABLE = yes # 启用USB的六键无冲功能
Expand Down
8 changes: 7 additions & 1 deletion keyboard/g84-4100/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MACRO_STORAGE /* 启用宏存储功能 */
#define CONFIG_STORAGE /* 启用配置存储功能 */
#define BUTTONLESS_DFU /* 启用免按钮DFU */
#define BOOTCHECK_ENABLE // 启用Bootchek

// #define DEBUG_SKIP_PWRON_CHECK /* 直接开机而跳过开机条件检测,用于调试 */

Expand Down Expand Up @@ -83,6 +84,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// #define LED_STATUS_CHARGING 23
#define LED_STATUS_USB 23
// #define LED_POSITIVE // LED下拉驱动
#define LED_DFU_INIT 25
#define LED_DFU_START 24
#define LED_DFU_FINISH 23
// #define LED_DFU_POSITIVE
#define LED_NO_DEINIT // 不要deinit端口,可以避免部分IO弱下拉导致灯光无法关闭的问题

// USB UART 传输配置
#define HAS_USB // 启用与CH554的通信支持
Expand All @@ -102,7 +108,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROWS 8 /* 硬件阵列行数 */
#define MATRIX_COLS 14 /* 硬件阵列列数 */
static const uint8_t row_pin_array[MATRIX_ROWS] = { 9, 8, 7, 6, 5, 4, 3, 11 };
static const uint8_t column_pin_array[MATRIX_COLS] = { 16, 17, 18, 19, 20, 30, 29, 28, 22, 21, 15, 14, 13, 12 };
static const uint8_t column_pin_array[MATRIX_COLS] = { 16, 17, 18, 19, 20, 21, 22, 28, 29, 30, 15, 14, 13, 12 };
#define ROW_IN // 键盘阵列的二极管方向是从COL->ROW

/* define if matrix has ghost */
Expand Down

0 comments on commit 0590606

Please sign in to comment.