Skip to content

Commit 8b33ca9

Browse files
committed
Merge remote-tracking branch 'origin/master' into develop
2 parents a97ed8a + c7e114e commit 8b33ca9

File tree

10 files changed

+244
-0
lines changed

10 files changed

+244
-0
lines changed

keyboards/rad/config.h

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* This program is free software: you can redistribute it and/or modify
3+
* it under the terms of the GNU General Public License as published by
4+
* the Free Software Foundation, either version 2 of the License, or
5+
* (at your option) any later version.
6+
*
7+
* This program is distributed in the hope that it will be useful,
8+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
* GNU General Public License for more details.
11+
*
12+
* You should have received a copy of the GNU General Public License
13+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
14+
*/
15+
#pragma once
16+
17+
#include "config_common.h"
18+
19+
/* key matrix size */
20+
#define MATRIX_ROWS 4
21+
#define MATRIX_COLS 3
22+
23+
/* key matrix pins */
24+
#define MATRIX_ROW_PINS { D7, C6, B6, D0 }
25+
#define MATRIX_COL_PINS { B5, B4, E6 }
26+
#define UNUSED_PINS
27+
28+
/* COL2ROW or ROW2COL */
29+
#define DIODE_DIRECTION COL2ROW
30+
31+
/* Bootmagic key configuration */
32+
#define BOOTMAGIC_LITE_ROW 0
33+
#define BOOTMAGIC_LITE_COLUMN 2

keyboards/rad/info.json

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"keyboard_name": "rad",
3+
"manufacturer": "anubhavd7",
4+
"usb": {
5+
"vid": "0xFEED",
6+
"pid": "0x6060",
7+
"device_version": "0.0.1"
8+
},
9+
"layouts": {
10+
"LAYOUT": {
11+
"layout": [
12+
{
13+
"x": 1,
14+
"y": 0
15+
},
16+
{
17+
"x": 2,
18+
"y": 0
19+
},
20+
{
21+
"x": 0,
22+
"y": 1
23+
},
24+
{
25+
"x": 1,
26+
"y": 1
27+
},
28+
{
29+
"x": 2,
30+
"y": 1
31+
},
32+
{
33+
"x": 0,
34+
"y": 2
35+
},
36+
{
37+
"x": 1,
38+
"y": 2
39+
},
40+
{
41+
"x": 2,
42+
"y": 2
43+
},
44+
{
45+
"x": 0,
46+
"y": 3
47+
},
48+
{
49+
"x": 1,
50+
"y": 3
51+
},
52+
{
53+
"x": 2,
54+
"y": 3
55+
}
56+
]
57+
}
58+
}
59+
}
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* This program is free software: you can redistribute it and/or modify
3+
* it under the terms of the GNU General Public License as published by
4+
* the Free Software Foundation, either version 2 of the License, or
5+
* (at your option) any later version.
6+
*
7+
* This program is distributed in the hope that it will be useful,
8+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
* GNU General Public License for more details.
11+
*
12+
* You should have received a copy of the GNU General Public License
13+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
14+
*/
15+
#include QMK_KEYBOARD_H
16+
17+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
18+
[0] = LAYOUT(
19+
KC_SPC, KC_SPC,
20+
KC_SPC, KC_SPC, KC_SPC,
21+
KC_SPC, KC_SPC, KC_SPC,
22+
KC_SPC, KC_SPC, KC_SPC),
23+
};
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# rad - Default layout

