Skip to content

Commit

Permalink
Add support for Alps64 (qmk#461)
Browse files Browse the repository at this point in the history
* first pass alps64 vial firmware (buggy on hardware)

* disable tap dance and midi to allow for proper compiling on atmega32u2
  • Loading branch information
uuupah authored May 14, 2023
1 parent 5aeafef commit b178217
Show file tree
Hide file tree
Showing 4 changed files with 270 additions and 0 deletions.
9 changes: 9 additions & 0 deletions keyboards/alps64/keymaps/vial/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

/* SPDX-License-Identifier: GPL-2.0-or-later */

#pragma once

#define VIAL_KEYBOARD_UID {0xBD, 0x15, 0x93, 0x37, 0x7A, 0x35, 0x29, 0x02}
#define VIAL_UNLOCK_COMBO_ROWS { 3, 2 }
#define VIAL_UNLOCK_COMBO_COLS { 6, 3 }

37 changes: 37 additions & 0 deletions keyboards/alps64/keymaps/vial/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* 0: qwerty */
[0] = LAYOUT_all(
KC_GRV, 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_NUHS, 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_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_ESC,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_APP, KC_RALT, KC_RGUI, KC_RCTL
),

[1] = LAYOUT_all(
KC_ESC, 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, 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, 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, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
),

[2] = LAYOUT_all(
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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
),

[3] = LAYOUT_all(
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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
),

};
8 changes: 8 additions & 0 deletions keyboards/alps64/keymaps/vial/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
LTO_ENABLE = yes
CONSOLE_ENABLE = no
COMMAND_ENABLE = no
TAP_DANCE_ENABLE = no
MIDI_ENABLE = no

