Skip to content

Commit b19abfa

Browse files
authored
Add Vial support to miniMACRO5 (#809)
* Port miniMACRO5 to RP2040 + add VIAL keymap * Remove rp2040_ce explicit configuration * Add license in code files
1 parent d78b387 commit b19abfa

File tree

4 files changed

+175
-0
lines changed

4 files changed

+175
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Copyright 2024 JP Roemer (@0rax)
2+
// SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
#pragma once
5+
6+
#define VIAL_KEYBOARD_UID {0xFE, 0x06, 0xBF, 0x52, 0x18, 0xBA, 0x4F, 0x8A}
7+
8+
#define VIAL_UNLOCK_COMBO_ROWS {0, 0}
9+
#define VIAL_UNLOCK_COMBO_COLS {0, 4}
10+
11+
#define RGBLIGHT_EFFECT_BREATHING
12+
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright 2024 JP Roemer (@0rax)
2+
// SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
#include QMK_KEYBOARD_H
5+
6+
enum layers {
7+
_MAIN,
8+
};
9+
10+
#if defined(ENCODER_MAP_ENABLE)
11+
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
12+
[_MAIN] = {
13+
ENCODER_CCW_CW(KC_2, KC_1), /* First encoder*/
14+
ENCODER_CCW_CW(KC_4, KC_3), /* Second encoder*/
15+
ENCODER_CCW_CW(KC_6, KC_5), /* Third encoder*/
16+
ENCODER_CCW_CW(KC_8, KC_7), /* Fourth encoder*/
17+
ENCODER_CCW_CW(KC_0, KC_9) /* Fifth encoder*/
18+
}
19+
};
20+
#endif
21+
22+
//
23+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { //buttion closest to usb is first
24+
[_MAIN] = LAYOUT_ortho_1x5(
25+
KC_A, KC_B, KC_C, KC_D, KC_E
26+
)
27+
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
VIA_ENABLE = yes
2+
VIAL_ENABLE = yes
3+
ENCODER_MAP_ENABLE = yes
4+
5+
# Reduce size on atmega32u4
6+
ifeq ($(strip $(CONVERT_TO)), )
7+
TAP_DANCE_ENABLE = no
8+
QMK_SETTINGS = no
9+
KEY_OVERRIDE_ENABLE = no
10+
COMBO_ENABLE = no
11+
endif
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
{
2+
"name": "miniMACRO5",
3+
"vendorId": "0xCEEB",
4+
"productId": "0x0007",
5+
"lighting": "qmk_rgblight",
6+
"matrix": {
7+
"rows": 1,
8+
"cols": 5
9+
},
10+
"layouts": {
11+
"labels": [
12+
"Encoder 1",
13+
"Encoder 2",
14+
"Encoder 3",
15+
"Encoder 4",
16+
"Encoder 5"
17+
],
18+
"keymap": [
19+
[
20+
{
21+
"w": 2,
22+
"h": 2,
23+
"w2": 0.5
24+
},
25+
"0,0\n\n\n0,0",
26+
{
27+
"x": 0.25,
28+
"w": 2,
29+
"h": 2,
30+
"w2": 0.5
31+
},
32+
"0,1\n\n\n1,0",
33+
{
34+
"x": 0.25,
35+
"w": 2,
36+
"h": 2,
37+
"w2": 0.5
38+
},
39+
"0,2\n\n\n2,0",
40+
{
41+
"x": 0.25,
42+
"w": 2,
43+
"h": 2,
44+
"w2": 0.5
45+
},
46+
"0,3\n\n\n3,0",
47+
{
48+
"x": 0.25,
49+
"w": 2,
50+
"h": 2,
51+
"w2": 0.5
52+
},
53+
"0,4\n\n\n4,0"
54+
],
55+
[
56+
{
57+
"y": 1.5,
58+
"x": 1
59+
},
60+
"0,1\n\n\n0,1\n\n\n\n\n\ne",
61+
{
62+
"x": 1.25
63+
},
64+
"1,1\n\n\n1,1\n\n\n\n\n\ne",
65+
{
66+
"x": 1.25
67+
},
68+
"2,1\n\n\n2,1\n\n\n\n\n\ne",
69+
{
70+
"x": 1.25
71+
},
72+
"3,1\n\n\n3,1\n\n\n\n\n\ne",
73+
{
74+
"x": 1.25
75+
},
76+
"4,1\n\n\n4,1\n\n\n\n\n\ne"
77+
],
78+
[
79+
{
80+
"y": -0.5
81+
},
82+
"0,0\n\n\n0,1",
83+
{
84+
"x": 1.25
85+
},
86+
"0,1\n\n\n1,1",
87+
{
88+
"x": 1.25
89+
},
90+
"0,2\n\n\n2,1",
91+
{
92+
"x": 1.25
93+
},
94+
"0,3\n\n\n3,1",
95+
{
96+
"x": 1.25
97+
},
98+
"0,4\n\n\n4,1"
99+
],
100+
[
101+
{
102+
"y": -0.5,
103+
"x": 1
104+
},
105+
"0,0\n\n\n0,1\n\n\n\n\n\ne",
106+
{
107+
"x": 1.25
108+
},
109+
"1,0\n\n\n1,1\n\n\n\n\n\ne",
110+
{
111+
"x": 1.25
112+
},
113+
"2,0\n\n\n2,1\n\n\n\n\n\ne",
114+
{
115+
"x": 1.25
116+
},
117+
"3,0\n\n\n3,1\n\n\n\n\n\ne",
118+
{
119+
"x": 1.25
120+
},
121+
"4,0\n\n\n4,1\n\n\n\n\n\ne"
122+
]
123+
]
124+
}
125+
}

0 commit comments

Comments
 (0)