keyboards/rad/keymaps/via/keymap.c

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* This program is free software: you can redistribute it and/or modify
3+
* it under the terms of the GNU General Public License as published by
4+
* the Free Software Foundation, either version 2 of the License, or
5+
* (at your option) any later version.
6+
*
7+
* This program is distributed in the hope that it will be useful,
8+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
* GNU General Public License for more details.
11+
*
12+
* You should have received a copy of the GNU General Public License
13+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
14+
*/
15+
#include QMK_KEYBOARD_H
16+
17+
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
18+
[0] = LAYOUT(
19+
KC_SPC, KC_SPC,
20+
KC_SPC, KC_SPC, KC_SPC,
21+
KC_SPC, KC_SPC, KC_SPC,
22+
KC_SPC, KC_SPC, KC_SPC),
23+
[1] = LAYOUT(
24+
_______, _______,
25+
_______, _______, _______,
26+
_______, _______, _______,
27+
_______, _______, _______
28+
),
29+
[2] = LAYOUT(
30+
_______, _______,
31+
_______, _______, _______,
32+
_______, _______, _______,
33+
_______, _______, _______
34+
),
35+
[3] = LAYOUT(
36+
_______, _______,
37+
_______, _______, _______,
38+
_______, _______, _______,
39+
_______, _______, _______
40+
)
41+
};

keyboards/rad/keymaps/via/rules.mk

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VIA_ENABLE = yes

keyboards/rad/rad.c

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* This program is free software: you can redistribute it and/or modify
3+
* it under the terms of the GNU General Public License as published by
4+
* the Free Software Foundation, either version 2 of the License, or
5+
* (at your option) any later version.
6+
*
7+
* This program is distributed in the hope that it will be useful,
8+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
* GNU General Public License for more details.
11+
*
12+
* You should have received a copy of the GNU General Public License
13+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
14+
*/
15+
#include "rad.h"

keyboards/rad/rad.h

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* This program is free software: you can redistribute it and/or modify
3+
* it under the terms of the GNU General Public License as published by
4+
* the Free Software Foundation, either version 2 of the License, or
5+
* (at your option) any later version.
6+
*
7+
* This program is distributed in the hope that it will be useful,
8+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10+
* GNU General Public License for more details.
11+
*
12+
* You should have received a copy of the GNU General Public License
13+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
14+
*/
15+
#pragma once
16+
17+
#include "quantum.h"
18+
19+
#define LAYOUT( \
20+
K01, K02, \
21+
K10, K11, K12, \
22+
K20, K21, K22, \
23+
K30, K31, K32 \
24+
) { \
25+
{ KC_NO, K01, K02 }, \
26+
{ K10, K11, K12 }, \
27+
{ K20, K21, K22 }, \
28+
{ K30, K31, K32 } \
29+
}

keyboards/rad/readme.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# rad
2+
3+
The Rad Macro Pad is a USB-C, Macro Pad with 11 keys powered by QMK
4+
5+
* Keyboard Maintainer: Anubhav Dhiman
6+
* Hardware Supported: ATmega32U4
7+
* Hardware Availability: Interest Check
8+
9+
Make example for this keyboard (after setting up your build environment):
10+
11+
make rad:default
12+
13+
Flashing example for this keyboard:
14+
15+
make rad:default:flash
16+
17+
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).
18+
## Bootloader
19+
20+
Enter the bootloader in 3 ways:
21+
22+
* **Bootmagic reset**: Hold down the key at (0,2) in the matrix (top right) and plug in the keyboard
23+
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
24+
* **Keycode in layout**: Press the key mapped to `RESET` if it is available

keyboards/rad/rules.mk

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# MCU name
2+
MCU = atmega32u4
3+
4+
# Bootloader selection
5+
BOOTLOADER = caterina
6+
7+
# Build Options
8+
# change yes to no to disable
9+
#
10+
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
11+
MOUSEKEY_ENABLE = yes # Mouse keys
12+
EXTRAKEY_ENABLE = yes # Audio control and System control
13+
CONSOLE_ENABLE = no # Console for debug
14+
COMMAND_ENABLE = no # Commands for debug and configuration
15+
NKRO_ENABLE = yes # Enable N-Key Rollover
16+
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17+
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18+
AUDIO_ENABLE = no # Audio output

0 commit comments

Comments
 (0)