216 changes: 216 additions & 0 deletions keyboards/alps64/keymaps/vial/vial.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
{
"name": "Hasu Alps64",
"lighting" : "none",
"matrix": {"rows": 8, "cols": 8},
"layouts": {
"labels": [
["Enter Key", "ANSI", "ISO", "BAE"],
"Split Left Shift",
"Split Right Shift",
"Split Backspace",
["Bottom row", "104", "101/103", "101/103 WKL", "Infinity", "AEK", "HHKB"]
],
"keymap": [
[
{"x": 2.75},
"3,6",
"3,7",
"4,6",
"4,7",
"5,6",
"5,7",
"6,6",
"6,7",
"7,6",
"7,7",
"0,6",
"0,7",
"1,7",
{"c": "#aaaaaa", "w": 2},
"2,7\n\n\n3,0",
{"x": 0.5, "c": "#cccccc"},
"2,6\n\n\n3,1",
{"c": "#aaaaaa"},
"2,7\n\n\n3,1"
],
[
{"x": 2.75, "w": 1.5},
"3,4",
{"c": "#cccccc"},
"3,5",
"4,4",
"4,5",
"5,4",
"5,5",
"6,4",
"6,5",
"7,5",
"0,5",
"1,5",
"1,6",
"2,5",
{"w": 1.5},
"2,4\n\n\n0,0",
{
"x": 1.5,
"c": "#777777",
"w": 1.25,
"h": 2,
"w2": 1.5,
"h2": 1,
"x2": -0.25
},
"2,3\n\n\n0,1",
{
"x": 0.75,
"w": 1.5,
"h": 2,
"w2": 2.25,
"h2": 1,
"x2": -0.75,
"y2": 1
},
"2,3\n\n\n0,2"
],
[
{"x": 2.75, "c": "#aaaaaa", "w": 1.75},
"3,2",
{"c": "#cccccc"},
"3,3",
"4,3",
"5,2",
"5,3",
"6,3",
"7,3",
"7,4",
"0,3",
"0,4",
"1,3",
"1,4",
{"c": "#777777", "w": 2.25},
"2,3\n\n\n0,0",
{"x": 0.5, "c": "#cccccc"},
"2,4\n\n\n0,1"
],
[
{"c": "#aaaaaa", "w": 1.25},
"3,1\n\n\n1,1",
{"c": "#cccccc"},
"4,1\n\n\n1,1",
{"x": 0.5, "c": "#aaaaaa", "w": 2.25},
"3,1\n\n\n1,0",
{"c": "#cccccc"},
"4,2",
"5,1",
"6,1",
"6,2",
"7,1",
"7,2",
"0,1",
"0,2",
"1,1",
"1,2",
{"c": "#aaaaaa", "w": 2.75},
"2,1\n\n\n2,0",
{"x": 0.5, "w": 1.75},
"2,1\n\n\n2,1",
"2,2\n\n\n2,1"
],
[
{"x": 2.75, "w": 1.25},
"3,0\n\n\n4,0",
{"w": 1.25},
"4,0\n\n\n4,0",
{"w": 1.25},
"5,0\n\n\n4,0",
{"c": "#cccccc", "w": 6.25},
"6,0\n\n\n4,0",
{"c": "#aaaaaa", "w": 1.25},
"7,0\n\n\n4,0",
{"w": 1.25},
"0,0\n\n\n4,0",
{"w": 1.25},
"1,0\n\n\n4,0",
{"w": 1.25},
"2,0\n\n\n4,0"
],
[
{"y": 0.25, "x": 2.75, "w": 1.5},
"3,0\n\n\n4,1",
"4,0\n\n\n4,1",
{"w": 1.5},
"5,0\n\n\n4,1",
{"c": "#cccccc", "w": 7},
"6,0\n\n\n4,1",
{"c": "#aaaaaa", "w": 1.5},
"0,0\n\n\n4,1",
"1,0\n\n\n4,1",
{"w": 1.5},
"2,0\n\n\n4,1"
],
[
{"x": 2.75, "w": 1.5},
"3,0\n\n\n4,2",
{"d": true},
"\n\n\n4,2",
{"w": 1.5},
"5,0\n\n\n4,2",
{"c": "#cccccc", "w": 7},
"6,0\n\n\n4,2",
{"c": "#aaaaaa", "w": 1.5},
"0,0\n\n\n4,2",
{"d": true},
"\n\n\n4,2",
{"w": 1.5},
"2,0\n\n\n4,2"
],
[
{"x": 2.75, "w": 1.5},
"3,0\n\n\n4,3",
"4,0\n\n\n4,3",
{"w": 1.5},
"5,0\n\n\n4,3",
{"c": "#cccccc", "w": 6},
"6,0\n\n\n4,3",
{"c": "#aaaaaa", "w": 1.5},
"7,0\n\n\n4,3",
"0,0\n\n\n4,3",
"1,0\n\n\n4,3",
{"w": 1.5},
"2,0\n\n\n4,3"
],
[
{"x": 2.75, "w": 1.5},
"3,0\n\n\n4,4",
{"w": 1.25},
"4,0\n\n\n4,4",
{"w": 1.5},
"5,0\n\n\n4,4",
{"c": "#cccccc", "w": 6.5},
"6,0\n\n\n4,4",
{"c": "#aaaaaa", "w": 1.5},
"0,0\n\n\n4,4",
{"w": 1.25},
"1,0\n\n\n4,4",
{"w": 1.5},
"2,0\n\n\n4,4"
],
[
{"x": 2.75, "w": 1.5, "d": true},
"\n\n\n4,5",
"4,0\n\n\n4,5",
{"w": 1.5},
"5,0\n\n\n4,5",
{"c": "#cccccc", "w": 6},
"6,0\n\n\n4,5",
{"c": "#aaaaaa", "w": 1.5},
"7,0\n\n\n4,5",
"0,0\n\n\n4,5",
"1,0\n\n\n4,5",
{"w": 1.5, "d": true},
"\n\n\n4,5"
]
]
}
}

0 comments on commit b178217

Please sign in to comment.