[Keyboard] Add ymd67 keyboard (#7631)

* [Keyboard] Add ymd67 keyboard

* Apply suggestions from code review

* Apply more suggestions from code review
This commit is contained in:
Zach 2019-12-15 14:27:42 -05:00 committed by James Young
parent b54722cc63
commit 876e544433
8 changed files with 208 additions and 0 deletions

View File

@ -0,0 +1,46 @@
#pragma once
#include "config_common.h"
/* USB Device descriptor parameter */
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x6060
#define DEVICE_VER 0x0001
#define MANUFACTURER YMDK
#define PRODUCT YMD67
#define DESCRIPTION Keyboard
/* 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 }
#define UNUSED_PINS
/* 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
#ifdef RGB_DI_PIN
#define RGBLIGHT_ANIMATIONS
#define RGBLED_NUM 12
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#endif

View File

@ -0,0 +1,81 @@
{
"keyboard_name": "ymd67",
"url": "https://www.aliexpress.com/item/4000311811121.html",
"maintainer": "SwiftLawnGnome",
"width": 15,
"height": 5,
"layouts": {
"LAYOUT": {
"key_count": 67,
"layout": [
{"label": "Esc", "x": 0, "y": 0},
{"label": "!", "x": 1, "y": 0},
{"label": "@", "x": 2, "y": 0},
{"label": "#", "x": 3, "y": 0},
{"label": "$", "x": 4, "y": 0},
{"label": "%", "x": 5, "y": 0},
{"label": "^", "x": 6, "y": 0},
{"label": "&", "x": 7, "y": 0},
{"label": "*", "x": 8, "y": 0},
{"label": "(", "x": 9, "y": 0},
{"label": ")", "x": 10, "y": 0},
{"label": "_", "x": 11, "y": 0},
{"label": "+", "x": 12, "y": 0},
{"label": "~", "x": 13, "y": 0},
{"label": "Bs", "x": 14, "y": 0},
{"label": "Tab", "x": 0, "y": 1, "w": 1.5},
{"label": "Q", "x": 1.5, "y": 1},
{"label": "W", "x": 2.5, "y": 1},
{"label": "E", "x": 3.5, "y": 1},
{"label": "R", "x": 4.5, "y": 1},
{"label": "T", "x": 5.5, "y": 1},
{"label": "Y", "x": 6.5, "y": 1},
{"label": "U", "x": 7.5, "y": 1},
{"label": "I", "x": 8.5, "y": 1},
{"label": "O", "x": 9.5, "y": 1},
{"label": "P", "x": 10.5, "y": 1},
{"label": "{", "x": 11.5, "y": 1},
{"label": "}", "x": 12.5, "y": 1},
{"label": "|", "x": 13.5, "y": 1, "w": 1.5},
{"label": "Caps Lock", "x": 0, "y": 2, "w": 1.75},
{"label": "A", "x": 1.75, "y": 2},
{"label": "S", "x": 2.75, "y": 2},
{"label": "D", "x": 3.75, "y": 2},
{"label": "F", "x": 4.75, "y": 2},
{"label": "G", "x": 5.75, "y": 2},
{"label": "H", "x": 6.75, "y": 2},
{"label": "J", "x": 7.75, "y": 2},
{"label": "K", "x": 8.75, "y": 2},
{"label": "L", "x": 9.75, "y": 2},
{"label": ":", "x": 10.75, "y": 2},
{"label": "\"", "x": 11.75, "y": 2},
{"label": "Enter", "x": 12.75, "y": 2, "w": 2.25},
{"label": "Shift", "x": 0, "y": 3, "w": 2},
{"label": "Z", "x": 2, "y": 3},
{"label": "X", "x": 3, "y": 3},
{"label": "C", "x": 4, "y": 3},
{"label": "V", "x": 5, "y": 3},
{"label": "B", "x": 6, "y": 3},
{"label": "N", "x": 7, "y": 3},
{"label": "M", "x": 8, "y": 3},
{"label": "<", "x": 9, "y": 3},
{"label": ">", "x": 10, "y": 3},
{"label": "?", "x": 11, "y": 3},
{"label": "Shift", "x": 12, "y": 3},
{"label": "Up", "x": 13, "y": 3},
{"label": "Del", "x": 14, "y": 3},
{"label": "Ctrl", "x": 0, "y": 4, "w": 1.75},
{"label": "Win", "x": 1.75, "y": 4, "w": 1.25},
{"label": "Alt", "x": 3, "y": 4, "w": 1.25},
{"x": 4.25, "y": 4, "w": 1.25},
{"x": 5.5, "y": 4, "w": 3},
{"label": "Alt", "x": 8.5, "y": 4, "w": 1.25},
{"label": "Ctrl", "x": 9.75, "y": 4, "w": 1.25},
{"x": 11, "y": 4},
{"label": "Left", "x": 12, "y": 4},
{"label": "Down", "x": 13, "y": 4},
{"label": "Right", "x": 14, "y": 4}
]
}
}
}

View File

@ -0,0 +1,17 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(KC_ESC, 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_GRV, KC_BSPC,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
KC_CAPS, 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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_DEL,
KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_SPC, MO(1), KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
[1] = LAYOUT(RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_DEL,
KC_TRNS, RGB_TOG, KC_UP, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, BL_DEC, BL_TOGG, BL_INC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS)
};

View File

@ -0,0 +1,5 @@
# Default YMD67 layout
![YMD67 layout image](https://i.imgur.com/YghD1LH.png)
This is the default layout the keyboard comes with.

View File

@ -0,0 +1,15 @@
# YMD67
![YMD67](https://ae01.alicdn.com/kf/Hbb4b59f9ab94484ab396a8e0200968ecd.jpg)
A low-profile minila keyboard kit by [YMDK](https://ymdk.aliexpress.com/store/429151?spm=2114.10010108.0.0.3ab23641lIkgzm). Available in multiple colors and has RGB side-lighting.
* Keyboard Maintainer: [Zach Shaftel](https://github.com/swiftlawngnome)
* Hardware Supported: YMD67
* Hardware Availability: [AliExpress](https://www.aliexpress.com/item/4000311811121.html)
Make example for this keyboard (after setting up your build environment):
make ymdk/ymd67:default
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).

View File

@ -0,0 +1,26 @@
# MCU name
MCU = atmega32u4
# Bootloader selection
# Teensy halfkay
# Pro Micro caterina
# Atmel DFU atmel-dfu
# LUFA DFU lufa-dfu
# QMK DFU qmk-dfu
# ATmega32A bootloadHID
# ATmega328P USBasp
BOOTLOADER = atmel-dfu
# Build Options
# comment out to disable the options.
#
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
MOUSEKEY_ENABLE = no # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = yes # Commands for debug and configuration
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
AUDIO_ENABLE = no
RGBLIGHT_ENABLE = yes

View File

@ -0,0 +1 @@
#include "ymd67.h"

View File

@ -0,0 +1,17 @@
#pragma once
#include "quantum.h"
#define LAYOUT( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, \
K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \
K40, K41, K42, K43, K47, K48, K49, K4A, K4B, K4C, K4D \
) { \
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, KC_NO }, \
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, K2D, KC_NO }, \
{ K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \
{ K40, K41, K42, K43, KC_NO, KC_NO, KC_NO, K47, K48, K49, K4A, K4B, K4C, K4D, KC_NO } \
}