~ruther/qmk_firmware

8b33ca9fe28186cafbe4e017d43838d863421a92 — QMK Bot 3 years ago a97ed8a1 + c7e114e
Merge remote-tracking branch 'origin/master' into develop
A keyboards/rad/config.h => keyboards/rad/config.h +33 -0
@@ 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

A keyboards/rad/info.json => keyboards/rad/info.json +59 -0
@@ 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
        }
      ]
    }
  }
}
\ No newline at end of file

A keyboards/rad/keymaps/default/keymap.c => keyboards/rad/keymaps/default/keymap.c +23 -0
@@ 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),
};

A keyboards/rad/keymaps/default/readme.md => keyboards/rad/keymaps/default/readme.md +1 -0
@@ 0,0 1,1 @@
# rad - Default layout

A keyboards/rad/keymaps/via/keymap.c => keyboards/rad/keymaps/via/keymap.c +41 -0
@@ 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(
                 _______, _______, 
        _______, _______, _______,
        _______, _______, _______,
        _______, _______, _______
    )
};

A keyboards/rad/keymaps/via/rules.mk => keyboards/rad/keymaps/via/rules.mk +1 -0
@@ 0,0 1,1 @@
VIA_ENABLE = yes

A keyboards/rad/rad.c => keyboards/rad/rad.c +15 -0
@@ 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"

A keyboards/rad/rad.h => keyboards/rad/rad.h +29 -0
@@ 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 }  \
}

A keyboards/rad/readme.md => keyboards/rad/readme.md +24 -0
@@ 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

A keyboards/rad/rules.mk => keyboards/rad/rules.mk +18 -0
@@ 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