Skip to content

Commit 9b41e81

Browse files
dkruytelpekeninwaffle87drashnakeyboard-magpie
authored
[Keyboard] add phantagom/baragon marcopad (#20543)
Co-authored-by: Pablo Martínez <[email protected]> Co-authored-by: jack <[email protected]> Co-authored-by: Drashna Jaelre <[email protected]> Co-authored-by: Tom Barnes <[email protected]>
1 parent e206a16 commit 9b41e81

File tree

7 files changed

+152
-0
lines changed

7 files changed

+152
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"manufacturer": "Dennis Kruyt",
3+
"keyboard_name": "phantagom/baragon",
4+
"maintainer": "dkruyt",
5+
"bootloader": "rp2040",
6+
"diode_direction": "COL2ROW",
7+
"features": {
8+
"bootmagic": true,
9+
"command": false,
10+
"console": false,
11+
"extrakey": true,
12+
"mousekey": true,
13+
"nkro": true,
14+
"rgblight": true,
15+
"encoder": true,
16+
},
17+
"rgblight": {
18+
"led_count": 12,
19+
"pin": "GP15",
20+
"animations": {
21+
"alternating": true,
22+
"breathing": true,
23+
"christmas": true,
24+
"knight": true,
25+
"rainbow_mood": true,
26+
"rainbow_swirl": true,
27+
"rgb_test": true,
28+
"snake": true,
29+
"static_gradient": true,
30+
"twinkle": true
31+
}
32+
},
33+
"encoder": {
34+
"rotary": [
35+
{ "pin_a": "GP6", "pin_b": "GP7", "resolution": 2 }
36+
]
37+
},
38+
"matrix_pins": {
39+
"rows": [ "GP8", "GP10", "GP9" ],
40+
"cols": [ "GP11", "GP12", "GP13", "GP14" ]
41+
},
42+
"processor": "RP2040",
43+
"url": "https://github.com/dkruyt/mk/tree/main/baragon",
44+
"usb": {
45+
"vid": "0xF8E8",
46+
"pid": "0x0004",
47+
"device_version": "0.0.3"
48+
},
49+
"layouts": {
50+
"LAYOUT": {
51+
"layout": [
52+
{"matrix": [0, 0], "x": 0, "y": 0},
53+
{"matrix": [0, 1], "x": 1, "y": 0},
54+
{"matrix": [0, 2], "x": 2, "y": 0},
55+
{"matrix": [0, 3], "x": 3, "y": 0},
56+
57+
{"matrix": [1, 0], "x": 0, "y": 1},
58+
{"matrix": [1, 1], "x": 1, "y": 1},
59+
{"matrix": [1, 2], "x": 2, "y": 1},
60+
61+
{"matrix": [2, 0], "x": 0, "y": 2},
62+
{"matrix": [2, 1], "x": 1, "y": 2},
63+
{"matrix": [2, 2], "x": 2, "y": 2}
64+
65+
]
66+
}
67+
}
68+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Copyright 2023 <[email protected]>
2+
// SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
#include QMK_KEYBOARD_H
5+
6+
7+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
8+
[0] = LAYOUT( /* Base */
9+
KC_P1, KC_P2, KC_P3, KC_P4,
10+
KC_P5, KC_P6, KC_P7,
11+
KC_P8, MO(1), KC_P9
12+
),
13+
[1] = LAYOUT(
14+
RGB_TOG , RGB_MOD , RGB_HUI, _______,
15+
_______, _______, _______,
16+
_______, _______, _______
17+
),
18+
};
19+
20+
#if defined(ENCODER_MAP_ENABLE)
21+
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
22+
[0] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) },
23+
[1] = { ENCODER_CCW_CW(KC_MRWD, KC_MFFD) },
24+
};
25+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ENCODER_MAP_ENABLE = yes
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Copyright 2023 <[email protected]>
2+
// SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
#include QMK_KEYBOARD_H
5+
6+
7+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
8+
[0] = LAYOUT( /* Base */
9+
KC_P1, KC_P2, KC_P3, KC_P4,
10+
KC_P5, KC_P6, KC_P7,
11+
KC_P8, MO(1), KC_P9
12+
),
13+
[1] = LAYOUT(
14+
RGB_TOG , RGB_MOD , RGB_HUI, _______,
15+
_______, _______, _______,
16+
_______, _______, _______
17+
),
18+
};
19+
20+
#if defined(ENCODER_MAP_ENABLE)
21+
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
22+
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
23+
[1] = { ENCODER_CCW_CW(KC_MRWD, KC_MFFD) },
24+
};
25+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VIA_ENABLE = yes
2+
ENCODER_MAP_ENABLE = yes
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# phantagom/baragon
2+
3+
[Baragon](https://en.wikipedia.org/wiki/Baragon) is a fictional monster, or kaiju, which first appeared in Ishirō Honda's 1965 film Frankenstein vs. Baragon.
4+
5+
![phantagom/baragon](https://i.imgur.com/17RkGUPh.jpeg)
6+
7+
A macro pad, 3x3 with rgb ring and rotary encoder, via compatible. Keys can be rotated, so macropad is usable at different angles.
8+
9+
* Keyboard Maintainer: [Dennis Kruyt](https://github.com/dkruyt)
10+
* Project page: [baragon](https://github.com/dkruyt/mk/tree/main/baragon)
11+
* Hardware Supported: *RP2040-Zero*
12+
13+
Make example for this keyboard (after setting up your build environment):
14+
15+
make phantagom/baragon:default
16+
17+
Flashing example for this keyboard:
18+
19+
Copy the uf2 file to the rp2040
20+
21+
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).
22+
23+
## Bootloader
24+
25+
Enter the bootloader mode in 3 ways:
26+
27+
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
28+
* **Physical reset button**: Briefly press the button on the top of the PCB
29+
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Needed for RP2040
2+
WS2812_DRIVER = vendor

0 commit comments

Comments
 (0)