forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Keyboard] add phantagom/baragon marcopad (qmk#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]>
- Loading branch information
Showing
7 changed files
with
152 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
25
keyboards/handwired/phantagom/baragon/keymaps/default/keymap.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ENCODER_MAP_ENABLE = yes |
25 changes: 25 additions & 0 deletions
25
keyboards/handwired/phantagom/baragon/keymaps/via/keymap.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
VIA_ENABLE = yes | ||
ENCODER_MAP_ENABLE = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Needed for RP2040 | ||
WS2812_DRIVER = vendor |