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

add new keyboard rad #17088

Merged
merged 40 commits into from
May 20, 2022
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
1ee99fe
Add files via upload
anubhavd7 May 14, 2022
042aad7
Add files via upload
anubhavd7 May 14, 2022
c0f76b4
Update keymap.c
anubhavd7 May 14, 2022
4fe3256
Update keymap.c
anubhavd7 May 14, 2022
d2b4069
Update keymap.c
anubhavd7 May 14, 2022
64e8254
Update keymap.c
anubhavd7 May 14, 2022
0784ccc
Rename Makefile to readme.md
anubhavd7 May 14, 2022
c14a7cf
Update config.h
anubhavd7 May 14, 2022
2a3e1c3
Update config.h
anubhavd7 May 14, 2022
f32bf06
Update keymap.c
anubhavd7 May 14, 2022
f6c5225
Update rad.h
anubhavd7 May 14, 2022
812e1d6
Update rad.h
anubhavd7 May 14, 2022
4e924ff
Update rad.h
anubhavd7 May 14, 2022
da40a6b
Update rules.mk
anubhavd7 May 14, 2022
725ec28
Update keymap.c
anubhavd7 May 14, 2022
18194a8
Merge branch 'qmk:master' into master
anubhavd7 May 14, 2022
ae5a8b2
Delete vial.json
anubhavd7 May 14, 2022
7a3939d
Update info.json
anubhavd7 May 14, 2022
597941b
Update keymap.c
anubhavd7 May 15, 2022
7b90a26
Update keymap.c
anubhavd7 May 15, 2022
6978c97
Update keymap.c
anubhavd7 May 15, 2022
e89793a
Update rules.mk
anubhavd7 May 15, 2022
57852d5
Update config.h
anubhavd7 May 15, 2022
c9383ed
Update keymap.c
anubhavd7 May 15, 2022
3f0b272
Update keymap.c
anubhavd7 May 15, 2022
9639818
Update readme.md
anubhavd7 May 15, 2022
acce765
Update readme.md
anubhavd7 May 15, 2022
6437dd0
Merge branch 'qmk:master' into master
anubhavd7 May 16, 2022
6e8b3d0
Merge branch 'qmk:master' into master
anubhavd7 May 16, 2022
96cda2f
Update readme.md
anubhavd7 May 17, 2022
8fa3bea
Merge branch 'qmk:master' into master
anubhavd7 May 17, 2022
6c319c5
Merge branch 'qmk:master' into master
anubhavd7 May 17, 2022
9943f61
Update info.json
anubhavd7 May 17, 2022
c8b0e60
Merge branch 'qmk:master' into master
anubhavd7 May 17, 2022
f77c613
Fix compile and line ending issues
zvecr May 17, 2022
f0a8e97
Format files, fix bootmagic
zvecr May 17, 2022
c9158a9
Merge branch 'qmk:master' into master
anubhavd7 May 18, 2022
119e58e
Merge branch 'qmk:master' into master
anubhavd7 May 19, 2022
2c6884c
Merge branch 'qmk:master' into master
anubhavd7 May 19, 2022
5a69f6a
Merge branch 'qmk:master' into master
anubhavd7 May 20, 2022
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
33 changes: 33 additions & 0 deletions keyboards/rad/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

#include "config_common.h"

/* key matrix size */
#define MATRIX_ROWS 4
#define MATRIX_COLS 3

/* key matrix pins */
#define MATRIX_ROW_PINS { D7, C6, B6, D0 }
#define MATRIX_COL_PINS { B5, B4, E6 }
#define UNUSED_PINS

/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

/* Bootmagic key configuration */
#define BOOTMAGIC_LITE_ROW 0
#define BOOTMAGIC_LITE_COLUMN 2
59 changes: 59 additions & 0 deletions keyboards/rad/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"keyboard_name": "rad",
"manufacturer": "anubhavd7",
"usb": {
"vid": "0xFEED",
"pid": "0x6060",
"device_version": "0.0.1"
},
"layouts": {
"LAYOUT": {
"layout": [
{
"x": 1,
"y": 0
},
{
"x": 2,
"y": 0
},
{
"x": 0,
"y": 1
},
{
"x": 1,
"y": 1
},
{
"x": 2,
"y": 1
},
{
"x": 0,
"y": 2
},
{
"x": 1,
"y": 2
},
{
"x": 2,
"y": 2
},
{
"x": 0,
"y": 3
},
{
"x": 1,
"y": 3
},
{
"x": 2,
"y": 3
}
]
}
}
}
23 changes: 23 additions & 0 deletions keyboards/rad/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_SPC, KC_SPC,
KC_SPC, KC_SPC, KC_SPC,
KC_SPC, KC_SPC, KC_SPC,
KC_SPC, KC_SPC, KC_SPC),
};
1 change: 1 addition & 0 deletions keyboards/rad/keymaps/default/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# rad - Default layout
41 changes: 41 additions & 0 deletions keyboards/rad/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_SPC, KC_SPC,
KC_SPC, KC_SPC, KC_SPC,
KC_SPC, KC_SPC, KC_SPC,
KC_SPC, KC_SPC, KC_SPC),
[1] = LAYOUT(
_______, _______,
_______, _______, _______,
_______, _______, _______,
_______, _______, _______
),
[2] = LAYOUT(
_______, _______,
_______, _______, _______,
_______, _______, _______,
_______, _______, _______
),
[3] = LAYOUT(
_______, _______,
_______, _______, _______,
_______, _______, _______,
_______, _______, _______
)
};
1 change: 1 addition & 0 deletions keyboards/rad/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VIA_ENABLE = yes
15 changes: 15 additions & 0 deletions keyboards/rad/rad.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "rad.h"
29 changes: 29 additions & 0 deletions keyboards/rad/rad.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

#include "quantum.h"

#define LAYOUT( \
K01, K02, \
K10, K11, K12, \
K20, K21, K22, \
K30, K31, K32 \
) { \
{ KC_NO, K01, K02 }, \
{ K10, K11, K12 }, \
{ K20, K21, K22 }, \
{ K30, K31, K32 } \
}
24 changes: 24 additions & 0 deletions keyboards/rad/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# rad

The Rad Macro Pad is a USB-C, Macro Pad with 11 keys powered by QMK

* Keyboard Maintainer: Anubhav Dhiman
* Hardware Supported: ATmega32U4
* Hardware Availability: Interest Check

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

make rad:default

Flashing example for this keyboard:

make rad: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,2) in the matrix (top right) 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 `RESET` if it is available
18 changes: 18 additions & 0 deletions keyboards/rad/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# MCU name
MCU = atmega32u4

# Bootloader selection
BOOTLOADER = caterina

# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = yes # Enable N-Key Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output