为 sick68 键盘刷新 QMK 固件,从未声明的 MCU 引脚中获取错误

Flashing QMK firmware for sick68 keyboard, getting error from undeclared MCU pins

我正在尝试为 teensy LC 上的 sick68 键盘刷新固件。我已经手动连接好所有东西,并试图在 Teensy LC 上闪光。我收到一条错误消息,提示我正在尝试使用未声明的引脚 B16、B17、A1、A2、E30。以下是我如何定义行引脚和列引脚:

#define MATRIX_ROW_PINS { B16, B17, D0, A1, A2}

#define MATRIX_COL_PINS { C6, D7, E6, B4, B5, B0, D5, B6, B2, B3, B1, F7, F6, F5, F4 }

这是错误,我尝试 "qmk compile"

Ψ Compiling keymap with make -j 1 handwired/sick68:default


QMK Firmware 0.13.32
Making handwired/sick68 with keymap default

avr-gcc (GCC) 5.4.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiling: keyboards/handwired/sick68/sick68.c                                                      [OK]
Compiling: keyboards/handwired/sick68/keymaps/default/keymap.c                                      [OK]
Compiling: quantum/quantum.c                                                                        [OK]
Compiling: quantum/send_string.c                                                                    [OK]
Compiling: quantum/bitwise.c                                                                        [OK]
Compiling: quantum/led.c                                                                            [OK]
Compiling: quantum/keymap_common.c                                                                  [OK]
Compiling: quantum/keycode_config.c                                                                 [OK]
Compiling: quantum/bootmagic/magic.c                                                                [OK]
Compiling: quantum/matrix_common.c                                                                  [OK]
Compiling: quantum/matrix.c                                                                        In file included from <command-line>:0:0:

./keyboards/handwired/sick68/config.h:48:27: error: ‘B16’ undeclared here (not in a function)
 #define MATRIX_ROW_PINS { B16, B17, D0, A1, A2}

                           ^
quantum/matrix.c:27:44: note: in expansion of macro ‘MATRIX_ROW_PINS’
 static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
                                            ^
./keyboards/handwired/sick68/config.h:48:32: error: ‘B17’ undeclared here (not in a function)
 #define MATRIX_ROW_PINS { B16, B17, D0, A1, A2}
                                ^
quantum/matrix.c:27:44: note: in expansion of macro ‘MATRIX_ROW_PINS’
 static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
                                            ^
./keyboards/handwired/sick68/config.h:48:41: error: ‘A1’ undeclared here (not in a function)
 #define MATRIX_ROW_PINS { B16, B17, D0, A1, A2}
                                         ^
quantum/matrix.c:27:44: note: in expansion of macro ‘MATRIX_ROW_PINS’
 static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
                                            ^
./keyboards/handwired/sick68/config.h:48:45: error: ‘A2’ undeclared here (not in a function)
 #define MATRIX_ROW_PINS { B16, B17, D0, A1, A2}
                                             ^
quantum/matrix.c:27:44: note: in expansion of macro ‘MATRIX_ROW_PINS’
 static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
                                            ^
./keyboards/handwired/sick68/config.h:52:63: error: ‘E30’ undeclared here (not in a function)
 #define MATRIX_COL_PINS { D7, D4, D2, D3, C3, C4, C6, C7, B1, E30, D1, C0, B0, B1, B3}
                                                               ^
quantum/matrix.c:28:44: note: in expansion of macro ‘MATRIX_COL_PINS’
 static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
                                            ^
 [ERRORS]
 | 
 | 
 | 
make[1]: *** [tmk_core/rules.mk:436: .build/obj_handwired_sick68_default/quantum/matrix.o] Error 1
make: *** [Makefile:539: handwired/sick68:default] Error 1


您是否配置了 qmk 来为 Teensy LC 构建?查看 rules.mk,Sick68 基于 Arduino Pro Micro,它在架构上与 Teensy 系列非常不同(AVR 与 Feescale ARM-Cortex-M0)。如果 qmk 配置为期望 atmega32u4,那么这将解释为什么它无法识别 MKL26Z64 的引脚名称。