Skip to content

Commit e206a16

Browse files
dkruytdrashna
andauthored
[Keyboard] add phantagom/varan rgb numpad (#20587)
Co-authored-by: Drashna Jaelre <[email protected]>
1 parent 62a9094 commit e206a16

File tree

6 files changed

+212
-0
lines changed

6 files changed

+212
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"manufacturer": "Dennis Kruyt",
3+
"keyboard_name": "phantagom/varan",
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+
},
16+
"rgblight": {
17+
"led_count": 23,
18+
"pin": "GP28",
19+
"animations": {
20+
"alternating": true,
21+
"breathing": true,
22+
"christmas": true,
23+
"knight": true,
24+
"rainbow_mood": true,
25+
"rainbow_swirl": true,
26+
"rgb_test": true,
27+
"snake": true,
28+
"static_gradient": true,
29+
"twinkle": true
30+
}
31+
},
32+
"matrix_pins": {
33+
"cols": ["GP17", "GP16", "GP15", "GP14"],
34+
"rows": ["GP23", "GP22", "GP21", "GP20", "GP19", "GP18"]
35+
},
36+
"processor": "RP2040",
37+
"url": "https://github.com/dkruyt/mk/tree/main/varan",
38+
"usb": {
39+
"vid": "0xF8E8",
40+
"pid": "0x0002",
41+
"device_version": "0.0.3"
42+
},
43+
"community_layouts": ["numpad_6x4"],
44+
"layouts": {
45+
"LAYOUT_numpad_6x4": {
46+
"layout": [
47+
{ "matrix": [0, 0], "x": 0, "y": 0 },
48+
{ "matrix": [0, 1], "x": 1, "y": 0 },
49+
{ "matrix": [0, 2], "x": 2, "y": 0 },
50+
{ "matrix": [0, 3], "x": 3, "y": 0 },
51+
{ "matrix": [1, 0], "x": 0, "y": 1 },
52+
{ "matrix": [1, 1], "x": 1, "y": 1 },
53+
{ "matrix": [1, 2], "x": 2, "y": 1 },
54+
{ "matrix": [1, 3], "x": 3, "y": 1 },
55+
{ "matrix": [2, 0], "x": 0, "y": 2 },
56+
{ "matrix": [2, 1], "x": 1, "y": 2 },
57+
{ "matrix": [2, 2], "x": 2, "y": 2 },
58+
{ "matrix": [3, 0], "x": 0, "y": 3 },
59+
{ "matrix": [3, 1], "x": 1, "y": 3 },
60+
{ "matrix": [3, 2], "x": 2, "y": 3 },
61+
{ "h": 2, "matrix": [2, 3], "x": 3, "y": 2 },
62+
{ "matrix": [4, 0], "x": 0, "y": 4 },
63+
{ "matrix": [4, 1], "x": 1, "y": 4 },
64+
{ "matrix": [4, 2], "x": 2, "y": 4 },
65+
{ "matrix": [5, 0], "w": 2, "x": 0, "y": 5 },
66+
{ "matrix": [5, 2], "x": 2, "y": 5 },
67+
{ "h": 2, "matrix": [4, 3], "x": 3, "y": 4 }
68+
]
69+
}
70+
}
71+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// Copyright 2023 QMK
2+
// SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
#include QMK_KEYBOARD_H
5+
6+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
7+
/*
8+
* ┌───┬───┬───┬───┐
9+
* │Esc│Tab│MO1│Bsp│
10+
* ├───┼───┼───┼───┤
11+
* │Num│ / │ * │ - │
12+
* ├───┼───┼───┼───┤
13+
* │ 7 │ 8 │ 9 │ │
14+
* ├───┼───┼───┤ + │
15+
* │ 4 │ 5 │ 6 │ │
16+
* ├───┼───┼───┼───┤
17+
* │ 1 │ 2 │ 3 │ │
18+
* ├───┴───┼───┤Ent│
19+
* │ 0 │ . │ │
20+
* └───────┴───┴───┘
21+
*/
22+
[0] = LAYOUT_numpad_6x4(
23+
KC_ESC, KC_TAB, MO(1), KC_BSPC,
24+
KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
25+
KC_P7, KC_P8, KC_P9,
26+
KC_P4, KC_P5, KC_P6, KC_PPLS,
27+
KC_P1, KC_P2, KC_P3,
28+
KC_P0, KC_PDOT, KC_PENT
29+
),
30+
31+
/*
32+
* ┌───┐───┬───┬───┐
33+
* │Rst│Tab│MO1│Bsp│
34+
* ├───┼───┼───┼───┤
35+
* │RGB│RGB│RGB│ - │
36+
* ├───┼───┼───┼───┤
37+
* │Hom│ ↑ │PgU│ │
38+
* ├───┼───┼───┤ + │
39+
* │ ← │ │ → │ │
40+
* ├───┼───┼───┤───┤
41+
* │End│ ↓ │PgD│ │
42+
* ├───┴───┼───┤Ent│
43+
* │Insert │Del│ │
44+
* └───────┴───┘───┘
45+
*/
46+
[1] = LAYOUT_numpad_6x4(
47+
QK_BOOT, _______, _______, _______,
48+
RGB_TOG, RGB_MOD, RGB_HUI, _______,
49+
KC_HOME, KC_UP, KC_PGUP,
50+
KC_LEFT, XXXXXXX, KC_RGHT, _______,
51+
KC_END, KC_DOWN, KC_PGDN,
52+
KC_INS, KC_DEL, _______
53+
)
54+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// Copyright 2023 QMK
2+
// SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
#include QMK_KEYBOARD_H
5+
6+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
7+
/*
8+
* ┌───┬───┬───┬───┐
9+
* │Esc│Tab│MO1│Bsp│
10+
* ├───┼───┼───┼───┤
11+
* │Num│ / │ * │ - │
12+
* ├───┼───┼───┼───┤
13+
* │ 7 │ 8 │ 9 │ │
14+
* ├───┼───┼───┤ + │
15+
* │ 4 │ 5 │ 6 │ │
16+
* ├───┼───┼───┼───┤
17+
* │ 1 │ 2 │ 3 │ │
18+
* ├───┴───┼───┤Ent│
19+
* │ 0 │ . │ │
20+
* └───────┴───┴───┘
21+
*/
22+
[0] = LAYOUT_numpad_6x4(
23+
KC_ESC, KC_TAB, MO(1), KC_BSPC,
24+
KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
25+
KC_P7, KC_P8, KC_P9,
26+
KC_P4, KC_P5, KC_P6, KC_PPLS,
27+
KC_P1, KC_P2, KC_P3,
28+
KC_P0, KC_PDOT, KC_PENT
29+
),
30+
31+
/*
32+
* ┌───┐───┬───┬───┐
33+
* │Rst│Tab│MO1│Bsp│
34+
* ├───┼───┼───┼───┤
35+
* │RGB│RGB│RGB│ - │
36+
* ├───┼───┼───┼───┤
37+
* │Hom│ ↑ │PgU│ │
38+
* ├───┼───┼───┤ + │
39+
* │ ← │ │ → │ │
40+
* ├───┼───┼───┤───┤
41+
* │End│ ↓ │PgD│ │
42+
* ├───┴───┼───┤Ent│
43+
* │Insert │Del│ │
44+
* └───────┴───┘───┘
45+
*/
46+
[1] = LAYOUT_numpad_6x4(
47+
QK_BOOT, _______, _______, _______,
48+
RGB_TOG, RGB_MOD, RGB_HUI, _______,
49+
KC_HOME, KC_UP, KC_PGUP,
50+
KC_LEFT, XXXXXXX, KC_RGHT, _______,
51+
KC_END, KC_DOWN, KC_PGDN,
52+
KC_INS, KC_DEL, _______
53+
)
54+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VIA_ENABLE = yes
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# phantagom/varan
2+
3+
[Varan](https://en.wikipedia.org/wiki/Varan) is a fictional monster, or kaiju, which first appeared in the 1958 film Varan the Unbelievable
4+
5+
![phantagom/varan](https://i.imgur.com/EuGAMyeh.jpeg)
6+
![phantagom/varan](https://i.imgur.com/zO2ju9Ah.jpeg)
7+
8+
A numpad with RGB strip based on a RP2040 controller.
9+
10+
* Keyboard Maintainer: [Dennis Kruyt](https://github.com/dkruyt)
11+
* Project page: [varan](https://github.com/dkruyt/mk/tree/main/varan)
12+
* Hardware Supported: *RP2040-Zero*
13+
14+
Make example for this keyboard (after setting up your build environment):
15+
16+
make phantagom/varan:default
17+
18+
Flashing example for this keyboard:
19+
20+
make phantagom/varan:default:flash
21+
22+
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).
23+
24+
## Bootloader
25+
26+
Enter the bootloader in 3 ways:
27+
28+
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
29+
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
30+
* **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)