-
-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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/varan rgb numpad #20587
Merged
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,70 @@ | ||
{ | ||
"manufacturer": "Dennis Kruyt", | ||
"keyboard_name": "phantagom/varan", | ||
"maintainer": "dkruyt", | ||
"bootloader": "rp2040", | ||
"diode_direction": "COL2ROW", | ||
"features": { | ||
"bootmagic": true, | ||
"command": false, | ||
"console": false, | ||
"extrakey": true, | ||
"mousekey": true, | ||
"nkro": true, | ||
"rgblight": true | ||
}, | ||
"rgblight": { | ||
"led_count": 23, | ||
"pin": "GP28", | ||
"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 | ||
} | ||
}, | ||
"matrix_pins": { | ||
"cols": ["GP17", "GP16", "GP15", "GP14"], | ||
"rows": ["GP23", "GP22", "GP21", "GP20", "GP19", "GP18"] | ||
}, | ||
"processor": "RP2040", | ||
"url": "https://github.com/dkruyt/mk/tree/main/varan", | ||
"usb": { | ||
"vid": "0xF8E8", | ||
"pid": "0x0002", | ||
"device_version": "0.0.3" | ||
}, | ||
"layouts": { | ||
dkruyt marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"LAYOUT_numpad_6x4": { | ||
"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": [1, 3], "x": 3, "y": 1 }, | ||
{ "matrix": [2, 0], "x": 0, "y": 2 }, | ||
{ "matrix": [2, 1], "x": 1, "y": 2 }, | ||
{ "matrix": [2, 2], "x": 2, "y": 2 }, | ||
{ "matrix": [3, 0], "x": 0, "y": 3 }, | ||
{ "matrix": [3, 1], "x": 1, "y": 3 }, | ||
{ "matrix": [3, 2], "x": 2, "y": 3 }, | ||
{ "h": 2, "matrix": [2, 3], "x": 3, "y": 2 }, | ||
{ "matrix": [4, 0], "x": 0, "y": 4 }, | ||
{ "matrix": [4, 1], "x": 1, "y": 4 }, | ||
{ "matrix": [4, 2], "x": 2, "y": 4 }, | ||
{ "matrix": [5, 0], "w": 2, "x": 0, "y": 5 }, | ||
{ "matrix": [5, 2], "x": 2, "y": 5 }, | ||
{ "h": 2, "matrix": [4, 3], "x": 3, "y": 4 } | ||
] | ||
} | ||
} | ||
} |
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,54 @@ | ||
// Copyright 2023 QMK | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#include QMK_KEYBOARD_H | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
/* | ||
* ┌───┬───┬───┬───┐ | ||
* │Esc│Tab│MO1│Bsp│ | ||
* ├───┼───┼───┼───┤ | ||
* │Num│ / │ * │ - │ | ||
* ├───┼───┼───┼───┤ | ||
* │ 7 │ 8 │ 9 │ │ | ||
* ├───┼───┼───┤ + │ | ||
* │ 4 │ 5 │ 6 │ │ | ||
* ├───┼───┼───┼───┤ | ||
* │ 1 │ 2 │ 3 │ │ | ||
* ├───┴───┼───┤Ent│ | ||
* │ 0 │ . │ │ | ||
* └───────┴───┴───┘ | ||
*/ | ||
[0] = LAYOUT_numpad_6x4( | ||
KC_ESC, KC_TAB, MO(1), KC_BSPC, | ||
KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, | ||
KC_P7, KC_P8, KC_P9, | ||
KC_P4, KC_P5, KC_P6, KC_PPLS, | ||
KC_P1, KC_P2, KC_P3, | ||
KC_P0, KC_PDOT, KC_PENT | ||
), | ||
|
||
/* | ||
* ┌───┐───┬───┬───┐ | ||
* │Rst│Tab│MO1│Bsp│ | ||
* ├───┼───┼───┼───┤ | ||
* │RGB│RGB│RGB│ - │ | ||
* ├───┼───┼───┼───┤ | ||
* │Hom│ ↑ │PgU│ │ | ||
* ├───┼───┼───┤ + │ | ||
* │ ← │ │ → │ │ | ||
* ├───┼───┼───┤───┤ | ||
* │End│ ↓ │PgD│ │ | ||
* ├───┴───┼───┤Ent│ | ||
* │Insert │Del│ │ | ||
* └───────┴───┘───┘ | ||
*/ | ||
[1] = LAYOUT_numpad_6x4( | ||
QK_BOOT, _______, _______, _______, | ||
RGB_TOG, RGB_MOD, RGB_HUI, _______, | ||
KC_HOME, KC_UP, KC_PGUP, | ||
KC_LEFT, XXXXXXX, KC_RGHT, _______, | ||
KC_END, KC_DOWN, KC_PGDN, | ||
KC_INS, KC_DEL, _______ | ||
) | ||
}; |
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,54 @@ | ||
// Copyright 2023 QMK | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#include QMK_KEYBOARD_H | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
/* | ||
* ┌───┬───┬───┬───┐ | ||
* │Esc│Tab│MO1│Bsp│ | ||
* ├───┼───┼───┼───┤ | ||
* │Num│ / │ * │ - │ | ||
* ├───┼───┼───┼───┤ | ||
* │ 7 │ 8 │ 9 │ │ | ||
* ├───┼───┼───┤ + │ | ||
* │ 4 │ 5 │ 6 │ │ | ||
* ├───┼───┼───┼───┤ | ||
* │ 1 │ 2 │ 3 │ │ | ||
* ├───┴───┼───┤Ent│ | ||
* │ 0 │ . │ │ | ||
* └───────┴───┴───┘ | ||
*/ | ||
[0] = LAYOUT_numpad_6x4( | ||
KC_ESC, KC_TAB, MO(1), KC_BSPC, | ||
KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, | ||
KC_P7, KC_P8, KC_P9, | ||
KC_P4, KC_P5, KC_P6, KC_PPLS, | ||
KC_P1, KC_P2, KC_P3, | ||
KC_P0, KC_PDOT, KC_PENT | ||
), | ||
|
||
/* | ||
* ┌───┐───┬───┬───┐ | ||
* │Rst│Tab│MO1│Bsp│ | ||
* ├───┼───┼───┼───┤ | ||
* │RGB│RGB│RGB│ - │ | ||
* ├───┼───┼───┼───┤ | ||
* │Hom│ ↑ │PgU│ │ | ||
* ├───┼───┼───┤ + │ | ||
* │ ← │ │ → │ │ | ||
* ├───┼───┼───┤───┤ | ||
* │End│ ↓ │PgD│ │ | ||
* ├───┴───┼───┤Ent│ | ||
* │Insert │Del│ │ | ||
* └───────┴───┘───┘ | ||
*/ | ||
[1] = LAYOUT_numpad_6x4( | ||
QK_BOOT, _______, _______, _______, | ||
RGB_TOG, RGB_MOD, RGB_HUI, _______, | ||
KC_HOME, KC_UP, KC_PGUP, | ||
KC_LEFT, XXXXXXX, KC_RGHT, _______, | ||
KC_END, KC_DOWN, KC_PGDN, | ||
KC_INS, KC_DEL, _______ | ||
) | ||
}; |
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 @@ | ||
VIA_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,30 @@ | ||
# phantagom/varan | ||
|
||
[Varan](https://en.wikipedia.org/wiki/Varan) s a fictional monster, or kaiju, which first appeared in the 1958 film Varan the Unbelievable | ||
|
||
![phantagom/varan](https://i.imgur.com/EuGAMyeh.jpeg) | ||
![phantagom/varan](https://i.imgur.com/zO2ju9Ah.jpeg) | ||
|
||
A numpad with RGB strip based on a RP2040 controller. | ||
|
||
* Keyboard Maintainer: [Dennis Kruyt](https://github.com/dkruyt) | ||
* Project page: [baragon](https://github.com/dkruyt/mk/tree/main/varan) | ||
* Hardware Supported: *RP2040-Zero* | ||
|
||
Make example for this keyboard (after setting up your build environment): | ||
|
||
make phantagom/varan:default | ||
|
||
Flashing example for this keyboard: | ||
|
||
make phantagom/varan:default:flash | ||
|
||
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 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 back of the PCB - some may have pads you must short instead | ||
* **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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be migrated to "ws2812.pin", once it's merged. No action is needed, currently.