Browse Source

[Keyboard] add YMDK40 AIR40 (#19276)

Co-authored-by: jack <0x6a73@protonmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
pull/19554/head
Dennis Kruyt 1 year ago
committed by GitHub
parent
commit
caca029e12
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 646 additions and 0 deletions
  1. +43
    -0
      keyboards/ymdk/ymd40/air40/air40.c
  2. +79
    -0
      keyboards/ymdk/ymd40/air40/air40.h
  3. +94
    -0
      keyboards/ymdk/ymd40/air40/config.h
  4. +284
    -0
      keyboards/ymdk/ymd40/air40/info.json
  5. +55
    -0
      keyboards/ymdk/ymd40/air40/keymaps/default/keymap.c
  6. +44
    -0
      keyboards/ymdk/ymd40/air40/keymaps/via/keymap.c
  7. +2
    -0
      keyboards/ymdk/ymd40/air40/keymaps/via/rules.mk
  8. +19
    -0
      keyboards/ymdk/ymd40/air40/readme.md
  9. +26
    -0
      keyboards/ymdk/ymd40/air40/rules.mk

+ 43
- 0
keyboards/ymdk/ymd40/air40/air40.c View File

@ -0,0 +1,43 @@
/* Copyright 2022 Dennis Kruyt (dennis@kruyt.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "air40.h"
#if defined(RGB_MATRIX_ENABLE)
led_config_t g_led_config = {
{
// Key Matrix to LED Index for center 2u
{11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0},
{23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12},
{35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24},
{50, 49, 48, 47, 46, 43, 41, 40, 39, 38, 37, 36}
}, {
// LED Index to Physical Position, more positions due to extra leds for other layout options
{ 0, 0}, { 20, 0}, { 40, 0}, {61, 0}, {81, 0}, {101, 0}, {122, 0}, {142, 0}, {162, 0}, {183, 0}, {203, 0}, {224, 0},
{ 0, 21}, { 20, 21}, { 40, 21}, {61, 21}, {81, 21}, {101, 21}, {122, 21}, {142, 21}, {162, 21}, {183, 21}, {203, 21}, {224, 21},
{ 0, 42}, { 20, 42}, { 40, 42}, {61, 42}, {81, 42}, {101, 42}, {122, 42}, {142, 42}, {162, 42}, {183, 42}, {203, 42}, {224, 42},
{ 0, 64}, { 20, 64}, { 40, 64}, {61, 64}, {81, 64}, {85, 64}, {94, 64}, {103, 64}, {112, 64}, {122, 64}, {142, 64}, {162, 64}, {183, 64}, {203, 64}, {224, 64}
}, {
// LED Index to Flag
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
1, 1, 1, 1, 1, 1 ,1 ,1, 1, 1, 1, 1, 1, 1, 1
}
};
#endif

+ 79
- 0
keyboards/ymdk/ymd40/air40/air40.h View File

@ -0,0 +1,79 @@
/* Copyright 2021 James Young (@noroadsleft)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "quantum.h"
#define LAYOUT_ortho_4x12( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B \
) { \
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B }, \
}
#define LAYOUT_ortho_4x12_2x2u( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
K30, K31, K32, K33, K34, K37, K38, K39, K3A, K3B \
) { \
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
{ K30, K31, K32, K33, K34, KC_NO, KC_NO, K37, K38, K39, K3A, K3B }, \
}
#define LAYOUT_ortho_4x12_1x2uR( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
K30, K31, K32, K33, K34, K35, K37, K38, K39, K3A, K3B \
) { \
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
{ K30, K31, K32, K33, K34, K35, KC_NO, K37, K38, K39, K3A, K3B }, \
}
#define LAYOUT_ortho_4x12_1x2uL( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
K30, K31, K32, K33, K34, K36, K37, K38, K39, K3A, K3B \
) { \
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
{ K30, K31, K32, K33, K34, KC_NO, K36, K37, K38, K39, K3A, K3B }, \
}
#define LAYOUT_ortho_4x12_1x2uC( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
K30, K31, K32, K33, K34, K35, K37, K38, K39, K3A, K3B \
) { \
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
{ K30, K31, K32, K33, K34, K35, KC_NO, K37, K38, K39, K3A, K3B }, \
}

+ 94
- 0
keyboards/ymdk/ymd40/air40/config.h View File

@ -0,0 +1,94 @@
/* Copyright 2021 Dennis Kruyt (dennis@kruyt.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "config_common.h"
/* key matrix size */
#define MATRIX_ROWS 4
#define MATRIX_COLS 12
/*
* Keyboard Matrix Assignments
*
* Change this to how you wired your keyboard
* COLS: AVR pins used for columns, left to right
* ROWS: AVR pins used for rows, top to bottom
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
#define MATRIX_ROW_PINS { D0, B3, B2, B1 }
#define MATRIX_COL_PINS { F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7 }
#define DIODE_DIRECTION COL2ROW
#define RGB_DI_PIN E2
#define RGB_MATRIX_LED_COUNT 51
#ifdef RGB_MATRIX_ENABLE
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 130 // Limit to vendor-recommended value
# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
// RGB Matrix Animation modes. Explicitly enabled
// For full list of effects, see:
// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects
# define ENABLE_RGB_MATRIX_ALPHAS_MODS
# define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN
# define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT
# define ENABLE_RGB_MATRIX_BREATHING
# define ENABLE_RGB_MATRIX_BAND_SAT
# define ENABLE_RGB_MATRIX_BAND_VAL
# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
# define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL
# define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT
# define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL
# define ENABLE_RGB_MATRIX_CYCLE_ALL
# define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT
# define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN
# define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON
# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN
# define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL
# define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL
# define ENABLE_RGB_MATRIX_CYCLE_SPIRAL
# define ENABLE_RGB_MATRIX_DUAL_BEACON
# define ENABLE_RGB_MATRIX_RAINBOW_BEACON
# define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS
# define ENABLE_RGB_MATRIX_RAINDROPS
# define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS
# define ENABLE_RGB_MATRIX_HUE_BREATHING
# define ENABLE_RGB_MATRIX_HUE_PENDULUM
# define ENABLE_RGB_MATRIX_HUE_WAVE
# define ENABLE_RGB_MATRIX_PIXEL_RAIN
# define ENABLE_RGB_MATRIX_PIXEL_FLOW
# define ENABLE_RGB_MATRIX_PIXEL_FRACTAL
// enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined
# define ENABLE_RGB_MATRIX_TYPING_HEATMAP
# define ENABLE_RGB_MATRIX_DIGITAL_RAIN
// enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
# define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
# define ENABLE_RGB_MATRIX_SPLASH
# define ENABLE_RGB_MATRIX_MULTISPLASH
# define ENABLE_RGB_MATRIX_SOLID_SPLASH
# define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
#endif

+ 284
- 0
keyboards/ymdk/ymd40/air40/info.json View File

@ -0,0 +1,284 @@
{
"keyboard_name": "YMDK Air40",
"manufacturer": "YMDK",
"url": "",
"maintainer": "qmk",
"usb": {
"vid": "0x45D4",
"pid": "0x0911",
"device_version": "0.0.1"
},
"layouts": {
"LAYOUT_ortho_4x12": {
"layout": [
{"label":"K00 (D0,F1)", "x":0, "y":0},
{"label":"K01 (D0,F0)", "x":1, "y":0},
{"label":"K02 (D0,B0)", "x":2, "y":0},
{"label":"K03 (D0,C7)", "x":3, "y":0},
{"label":"K04 (D0,F4)", "x":4, "y":0},
{"label":"K05 (D0,F5)", "x":5, "y":0},
{"label":"K06 (D0,F6)", "x":6, "y":0},
{"label":"K07 (D0,F7)", "x":7, "y":0},
{"label":"K08 (D0,D4)", "x":8, "y":0},
{"label":"K09 (D0,D6)", "x":9, "y":0},
{"label":"K0A (D0,B4)", "x":10, "y":0},
{"label":"K0B (D0,D7)", "x":11, "y":0},
{"label":"K10 (B3,F1)", "x":0, "y":1},
{"label":"K11 (B3,F0)", "x":1, "y":1},
{"label":"K12 (B3,B0)", "x":2, "y":1},
{"label":"K13 (B3,C7)", "x":3, "y":1},
{"label":"K14 (B3,F4)", "x":4, "y":1},
{"label":"K15 (B3,F5)", "x":5, "y":1},
{"label":"K16 (B3,F6)", "x":6, "y":1},
{"label":"K17 (B3,F7)", "x":7, "y":1},
{"label":"K18 (B3,D4)", "x":8, "y":1},
{"label":"K19 (B3,D6)", "x":9, "y":1},
{"label":"K1A (B3,B4)", "x":10, "y":1},
{"label":"K1B (B3,D7)", "x":11, "y":1},
{"label":"K20 (B2,F1)", "x":0, "y":2},
{"label":"K21 (B2,F0)", "x":1, "y":2},
{"label":"K22 (B2,B0)", "x":2, "y":2},
{"label":"K23 (B2,C7)", "x":3, "y":2},
{"label":"K24 (B2,F4)", "x":4, "y":2},
{"label":"K25 (B2,F5)", "x":5, "y":2},
{"label":"K26 (B2,F6)", "x":6, "y":2},
{"label":"K27 (B2,F7)", "x":7, "y":2},
{"label":"K28 (B2,D4)", "x":8, "y":2},
{"label":"K29 (B2,D6)", "x":9, "y":2},
{"label":"K2A (B2,B4)", "x":10, "y":2},
{"label":"K2B (B2,D7)", "x":11, "y":2},
{"label":"K30 (B1,F1)", "x":0, "y":3},
{"label":"K31 (B1,F0)", "x":1, "y":3},
{"label":"K32 (B1,B0)", "x":2, "y":3},
{"label":"K33 (B1,C7)", "x":3, "y":3},
{"label":"K34 (B1,F4)", "x":4, "y":3},
{"label":"K35 (B1,F5)", "x":5, "y":3},
{"label":"K36 (B1,F6)", "x":6, "y":3},
{"label":"K37 (B1,F7)", "x":7, "y":3},
{"label":"K38 (B1,D4)", "x":8, "y":3},
{"label":"K39 (B1,D6)", "x":9, "y":3},
{"label":"K3A (B1,B4)", "x":10, "y":3},
{"label":"K3B (B1,D7)", "x":11, "y":3}
]
},
"LAYOUT_ortho_4x12_2x2u": {
"layout": [
{"label":"K00 (D0,F1)", "x":0, "y":0},
{"label":"K01 (D0,F0)", "x":1, "y":0},
{"label":"K02 (D0,B0)", "x":2, "y":0},
{"label":"K03 (D0,C7)", "x":3, "y":0},
{"label":"K04 (D0,F4)", "x":4, "y":0},
{"label":"K05 (D0,F5)", "x":5, "y":0},
{"label":"K06 (D0,F6)", "x":6, "y":0},
{"label":"K07 (D0,F7)", "x":7, "y":0},
{"label":"K08 (D0,D4)", "x":8, "y":0},
{"label":"K09 (D0,D6)", "x":9, "y":0},
{"label":"K0A (D0,B4)", "x":10, "y":0},
{"label":"K0B (D0,D7)", "x":11, "y":0},
{"label":"K10 (B3,F1)", "x":0, "y":1},
{"label":"K11 (B3,F0)", "x":1, "y":1},
{"label":"K12 (B3,B0)", "x":2, "y":1},
{"label":"K13 (B3,C7)", "x":3, "y":1},
{"label":"K14 (B3,F4)", "x":4, "y":1},
{"label":"K15 (B3,F5)", "x":5, "y":1},
{"label":"K16 (B3,F6)", "x":6, "y":1},
{"label":"K17 (B3,F7)", "x":7, "y":1},
{"label":"K18 (B3,D4)", "x":8, "y":1},
{"label":"K19 (B3,D6)", "x":9, "y":1},
{"label":"K1A (B3,B4)", "x":10, "y":1},
{"label":"K1B (B3,D7)", "x":11, "y":1},
{"label":"K20 (B2,F1)", "x":0, "y":2},
{"label":"K21 (B2,F0)", "x":1, "y":2},
{"label":"K22 (B2,B0)", "x":2, "y":2},
{"label":"K23 (B2,C7)", "x":3, "y":2},
{"label":"K24 (B2,F4)", "x":4, "y":2},
{"label":"K25 (B2,F5)", "x":5, "y":2},
{"label":"K26 (B2,F6)", "x":6, "y":2},
{"label":"K27 (B2,F7)", "x":7, "y":2},
{"label":"K28 (B2,D4)", "x":8, "y":2},
{"label":"K29 (B2,D6)", "x":9, "y":2},
{"label":"K2A (B2,B4)", "x":10, "y":2},
{"label":"K2B (B2,D7)", "x":11, "y":2},
{"label":"K30 (B1,F1)", "x":0, "y":3},
{"label":"K31 (B1,F0)", "x":1, "y":3},
{"label":"K32 (B1,B0)", "x":2, "y":3},
{"label":"K33 (B1,C7)", "x":3, "y":3},
{"label":"K34 (B1,F4)", "x":4, "y":3, "w":2},
{"label":"K37 (B1,F7)", "x":6, "y":3, "w":2},
{"label":"K38 (B1,D4)", "x":8, "y":3},
{"label":"K39 (B1,D6)", "x":9, "y":3},
{"label":"K3A (B1,B4)", "x":10, "y":3},
{"label":"K3B (B1,D7)", "x":11, "y":3}
]
},
"LAYOUT_ortho_4x12_1x2uR": {
"layout": [
{"label":"K00 (D0,F1)", "x":0, "y":0},
{"label":"K01 (D0,F0)", "x":1, "y":0},
{"label":"K02 (D0,B0)", "x":2, "y":0},
{"label":"K03 (D0,C7)", "x":3, "y":0},
{"label":"K04 (D0,F4)", "x":4, "y":0},
{"label":"K05 (D0,F5)", "x":5, "y":0},
{"label":"K06 (D0,F6)", "x":6, "y":0},
{"label":"K07 (D0,F7)", "x":7, "y":0},
{"label":"K08 (D0,D4)", "x":8, "y":0},
{"label":"K09 (D0,D6)", "x":9, "y":0},
{"label":"K0A (D0,B4)", "x":10, "y":0},
{"label":"K0B (D0,D7)", "x":11, "y":0},
{"label":"K10 (B3,F1)", "x":0, "y":1},
{"label":"K11 (B3,F0)", "x":1, "y":1},
{"label":"K12 (B3,B0)", "x":2, "y":1},
{"label":"K13 (B3,C7)", "x":3, "y":1},
{"label":"K14 (B3,F4)", "x":4, "y":1},
{"label":"K15 (B3,F5)", "x":5, "y":1},
{"label":"K16 (B3,F6)", "x":6, "y":1},
{"label":"K17 (B3,F7)", "x":7, "y":1},
{"label":"K18 (B3,D4)", "x":8, "y":1},
{"label":"K19 (B3,D6)", "x":9, "y":1},
{"label":"K1A (B3,B4)", "x":10, "y":1},
{"label":"K1B (B3,D7)", "x":11, "y":1},
{"label":"K20 (B2,F1)", "x":0, "y":2},
{"label":"K21 (B2,F0)", "x":1, "y":2},
{"label":"K22 (B2,B0)", "x":2, "y":2},
{"label":"K23 (B2,C7)", "x":3, "y":2},
{"label":"K24 (B2,F4)", "x":4, "y":2},
{"label":"K25 (B2,F5)", "x":5, "y":2},
{"label":"K26 (B2,F6)", "x":6, "y":2},
{"label":"K27 (B2,F7)", "x":7, "y":2},
{"label":"K28 (B2,D4)", "x":8, "y":2},
{"label":"K29 (B2,D6)", "x":9, "y":2},
{"label":"K2A (B2,B4)", "x":10, "y":2},
{"label":"K2B (B2,D7)", "x":11, "y":2},
{"label":"K30 (B1,F1)", "x":0, "y":3},
{"label":"K31 (B1,F0)", "x":1, "y":3},
{"label":"K32 (B1,B0)", "x":2, "y":3},
{"label":"K33 (B1,C7)", "x":3, "y":3},
{"label":"K34 (B1,F4)", "x":4, "y":3},
{"label":"K35 (B1,F5)", "x":5, "y":3},
{"label":"K37 (B1,F7)", "x":6, "y":3, "w":2},
{"label":"K38 (B1,D4)", "x":8, "y":3},
{"label":"K39 (B1,D6)", "x":9, "y":3},
{"label":"K3A (B1,B4)", "x":10, "y":3},
{"label":"K3B (B1,D7)", "x":11, "y":3}
]
},
"LAYOUT_ortho_4x12_1x2uL": {
"layout": [
{"label":"K00 (D0,F1)", "x":0, "y":0},
{"label":"K01 (D0,F0)", "x":1, "y":0},
{"label":"K02 (D0,B0)", "x":2, "y":0},
{"label":"K03 (D0,C7)", "x":3, "y":0},
{"label":"K04 (D0,F4)", "x":4, "y":0},
{"label":"K05 (D0,F5)", "x":5, "y":0},
{"label":"K06 (D0,F6)", "x":6, "y":0},
{"label":"K07 (D0,F7)", "x":7, "y":0},
{"label":"K08 (D0,D4)", "x":8, "y":0},
{"label":"K09 (D0,D6)", "x":9, "y":0},
{"label":"K0A (D0,B4)", "x":10, "y":0},
{"label":"K0B (D0,D7)", "x":11, "y":0},
{"label":"K10 (B3,F1)", "x":0, "y":1},
{"label":"K11 (B3,F0)", "x":1, "y":1},
{"label":"K12 (B3,B0)", "x":2, "y":1},
{"label":"K13 (B3,C7)", "x":3, "y":1},
{"label":"K14 (B3,F4)", "x":4, "y":1},
{"label":"K15 (B3,F5)", "x":5, "y":1},
{"label":"K16 (B3,F6)", "x":6, "y":1},
{"label":"K17 (B3,F7)", "x":7, "y":1},
{"label":"K18 (B3,D4)", "x":8, "y":1},
{"label":"K19 (B3,D6)", "x":9, "y":1},
{"label":"K1A (B3,B4)", "x":10, "y":1},
{"label":"K1B (B3,D7)", "x":11, "y":1},
{"label":"K20 (B2,F1)", "x":0, "y":2},
{"label":"K21 (B2,F0)", "x":1, "y":2},
{"label":"K22 (B2,B0)", "x":2, "y":2},
{"label":"K23 (B2,C7)", "x":3, "y":2},
{"label":"K24 (B2,F4)", "x":4, "y":2},
{"label":"K25 (B2,F5)", "x":5, "y":2},
{"label":"K26 (B2,F6)", "x":6, "y":2},
{"label":"K27 (B2,F7)", "x":7, "y":2},
{"label":"K28 (B2,D4)", "x":8, "y":2},
{"label":"K29 (B2,D6)", "x":9, "y":2},
{"label":"K2A (B2,B4)", "x":10, "y":2},
{"label":"K2B (B2,D7)", "x":11, "y":2},
{"label":"K30 (B1,F1)", "x":0, "y":3},
{"label":"K31 (B1,F0)", "x":1, "y":3},
{"label":"K32 (B1,B0)", "x":2, "y":3},
{"label":"K33 (B1,C7)", "x":3, "y":3},
{"label":"K34 (B1,F4)", "x":4, "y":3, "w":2},
{"label":"K36 (B1,F6)", "x":6, "y":3},
{"label":"K37 (B1,F7)", "x":7, "y":3},
{"label":"K38 (B1,D4)", "x":8, "y":3},
{"label":"K39 (B1,D6)", "x":9, "y":3},
{"label":"K3A (B1,B4)", "x":10, "y":3},
{"label":"K3B (B1,D7)", "x":11, "y":3}
]
},
"LAYOUT_ortho_4x12_1x2uC": {
"layout": [
{"label":"K00 (D0,F1)", "x":0, "y":0},
{"label":"K01 (D0,F0)", "x":1, "y":0},
{"label":"K02 (D0,B0)", "x":2, "y":0},
{"label":"K03 (D0,C7)", "x":3, "y":0},
{"label":"K04 (D0,F4)", "x":4, "y":0},
{"label":"K05 (D0,F5)", "x":5, "y":0},
{"label":"K06 (D0,F6)", "x":6, "y":0},
{"label":"K07 (D0,F7)", "x":7, "y":0},
{"label":"K08 (D0,D4)", "x":8, "y":0},
{"label":"K09 (D0,D6)", "x":9, "y":0},
{"label":"K0A (D0,B4)", "x":10, "y":0},
{"label":"K0B (D0,D7)", "x":11, "y":0},
{"label":"K10 (B3,F1)", "x":0, "y":1},
{"label":"K11 (B3,F0)", "x":1, "y":1},
{"label":"K12 (B3,B0)", "x":2, "y":1},
{"label":"K13 (B3,C7)", "x":3, "y":1},
{"label":"K14 (B3,F4)", "x":4, "y":1},
{"label":"K15 (B3,F5)", "x":5, "y":1},
{"label":"K16 (B3,F6)", "x":6, "y":1},
{"label":"K17 (B3,F7)", "x":7, "y":1},
{"label":"K18 (B3,D4)", "x":8, "y":1},
{"label":"K19 (B3,D6)", "x":9, "y":1},
{"label":"K1A (B3,B4)", "x":10, "y":1},
{"label":"K1B (B3,D7)", "x":11, "y":1},
{"label":"K20 (B2,F1)", "x":0, "y":2},
{"label":"K21 (B2,F0)", "x":1, "y":2},
{"label":"K22 (B2,B0)", "x":2, "y":2},
{"label":"K23 (B2,C7)", "x":3, "y":2},
{"label":"K24 (B2,F4)", "x":4, "y":2},
{"label":"K25 (B2,F5)", "x":5, "y":2},
{"label":"K26 (B2,F6)", "x":6, "y":2},
{"label":"K27 (B2,F7)", "x":7, "y":2},
{"label":"K28 (B2,D4)", "x":8, "y":2},
{"label":"K29 (B2,D6)", "x":9, "y":2},
{"label":"K2A (B2,B4)", "x":10, "y":2},
{"label":"K2B (B2,D7)", "x":11, "y":2},
{"label":"K30 (B1,F1)", "x":0, "y":3},
{"label":"K31 (B1,F0)", "x":1, "y":3},
{"label":"K32 (B1,B0)", "x":2, "y":3},
{"label":"K33 (B1,C7)", "x":3, "y":3},
{"label":"K34 (B1,F4)", "x":4, "y":3},
{"label":"K35 (B1,F5)", "x":5, "y":3, "w":2},
{"label":"K37 (B1,F7)", "x":7, "y":3},
{"label":"K38 (B1,D4)", "x":8, "y":3},
{"label":"K39 (B1,D6)", "x":9, "y":3},
{"label":"K3A (B1,B4)", "x":10, "y":3},
{"label":"K3B (B1,D7)", "x":11, "y":3}
]
}
}
}

+ 55
- 0
keyboards/ymdk/ymd40/air40/keymaps/default/keymap.c View File

@ -0,0 +1,55 @@
/* Copyright 2022 Dennis Kruyt (dennis@kruyt.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
enum layer_names {
_QWERTY,
_LOWER,
_RAISE,
_ADJUST
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT_ortho_4x12(
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
KC_CAPS, KC_LCTL, KC_LALT, KC_LGUI, MO(1), KC_SPC, KC_SPC, MO(2), KC_UP, KC_LEFT, KC_DOWN, KC_RGHT
),
[_LOWER] = LAYOUT_ortho_4x12(
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______,
_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
),
[_RAISE] = LAYOUT_ortho_4x12(
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______,
_______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
),
[_ADJUST] = LAYOUT_ortho_4x12(
QK_BOOT, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, _______, DB_TOGG,
_______, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
layer_state_t layer_state_set_user(layer_state_t state) {
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
}

+ 44
- 0
keyboards/ymdk/ymd40/air40/keymaps/via/keymap.c View File

@ -0,0 +1,44 @@
/* Copyright 2022 Dennis Kruyt (dennis@kruyt.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_ortho_4x12(
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_ENT,
KC_LCTL, KC_LALT, KC_LGUI, KC_PIPE, MO(1), KC_SPC, KC_SPC, MO(2), KC_SLSH, KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT_ortho_4x12(
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL,
KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), _______, KC_VOLU, _______,
_______, _______, _______, _______, _______, _______, _______, MO(3), _______, KC_MNXT, KC_VOLD, KC_MPLY
),
[2] = LAYOUT_ortho_4x12(
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, KC_PGUP, _______,
_______, _______, _______, _______, MO(3), _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END
),
[3] = LAYOUT_ortho_4x12(
QK_BOOT, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, _______, _______, _______, _______, DB_TOGG,
_______, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};

+ 2
- 0
keyboards/ymdk/ymd40/air40/keymaps/via/rules.mk View File

@ -0,0 +1,2 @@
VIA_ENABLE = yes
LTO_ENABLE = yes

+ 19
- 0
keyboards/ymdk/ymd40/air40/readme.md View File

@ -0,0 +1,19 @@
# YMD40 AIR40
A 40% ortholinear keyboard with per switch LED support and USB Type C.
* Keyboard Maintainer: [The QMK Community](https://github.com/qmk)
* Hardware Supported: YMD40 AIR40 PCB (ATmega32U4)
* Hardware Availability: [ymdkey.com](https://ymdkey.com/collections/40-mini-diy/products/air40-rgb-hot-swap-cute-40-mechanical-keyboard-assembled-qmk-via-type-c-pcb-cnc-case-plate-kit)
Make example for this keyboard (after setting up your build environment):
make ymdk/ymd40/air40:default
Flashing example for this keyboard:
make ymdk/ymd40/air40:default:flash
To reset the board into bootloader mode, hold the key at the top left of the keyboard while connecting the USB cable (also erases persistent settings).
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).

+ 26
- 0
keyboards/ymdk/ymd40/air40/rules.mk View File

@ -0,0 +1,26 @@
# MCU name
MCU = atmega32u4
# Bootloader selection
BOOTLOADER = atmel-dfu
# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = no # Enable N-Key Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no
RGBLIGHT_SUPPORTED = no
RGB_MATRIX_ENABLE = yes
RGB_MATRIX_DRIVER = WS2812
AUDIO_ENABLE = no # Audio output
AUDIO_SUPPORTED = no
KEY_LOCK_ENABLE = no
LAYOUTS = ortho_4x12

Loading…
Cancel
Save