Open exrector opened 3 months ago
qmk compile -kb exrector -km default
Ψ Compiling keymap with gmake -r -R -f builddefs/build_keyboard.mk -s KEYBOARD=exrector KEYMAP=default KEYBOARD_FILESAFE=exrector TARGET=exrector_default INTERMEDIATE_OUTPUT=.build/obj_exrector_default VERBOSE=false COLOR=true SILENT=false QMK_BIN="qmk"
☒ Not including data from file: keyboards/exrector/keyboard.json ☒ matrix_pins.cols.0: '23' is not valid under any of the given schemas ☒ 'matrix_size' Traceback (most recent call last): File "/opt/homebrew/Cellar/qmk/1.1.5_1/libexec/lib/python3.12/site-packages/milc/milc.py", line 604, in call return self.call() ^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/qmk/1.1.5_1/libexec/lib/python3.12/site-packages/milc/milc.py", line 609, in call return self._subcommand(self) ^^^^^^^^^^^^^^^^^^^^^^ File "/Users/exrector/qmk_firmware/lib/python/qmk/cli/generate/rules_mk.py", line 65, in generate_rules_mk kb_info_json = dotty(info_json(cli.args.keyboard)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/exrector/qmk_firmware/lib/python/qmk/info.py", line 256, in info_json info_data = _extract_led_config(info_data, str(keyboard)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/exrector/qmk_firmware/lib/python/qmk/info.py", line 758, in _extract_led_config cols = info_data['matrix_size']['cols']
KeyError: 'matrix_size'
* [ERRORS]
builddefs/build_keyboard.mk:226: *** Platform not defined. Stop.
exrector@MacBook-Pro-A ~ %
I just had a similar problem and for me it helped to define the matrix size and pins in the config.h. Not a clean fix since I want everything in the info.json file but it works for now.
<img width="1141" alt="Снимок экрана 2024-08-25 в 14 38 59" src="https://github.com/user-atta
chments/assets/517a6e41-e0ab-41c6-bc5a-1fa785b9c1c6">
As you can see, I did all the dirty work. That was actually the most exciting part. I was the researcher. But now it was time for the program part. This is the most boring and confusing part. At the end of my research, I got two files. And I get errors that I know nothing about. I will be glad for any help to continue my project. Thanks
keyboard.json
https://github.com/exrector/informer213/blob/main/keyboard.json
{ "keyboard_name": "informer213", "manufacturer": "exrector", "url": "", "maintainer": "qmk", "usb": { "vid": "0xFEED", "pid": "0x0000", "device_version": "1.0.0" }, "processor": "cortex-m7", "bootloader": "qmk-dfu", "matrix_pins": { "rows": ["2", "3", "4", "5", "6", "7", "8", "9"], "cols": ["23", "22", "21", "20", "19", "18", "17", "16", "15", "14", "27", "28", "29"] }, "diode_direction": "ROW2COL", "features": { "bootmagic": true, "mousekey": true, "extrakey": true, "console": false, "command": false, "nkro": false, "backlight": false, "rgblight": false, "audio": false, "key_lock": false }, "layouts": { "LAYOUT": { "layout": [ {"label": "K00 (2,23)", "matrix": [0, 0], "x": 0, "y": 0}, {"label": "K01 (2,22)", "matrix": [0, 1], "x": 1, "y": 0}, {"label": "K02 (2,21)", "matrix": [0, 2], "x": 2, "y": 0}, {"label": "K03 (2,20)", "matrix": [0, 3], "x": 3, "y": 0}, {"label": "K04 (2,19)", "matrix": [0, 4], "x": 4, "y": 0}, {"label": "K05 (2,18)", "matrix": [0, 5], "x": 5, "y": 0}, {"label": "K06 (2,17)", "matrix": [0, 6], "x": 6, "y": 0}, {"label": "K07 (2,16)", "matrix": [0, 7], "x": 7, "y": 0}, {"label": "K08 (2,15)", "matrix": [0, 8], "x": 8, "y": 0}, {"label": "K09 (2,14)", "matrix": [0, 9], "x": 9, "y": 0}, {"label": "K0A (2,27)", "matrix": [0, 10], "x": 10, "y": 0}, {"label": "K0B (2,28)", "matrix": [0, 11], "x": 11, "y": 0}, {"label": "K6B (8,28)", "matrix": [6, 11], "x": 12, "y": 0}, {"label": "K10 (3,23)", "matrix": [1, 0], "x": 0, "y": 1}, {"label": "K11 (3,22)", "matrix": [1, 1], "x": 1, "y": 1}, {"label": "K12 (3,21)", "matrix": [1, 2], "x": 2, "y": 1}, {"label": "K13 (3,20)", "matrix": [1, 3], "x": 3, "y": 1}, {"label": "K14 (3,19)", "matrix": [1, 4], "x": 4, "y": 1}, {"label": "K15 (3,18)", "matrix": [1, 5], "x": 5, "y": 1}, {"label": "K16 (3,17)", "matrix": [1, 6], "x": 6, "y": 1}, {"label": "K17 (3,16)", "matrix": [1, 7], "x": 7, "y": 1}, {"label": "K18 (3,15)", "matrix": [1, 8], "x": 8, "y": 1}, {"label": "K19 (3,14)", "matrix": [1, 9], "x": 9, "y": 1}, {"label": "K1A (3,27)", "matrix": [1, 10], "x": 10, "y": 1}, {"label": "K1B (3,28)", "matrix": [1, 11], "x": 11, "y": 1}, {"label": "K6A (8,27)", "matrix": [6, 10], "x": 12, "y": 1}, {"label": "K20 (4,23)", "matrix": [2, 0], "x": 0, "y": 2}, {"label": "K21 (4,22)", "matrix": [2, 1], "x": 1, "y": 2}, {"label": "K22 (4,21)", "matrix": [2, 2], "x": 2, "y": 2}, {"label": "K23 (4,20)", "matrix": [2, 3], "x": 3, "y": 2}, {"label": "K24 (4,19)", "matrix": [2, 4], "x": 4, "y": 2}, {"label": "K25 (4,18)", "matrix": [2, 5], "x": 5, "y": 2}, {"label": "K26 (4,17)", "matrix": [2, 6], "x": 6, "y": 2}, {"label": "K27 (4,16)", "matrix": [2, 7], "x": 7, "y": 2}, {"label": "K28 (4,15)", "matrix": [2, 8], "x": 8, "y": 2}, {"label": "K29 (4,14)", "matrix": [2, 9], "x": 9, "y": 2}, {"label": "K2A (4,27)", "matrix": [2, 10], "x": 10, "y": 2}, {"label": "K2B (4,28)", "matrix": [2, 11], "x": 11, "y": 2}, {"label": "K69 (8,14)", "matrix": [6, 9], "x": 12, "y": 2}, {"label": "K30 (5,23)", "matrix": [3, 0], "x": 0.5, "y": 3}, {"label": "K31 (5,22)", "matrix": [3, 1], "x": 1.5, "y": 3}, {"label": "K32 (5,21)", "matrix": [3, 2], "x": 2.5, "y": 3}, {"label": "K33 (5,20)", "matrix": [3, 3], "x": 3.5, "y": 3}, {"label": "K34 (5,19)", "matrix": [3, 4], "x": 4.5, "y": 3}, {"label": "K35 (5,18)", "matrix": [3, 5], "x": 5.5, "y": 3}, {"label": "K36 (5,17)", "matrix": [3, 6], "x": 6.5, "y": 3}, {"label": "K37 (5,16)", "matrix": [3, 7], "x": 7.5, "y": 3}, {"label": "K38 (5,15)", "matrix": [3, 8], "x": 8.5, "y": 3}, {"label": "K39 (5,14)", "matrix": [3, 9], "x": 9.5, "y": 3}, {"label": "K3A (5,27)", "matrix": [3, 10], "x": 10.5, "y": 3}, {"label": "K3B (5,28)", "matrix": [3, 11], "x": 11.5, "y": 3}, {"label": "K70 (9,23)", "matrix": [7, 0], "x": 0, "y": 4}, {"label": "K41 (6,22)", "matrix": [4, 1], "x": 1, "y": 4}, {"label": "K42 (6,21)", "matrix": [4, 2], "x": 2, "y": 4}, {"label": "K43 (6,20)", "matrix": [4, 3], "x": 3, "y": 4}, {"label": "K44 (6,19)", "matrix": [4, 4], "x": 4, "y": 4}, {"label": "K45 (6,18)", "matrix": [4, 5], "x": 5, "y": 4}, {"label": "K46 (6,17)", "matrix": [4, 6], "x": 6, "y": 4}, {"label": "K47 (6,16)", "matrix": [4, 7], "x": 7, "y": 4}, {"label": "K48 (6,15)", "matrix": [4, 8], "x": 8, "y": 4}, {"label": "K49 (6,14)", "matrix": [4, 9], "x": 9, "y": 4}, {"label": "K4A (6,27)", "matrix": [4, 10], "x": 10, "y": 4}, {"label": "K4B (6,28)", "matrix": [4, 11], "x": 11, "y": 4}, {"label": "K68 (8,15)", "matrix": [6, 8], "x": 12, "y": 4}, {"label": "K2C (4,29)", "matrix": [2, 12], "x": 0, "y": 5, "w": 1.5}, {"label": "K52 (7,21)", "matrix": [5, 2], "x": 1.5, "y": 5}, {"label": "K53 (7,20)", "matrix": [5, 3], "x": 2.5, "y": 5}, {"label": "K54 (7,19)", "matrix": [5, 4], "x": 3.5, "y": 5}, {"label": "K55 (7,18)", "matrix": [5, 5], "x": 4.5, "y": 5}, {"label": "K56 (7,17)", "matrix": [5, 6], "x": 5.5, "y": 5}, {"label": "K57 (7,16)", "matrix": [5, 7], "x": 6.5, "y": 5}, {"label": "K58 (7,15)", "matrix": [5, 8], "x": 7.5, "y": 5}, {"label": "K59 (7,14)", "matrix": [5, 9], "x": 8.5, "y": 5}, {"label": "K5A (7,27)", "matrix": [5, 10], "x": 9.5, "y": 5}, {"label": "K5B (7,28)", "matrix": [5, 11], "x": 10.5, "y": 5}, {"label": "K4C (6,29)", "matrix": [4, 12], "x": 11.5, "y": 5, "w": 1.5}, {"label": "K50 (7,23)", "matrix": [5, 0], "x": 0, "y": 6, "w": 1.5}, {"label": "K3C (5,29)", "matrix": [3, 12], "x": 1.5, "y": 6}, {"label": "K51 (7,22)", "matrix": [5, 1], "x": 2.5, "y": 6, "w": 8}, {"label": "K7C (9,29)", "matrix": [7, 12], "x": 10.5, "y": 6}, {"label": "K67 (8,16)", "matrix": [6, 7], "x": 11.5, "y": 6, "w": 1.5} ] } }, "meta": "https://noroadsleft.github.io/kbf_qmk_converter/" }
keymap.c
https://github.com/exrector/informer213/blob/main/keymap.c
// Copyright 2024 %YOUR_FULL_NAME% (@%YOUR_GITHUB_USERNAME%) // SPDX-License-Identifier: GPL-2.0-or-later
include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [0] = LAYOUT( KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_LEFT, KC_UP, KC_DOWN, KC_RGHT, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_SPC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_EXLM, KC_BSPC, XXXXXXX, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_RSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, XXXXXXX, KC_CAPS, KC_SPC, KC_LALT, KC_ENT ), [1] = LAYOUT( _, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KCF12, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , QK_BOOT, , , , ) };