Skip to content

Instantly share code, notes, and snippets.

@CountParadox
Created September 27, 2022 01:26
Show Gist options
  • Save CountParadox/1122c62f5ff87a7f5c4ab2820b56d910 to your computer and use it in GitHub Desktop.
Save CountParadox/1122c62f5ff87a7f5c4ab2820b56d910 to your computer and use it in GitHub Desktop.
This boards been a pain in the ass
ymdk yd60mq vial kle
http://www.keyboard-layout-editor.com/#/gists/a365ba6b0d51de985394fc2a8ace7e2f
@CountParadox
Copy link
Author

yd60mq config.h

#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 5
#define MATRIX_COLS 15

/* key matrix pins */
#define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
#define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, F7, B5, B4, D7, D6, B3, B2 }

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

/* number of backlight levels */
#define BACKLIGHT_PIN B7
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 5
#endif

/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

/* prevent stuck modifiers */

#define RGB_DI_PIN E2
#define RGBLIGHT_ANIMATIONS
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
// RGBLED_NUM is defined in revisions

@CountParadox
Copy link
Author

yd60mq qmk info.json

{
    "keyboard_name": "YD60MQ",
    "maintainer": "VK2EVA",
    "usb": {
        "vid": "0x594D",
        "pid": "0x604D"
    },
    "url": "",
    "layouts": {
        "LAYOUT_all": {
            "layout": [
                { "matrix": [0, 0], "x": 0.0, "y": 0.0 },
                { "matrix": [0, 1], "x": 1.0, "y": 0.0 },
                { "matrix": [0, 2], "x": 2.0, "y": 0.0 },
                { "matrix": [0, 3], "x": 3.0, "y": 0.0 },
                { "matrix": [0, 4], "x": 4.0, "y": 0.0 },
                { "matrix": [0, 5], "x": 5.0, "y": 0.0 },
                { "matrix": [0, 6], "x": 6.0, "y": 0.0 },
                { "matrix": [0, 7], "x": 7.0, "y": 0.0 },
                { "matrix": [0, 8], "x": 8.0, "y": 0.0 },
                { "matrix": [0, 9], "x": 9.0, "y": 0.0 },
                { "matrix": [0, 10], "x": 10.0, "y": 0.0 },
                { "matrix": [0, 11], "x": 11.0, "y": 0.0 },
                { "matrix": [0, 12], "x": 12.0, "y": 0.0 },
                { "matrix": [0, 13], "w": 2.0, "x": 13.0, "y": 0.0 },
                { "matrix": [1, 0], "w": 1.5, "x": 0.0, "y": 1.0 },
                { "matrix": [1, 1], "x": 1.5, "y": 1.0 },
                { "matrix": [1, 2], "x": 2.5, "y": 1.0 },
                { "matrix": [1, 3], "x": 3.5, "y": 1.0 },
                { "matrix": [1, 4], "x": 4.5, "y": 1.0 },
                { "matrix": [1, 5], "x": 5.5, "y": 1.0 },
                { "matrix": [1, 6], "x": 6.5, "y": 1.0 },
                { "matrix": [1, 7], "x": 7.5, "y": 1.0 },
                { "matrix": [1, 8], "x": 8.5, "y": 1.0 },
                { "matrix": [1, 9], "x": 9.5, "y": 1.0 },
                { "matrix": [1, 10], "x": 10.5, "y": 1.0 },
                { "matrix": [1, 11], "x": 11.5, "y": 1.0 },
                { "matrix": [1, 12], "x": 12.5, "y": 1.0 },
                { "matrix": [1, 13], "w": 1.5, "x": 13.5, "y": 1.0 },
                { "matrix": [2, 0], "w": 1.75, "x": 0.0, "y": 2.0 },
                { "matrix": [2, 1], "x": 1.75, "y": 2.0 },
                { "matrix": [2, 2], "x": 2.75, "y": 2.0 },
                { "matrix": [2, 3], "x": 3.75, "y": 2.0 },
                { "matrix": [2, 4], "x": 4.75, "y": 2.0 },
                { "matrix": [2, 5], "x": 5.75, "y": 2.0 },
                { "matrix": [2, 6], "x": 6.75, "y": 2.0 },
                { "matrix": [2, 7], "x": 7.75, "y": 2.0 },
                { "matrix": [2, 8], "x": 8.75, "y": 2.0 },
                { "matrix": [2, 9], "x": 9.75, "y": 2.0 },
                { "matrix": [2, 10], "x": 10.75, "y": 2.0 },
                { "matrix": [2, 11], "x": 11.75, "y": 2.0 },
                { "matrix": [2, 13], "w": 2.25, "x": 12.75, "y": 2.0 },
                { "matrix": [3, 0], "w": 2.0, "x": 0.0, "y": 3.0 },
                { "matrix": [3, 2], "x": 2.0, "y": 3.0 },
                { "matrix": [3, 3], "x": 3.0, "y": 3.0 },
                { "matrix": [3, 4], "x": 4.0, "y": 3.0 },
                { "matrix": [3, 5], "x": 5.0, "y": 3.0 },
                { "matrix": [3, 6], "x": 6.0, "y": 3.0 },
                { "matrix": [3, 7], "x": 7.0, "y": 3.0 },
                { "matrix": [3, 8], "x": 8.0, "y": 3.0 },
                { "matrix": [3, 9], "x": 9.0, "y": 3.0 },
                { "matrix": [3, 10], "x": 10.0, "y": 3.0 },
                { "matrix": [3, 11], "x": 11.0, "y": 3.0 },
                { "matrix": [3, 12], "x": 12.0, "y": 3.0 },
                { "matrix": [3, 13], "x": 13.0, "y": 3.0 },
                { "matrix": [3, 14], "x": 14.0, "y": 3.0 },
                { "matrix": [4, 0], "w": 1.25, "x": 0.0, "y": 4.0 },
                { "matrix": [4, 1], "w": 1.25, "x": 1.25, "y": 4.0 },
                { "matrix": [4, 2], "w": 1.25, "x": 2.5, "y": 4.0 },
                { "matrix": [4, 7], "w": 6.25, "x": 3.75, "y": 4.0 },
                { "matrix": [4, 9], "x": 10.0, "y": 4.0 },
                { "matrix": [4, 10], "x": 11.0, "y": 4.0 },
                { "matrix": [4, 11], "x": 12.0, "y": 4.0 },
                { "matrix": [4, 12], "x": 13.0, "y": 4.0 },
                { "matrix": [4, 13], "x": 14.0, "y": 4.0 }
            ]
        }
    }
}

@CountParadox
Copy link
Author

Apparently this is the pinout of the additional pins on the board
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment