Add keyboard: takayoshiotake/harmony_42 (#770)

This commit is contained in:
Takayoshi Otake 2024-08-19 11:29:30 +09:00 committed by GitHub
parent 9d2d16d743
commit 4d0491640c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 559 additions and 0 deletions

View File

@ -0,0 +1,73 @@
{
"keyboard_name": "Harmony 42",
"maintainer": "takayoshiotake",
"manufacturer": "takayoshiotake",
"url": "https://github.com/takayoshiotake/harmony-42-keyboard",
"processor": "RP2040",
"bootloader": "rp2040",
"usb": {
"device_version": "1.0.0",
"pid": "0x8CAE",
"vid": "0x1209",
"force_nkro": true
},
"features": {
"bootmagic": true,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"diode_direction": "COL2ROW",
"matrix_pins": {
"cols": ["GP22", "GP21", "GP20", "GP19", "GP18", "GP17", "GP27", "GP28", "GP29", "GP26", "GP25", "GP24"],
"rows": ["GP10", "GP11", "GP16", "GP23"]
},
"layouts": {
"LAYOUT": {
"layout": [
{ "matrix": [0, 0], "x": 0, "y": 0 },
{ "matrix": [0, 1], "x": 1, "y": 0 },
{ "matrix": [0, 2], "x": 2, "y": 0 },
{ "matrix": [0, 3], "x": 3, "y": 0 },
{ "matrix": [0, 4], "x": 4, "y": 0 },
{ "matrix": [0, 5], "x": 5, "y": 0 },
{ "matrix": [0, 6], "x": 6, "y": 0 },
{ "matrix": [0, 7], "x": 7, "y": 0 },
{ "matrix": [0, 8], "x": 8, "y": 0 },
{ "matrix": [0, 9], "x": 9, "y": 0 },
{ "matrix": [0, 10], "x": 10, "y": 0 },
{ "matrix": [0, 11], "x": 11, "y": 0 },
{ "matrix": [1, 0], "x": 0, "y": 1 },
{ "matrix": [1, 1], "x": 1, "y": 1 },
{ "matrix": [1, 2], "x": 2, "y": 1 },
{ "matrix": [1, 3], "x": 3, "y": 1 },
{ "matrix": [1, 4], "x": 4, "y": 1 },
{ "matrix": [1, 5], "x": 5, "y": 1 },
{ "matrix": [1, 6], "x": 6, "y": 1 },
{ "matrix": [1, 7], "x": 7, "y": 1 },
{ "matrix": [1, 8], "x": 8, "y": 1 },
{ "matrix": [1, 9], "x": 9, "y": 1 },
{ "matrix": [1, 10], "x": 10, "y": 1 },
{ "matrix": [1, 11], "x": 11, "y": 1 },
{ "matrix": [2, 0], "x": 0, "y": 2 },
{ "matrix": [2, 1], "x": 1, "y": 2 },
{ "matrix": [2, 2], "x": 2, "y": 2 },
{ "matrix": [2, 3], "x": 3, "y": 2 },
{ "matrix": [2, 4], "x": 4, "y": 2 },
{ "matrix": [2, 5], "x": 5, "y": 2 },
{ "matrix": [2, 6], "x": 6, "y": 2 },
{ "matrix": [2, 7], "x": 7, "y": 2 },
{ "matrix": [2, 8], "x": 8, "y": 2 },
{ "matrix": [2, 9], "x": 9, "y": 2 },
{ "matrix": [2, 10], "x": 10, "y": 2 },
{ "matrix": [2, 11], "x": 11, "y": 2 },
{ "matrix": [3, 3], "x": 3, "y": 3 },
{ "matrix": [3, 4], "x": 4, "y": 3 },
{ "matrix": [3, 5], "x": 5, "y": 3 },
{ "matrix": [3, 6], "x": 6, "y": 3 },
{ "matrix": [3, 7], "x": 7, "y": 3 },
{ "matrix": [3, 8], "x": 8, "y": 3 }
]
}
}
}

View File

@ -0,0 +1,19 @@
#include QMK_KEYBOARD_H
#define KC_JAPANESE_EISUU KC_LNG2
#define KC_JAPANESE_KANA KC_LNG1
#define KC_JEIS KC_JAPANESE_EISUU
#define KC_JKAN KC_JAPANESE_KANA
#define MT_LGJE MT(MOD_LGUI, KC_JEIS)
#define MT_RAJK MT(MOD_RALT, KC_JKAN)
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, XXXXXXX, KC_H, KC_J, KC_K, KC_L, KC_ENT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, XXXXXXX, XXXXXXX, KC_N, KC_M, XXXXXXX, KC_RSFT,
KC_LCTL, MT_LGJE, KC_SPC, KC_SPC, MT_RAJK, KC_RCTL
)
};

