Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[keyboard] add phantagom/baragon marcopad #20543

Merged
merged 23 commits into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
51a49f8
add baragon marcopad
dkruyt Apr 24, 2023
f54b565
Update keyboards/phantagom/baragon/config.h
dkruyt Apr 24, 2023
51380f5
Update keyboards/phantagom/baragon/info.json
dkruyt Apr 24, 2023
d874061
Update keyboards/phantagom/baragon/keymaps/default/keymap.c
dkruyt Apr 24, 2023
ef4fb39
Update keyboards/phantagom/baragon/keymaps/via/keymap.c
dkruyt Apr 24, 2023
c29b50f
Update keyboards/phantagom/baragon/keymaps/default/keymap.c
dkruyt Apr 24, 2023
e181fcc
Update keyboards/phantagom/baragon/keymaps/via/keymap.c
dkruyt Apr 24, 2023
55b88af
Update keyboards/phantagom/baragon/keymaps/via/keymap.c
dkruyt Apr 24, 2023
e9a2e2f
Update keyboards/phantagom/baragon/keymaps/default/keymap.c
dkruyt Apr 24, 2023
f6adb54
Update keyboards/phantagom/baragon/info.json
dkruyt Apr 24, 2023
bce4120
Update keyboards/phantagom/baragon/keymaps/via/keymap.c
dkruyt Apr 24, 2023
34891ba
Update keyboards/phantagom/baragon/keymaps/default/keymap.c
dkruyt Apr 24, 2023
ebcdb7d
Update keyboards/phantagom/baragon/readme.md
dkruyt Apr 24, 2023
d2305db
Update keyboards/phantagom/baragon/info.json
dkruyt Apr 24, 2023
3da293b
remove empty config.h
dkruyt Apr 24, 2023
e3d679a
use encoder map
dkruyt Apr 24, 2023
5e28ee9
use encoder map
dkruyt Apr 24, 2023
fed3970
Update keyboards/phantagom/baragon/info.json
dkruyt Apr 24, 2023
b1a38ac
ENCODER_MAP_ENABLE to keymaps rules.mk
dkruyt Apr 24, 2023
6802a02
Update keyboards/phantagom/baragon/readme.md
dkruyt Apr 25, 2023
6dba886
Update keyboards/phantagom/baragon/readme.md
dkruyt Apr 27, 2023
bd2ce6f
Update keyboards/phantagom/baragon/readme.md
dkruyt Apr 27, 2023
11461af
move handwired
dkruyt Apr 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions keyboards/handwired/phantagom/baragon/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"manufacturer": "Dennis Kruyt",
"keyboard_name": "phantagom/baragon",
"maintainer": "dkruyt",
"bootloader": "rp2040",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
"rgblight": true,
"encoder": true,
},
"rgblight": {
"led_count": 12,
"pin": "GP15",
"animations": {
"alternating": true,
"breathing": true,
"christmas": true,
"knight": true,
"rainbow_mood": true,
"rainbow_swirl": true,
"rgb_test": true,
"snake": true,
"static_gradient": true,
"twinkle": true
}
},
"encoder": {
"rotary": [
{ "pin_a": "GP6", "pin_b": "GP7", "resolution": 2 }
]
},
"matrix_pins": {
"rows": [ "GP8", "GP10", "GP9" ],
"cols": [ "GP11", "GP12", "GP13", "GP14" ]
},
"processor": "RP2040",
"url": "https://github.com/dkruyt/mk/tree/main/baragon",
"usb": {
"vid": "0xF8E8",
"pid": "0x0004",
"device_version": "0.0.3"
},
"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": [1, 0], "x": 0, "y": 1},
{"matrix": [1, 1], "x": 1, "y": 1},
{"matrix": [1, 2], "x": 2, "y": 1},

{"matrix": [2, 0], "x": 0, "y": 2},
{"matrix": [2, 1], "x": 1, "y": 2},
{"matrix": [2, 2], "x": 2, "y": 2}

]
}
}
}
25 changes: 25 additions & 0 deletions keyboards/handwired/phantagom/baragon/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Copyright 2023 <[email protected]>
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H


const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT( /* Base */
KC_P1, KC_P2, KC_P3, KC_P4,
KC_P5, KC_P6, KC_P7,
KC_P8, MO(1), KC_P9
),
[1] = LAYOUT(
RGB_TOG , RGB_MOD , RGB_HUI, _______,
_______, _______, _______,
_______, _______, _______
),
};

#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[0] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD) },
[1] = { ENCODER_CCW_CW(KC_MRWD, KC_MFFD) },
};
#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes
25 changes: 25 additions & 0 deletions keyboards/handwired/phantagom/baragon/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Copyright 2023 <[email protected]>
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H


const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT( /* Base */
KC_P1, KC_P2, KC_P3, KC_P4,
KC_P5, KC_P6, KC_P7,
KC_P8, MO(1), KC_P9
),
[1] = LAYOUT(
RGB_TOG , RGB_MOD , RGB_HUI, _______,
_______, _______, _______,
_______, _______, _______
),
};

#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[1] = { ENCODER_CCW_CW(KC_MRWD, KC_MFFD) },
};
#endif
2 changes: 2 additions & 0 deletions keyboards/handwired/phantagom/baragon/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VIA_ENABLE = yes
ENCODER_MAP_ENABLE = yes
29 changes: 29 additions & 0 deletions keyboards/handwired/phantagom/baragon/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# phantagom/baragon

[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.

![phantagom/baragon](https://i.imgur.com/17RkGUPh.jpeg)

A macro pad, 3x3 with rgb ring and rotary encoder, via compatible. Keys can be rotated, so macropad is usable at different angles.

* Keyboard Maintainer: [Dennis Kruyt](https://github.com/dkruyt)
* Project page: [baragon](https://github.com/dkruyt/mk/tree/main/baragon)
* Hardware Supported: *RP2040-Zero*

Make example for this keyboard (after setting up your build environment):

make phantagom/baragon:default

Flashing example for this keyboard:

Copy the uf2 file to the rp2040

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).

## Bootloader

Enter the bootloader mode in 3 ways:

* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
* **Physical reset button**: Briefly press the button on the top of the PCB
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
2 changes: 2 additions & 0 deletions keyboards/handwired/phantagom/baragon/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Needed for RP2040
WS2812_DRIVER = vendor