View File

@ -0,0 +1,8 @@
#pragma once
#define VIAL_KEYBOARD_UID {0x2B, 0x70, 0xFE, 0xEF, 0x1B, 0x5E, 0xB6, 0x8F}
#define VIAL_UNLOCK_COMBO_ROWS {1, 1}
#define VIAL_UNLOCK_COMBO_COLS {0, 11}
#define DYNAMIC_KEYMAP_LAYER_COUNT 8

View File

@ -0,0 +1,19 @@
#include QMK_KEYBOARD_H
#define KC_JAPANESE_EISUU KC_LNG2
#define KC_JAPANESE_KANA KC_LNG1
#define KC_JEIS KC_JAPANESE_EISUU
#define KC_JKAN KC_JAPANESE_KANA
#define MT_LGJE MT(MOD_LGUI, KC_JEIS)
#define MT_RAJK MT(MOD_RALT, KC_JKAN)
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, XXXXXXX, KC_H, KC_J, KC_K, KC_L, KC_ENT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, XXXXXXX, XXXXXXX, KC_N, KC_M, XXXXXXX, KC_RSFT,
KC_LCTL, MT_LGJE, KC_SPC, KC_SPC, MT_RAJK, KC_RCTL
)
};

View File

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

View File

@ -0,0 +1,431 @@
{
"lighting": "none",
"matrix": {
"rows": 4,
"cols": 12
},
"layouts": {
"keymap": [
[
{
"rx": 0.5,
"ry": 1.25,
"r": 0,
"x": -0.5,
"y": -0.5
},
"0,0"
],
[
{
"rx": 1.5,
"ry": 0.75,
"r": 0,
"x": -0.5,
"y": -0.5
},
"0,1"
],
[
{
"rx": 2.552307692307692,
"ry": 0.5584615384615379,
"r": 6.359660239728469,
"x": -0.5,
"y": -0.5
},
"0,2"
],
[
{
"rx": 3.5916639053254436,
"ry": 0.733126627218935,
"r": 12.719320479456938,
"x": -0.5,
"y": -0.5
},
"0,3"
],
[
{
"rx": 4.605276562585344,
"ry": 1.0218455421028665,
"r": 19.078980719185406,
"x": -0.5,
"y": -0.5
},
"0,4"
],
[
{
"rx": 5.5806704313826545,
"ry": 1.4210648195455349,
"r": 25.438640958913876,
"x": -0.5,
"y": -0.5
},
"0,5"
],
[
{
"rx": 8.419329568617346,
"ry": 1.4210648195455349,
"r": -25.438640958913876,
"x": -0.5,
"y": -0.5
},
"0,6"
],
[
{
"rx": 9.394723437414656,
"ry": 1.0218455421028665,
"r": -19.078980719185406,
"x": -0.5,
"y": -0.5
},
"0,7"
],
[
{
"rx": 10.408336094674556,
"ry": 0.733126627218935,
"r": -12.719320479456938,
"x": -0.5,
"y": -0.5
},
"0,8"
],
[
{
"rx": 11.447692307692307,
"ry": 0.5584615384615379,
"r": -6.359660239728469,
"x": -0.5,
"y": -0.5
},
"0,9 "
],
[
{
"rx": 12.5,
"ry": 0.75,
"r": 0,
"x": -0.5,
"y": -0.5
},
"0,10"
],
[
{
"rx": 13.5,
"ry": 1.25,
"r": 0,
"x": -0.5,
"y": -0.5
},
"0,11"
],
[
{
"rx": 0.5,
"ry": 2.25,
"r": 0,
"x": -0.5,
"y": -0.5
},
"1,0"
],
[
{
"rx": 1.5,
"ry": 1.75,
"r": 0,
"x": -0.5,
"y": -0.5
},
"1,1"
],
[
{
"rx": 2.5583657587548636,
"ry": 1.5661478599221788,
"r": 7.152668749994702,
"x": -0.5,
"y": -0.5
},
"1,2"
],
[
{
"rx": 3.6002588986964223,
"ry": 1.763561901012885,
"r": 14.305337499989404,
"x": -0.5,
"y": -0.5
},
"1,3"
],
[
{
"rx": 4.6094631841835625,
"ry": 2.0891695311928835,
"r": 21.45800624998411,
"x": -0.5,
"y": -0.5
},
"1,4"
],
[
{
"rx": 5.570271155519984,
"ry": 2.537902927424355,
"r": 28.61067499997881,
"x": -0.5,
"y": -0.5
},
"1,5"
],
[
{
"rx": 8.429728844480016,
"ry": 2.537902927424355,
"r": -28.61067499997881,
"x": -0.5,
"y": -0.5
},
"1,6"
],
[
{
"rx": 9.390536815816438,
"ry": 2.0891695311928835,
"r": -21.45800624998411,
"x": -0.5,
"y": -0.5
},
"1,7"
],
[
{
"rx": 10.399741101303578,
"ry": 1.763561901012885,
"r": -14.305337499989404,
"x": -0.5,
"y": -0.5
},
"1,8"
],
[
{
"rx": 11.441634241245136,
"ry": 1.5661478599221788,
"r": -7.152668749994702,
"x": -0.5,
"y": -0.5
},
"1,9"
],
[
{
"rx": 12.5,
"ry": 1.75,
"r": 0,
"x": -0.5,
"y": -0.5
},
"1,10"
],
[
{
"rx": 13.5,
"ry": 2.25,
"r": 0,
"x": -0.5,
"y": -0.5
},
"1,11"
],
[
{
"rx": 0.5,
"ry": 3.25,
"r": 0,
"x": -0.5,
"y": -0.5
},
"2,0"
],
[
{
"rx": 1.5,
"ry": 2.75,
"r": 0,
"x": -0.5,
"y": -0.5
},
"2,1"
],
[
{
"rx": 2.565989847715736,
"ry": 2.5761421319796955,
"r": 8.171233559949753,
"x": -0.5,
"y": -0.5
},
"2,2"
],
[
{
"rx": 3.6103352315184623,
"ry": 2.8030224947821374,
"r": 16.342467119899506,
"x": -0.5,
"y": -0.5
},
"2,3"
],
[
{
"rx": 4.61183116899594,
"ry": 3.1760343805331663,
"r": 24.513700679849258,
"x": -0.5,
"y": -0.5
},
"2,4"
],
[
{
"rx": 5.550142717255227,
"ry": 3.687603943836822,
"r": 32.68493423979901,
"x": -0.5,
"y": -0.5
},
"2,5"
],
[
{
"rx": 8.449857282744773,
"ry": 3.687603943836822,
"r": -32.68493423979901,
"x": -0.5,
"y": -0.5
},
"2,6"
],
[
{
"rx": 9.388168831004059,
"ry": 3.1760343805331663,
"r": -24.513700679849258,
"x": -0.5,
"y": -0.5
},
"2,7"
],
[
{
"rx": 10.389664768481538,
"ry": 2.8030224947821374,
"r": -16.342467119899506,
"x": -0.5,
"y": -0.5
},
"2,8"
],
[
{
"rx": 11.434010152284264,
"ry": 2.5761421319796955,
"r": -8.171233559949753,
"x": -0.5,
"y": -0.5
},
"2,9"
],
[
{
"rx": 12.5,
"ry": 2.75,
"r": 0,
"x": -0.5,
"y": -0.5
},
"2,10"
],
[
{
"rx": 13.5,
"ry": 3.25,
"r": 0,
"x": -0.5,
"y": -0.5
},
"2,11"
],
[
{
"rx": 3.6220451843043997,
"ry": 3.8561474435196192,
"r": 19.054566762904713,
"x": -0.5,
"y": -0.5
},
"3,3"
],
[
{
"rx": 4.609689122145229,
"ry": 4.2921253023904224,
"r": 28.581850144357066,
"x": -0.5,
"y": -0.5
},
"3,4"
],
[
{
"rx": 5.511548532478605,
"ry": 4.885561773609075,
"r": 38.109133525809426,
"x": -0.5,
"y": -0.5
},
"3,5"
],
[
{
"rx": 8.488451467521395,
"ry": 4.885561773609075,
"r": -38.109133525809426,
"x": -0.5,
"y": -0.5
},
"3,6"
],
[
{
"rx": 9.39031087785477,
"ry": 4.2921253023904224,
"r": -28.581850144357066,
"x": -0.5,
"y": -0.5
},
"3,7"
],
[
{
"rx": 10.3779548156956,
"ry": 3.8561474435196192,
"r": -19.054566762904713,
"x": -0.5,
"y": -0.5
},
"3,8"
]
]
}
}

View File

@ -0,0 +1,7 @@
# Harmony 42
![Harmony 42](https://github.com/takayoshiotake/harmony-42-keyboard/blob/main/layout/keyboard-layout.png?raw=true)
Vial firmware for the Harmony 42 (40%) keyboard. You can find other information including hardware design in the [GitHub repository](https://github.com/takayoshiotake/harmony-42-keyboard).
Keyboard Maintainer: [takayoshiotake](https://github.com/takayoshiotake)