~ruther/qmk_firmware

aee48b8aabc8f9d0b7d11f0fa77879e40337d224 — arnstadm 3 years ago fb150e0
[Keyboard] add ogrn (#17983)

Co-authored-by: Drashna Jaelre <drashna@live.com>
A keyboards/akb/ogrn/config.h => keyboards/akb/ogrn/config.h +20 -0
@@ 0,0 1,20 @@
// Copyright 2022 arnstadm (@arnstadm)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

/*
 * Feature disable options
 *  These options are also useful to firmware size reduction.
 */

/* disable debug print */
//#define NO_DEBUG

/* disable print */
//#define NO_PRINT

/* disable action features */
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT

A keyboards/akb/ogrn/info.json => keyboards/akb/ogrn/info.json +59 -0
@@ 0,0 1,59 @@
{
    "manufacturer": "akb",
    "keyboard_name": "akb/ogrn",
    "maintainer": "arnstadm",
    "bootloader": "atmel-dfu",
    "features": {
        "bootmagic": true,
        "command": false,
        "console": false,
        "extrakey": true,
        "mousekey": true,
        "nkro": true
    },
    "matrix_pins": {
        "direct": [
            ["F1", "E6", "B2", "D2"],
            ["F5", "F0", "B1", "D1"],
            ["F6", "F7", "D5", "D3"],
            ["C7", "C6", "D6", "D4"],
            ["B5", "B6", "D7", "B4"]
        ]
    },
    "indicators": {
        "num_lock": "F4"
    },
    "processor": "atmega32u4",
    "url": "https://alchemistkeyboards.com/projects/keyboards/ogr/",
    "usb": {
        "device_version": "1.0.0",
        "pid": "0x4F4E",
        "vid": "0x414B"
    },
  "community_layouts": [
    "numpad_5x4"
  ],
    "layouts": {
        "LAYOUT_numpad_5x4": {
            "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": [2, 0], "x": 0, "y": 2 },
                { "matrix": [2, 1], "x": 1, "y": 2 },
                { "matrix": [2, 2], "x": 2, "y": 2 },
                { "h": 2, "matrix": [1, 3], "x": 3, "y": 1 },
                { "matrix": [3, 0], "x": 0, "y": 3 },
                { "matrix": [3, 1], "x": 1, "y": 3 },
                { "matrix": [3, 2], "x": 2, "y": 3 },
                { "matrix": [4, 0], "w": 2, "x": 0, "y": 4 },
                { "matrix": [4, 2], "x": 2, "y": 4 },
                { "h": 2, "matrix": [3, 3], "x": 3, "y": 3 }
            ]
        }
    }
}
\ No newline at end of file

A keyboards/akb/ogrn/keymaps/default/keymap.c => keyboards/akb/ogrn/keymaps/default/keymap.c +48 -0
@@ 0,0 1,48 @@
// Copyright 2021 Martin Arnstad (@arnstadm)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
    /*
     * ┌───┬───┬───┬───┐
     * │TG1│ / │ * │ - │
     * ├───┼───┼───┼───┤
     * │ 7 │ 8 │ 9 │   │
     * ├───┼───┼───┤ + │
     * │ 4 │ 5 │ 6 │   │
     * ├───┼───┼───┼───┤
     * │ 1 │ 2 │ 3 │   │
     * ├───┴───┼───┤Ent│
     * │   0   │ . │   │
     * └───────┴───┴───┘
     */
    [0] = LAYOUT_numpad_5x4(
        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
    ),

    /*
     * ┌───┬───┬───┬───┐
     * │TG1│ / │ * │ - │
     * ┌───┬───┬───┐───┤
     * │Hom│ ↑ │PgU│   │
     * ├───┼───┼───┤ + │
     * │ ← │   │ → │   │
     * ├───┼───┼───┤───┤
     * │End│ ↓ │PgD│   │
     * ├───┴───┼───┤Ent│
     * │Insert │Del│   │
     * └───────┴───┘───┘
     */
    [1] = LAYOUT_numpad_5x4(
        _______, _______, _______, _______,
        KC_HOME, KC_UP,   KC_PGUP,
        KC_LEFT, XXXXXXX, KC_RGHT, _______,
        KC_END,  KC_DOWN, KC_PGDN,
        KC_INS,           KC_DEL,  _______
    )
};

A keyboards/akb/ogrn/keymaps/via/keymap.c => keyboards/akb/ogrn/keymaps/via/keymap.c +48 -0
@@ 0,0 1,48 @@
// Copyright 2021 Martin Arnstad (@arnstadm)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
    /*
     * ┌───┬───┬───┬───┐
     * │NUM│ / │ * │ - │
     * ├───┼───┼───┼───┤
     * │ 7 │ 8 │ 9 │   │
     * ├───┼───┼───┤ + │
     * │ 4 │ 5 │ 6 │   │
     * ├───┼───┼───┼───┤
     * │ 1 │ 2 │ 3 │   │
     * ├───┴───┼───┤Ent│
     * │   0   │ . │   │
     * └───────┴───┴───┘
     */
    [0] = LAYOUT_numpad_5x4(
        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
    ),

    /*
     * ┌───┬───┬───┬───┐
     * │   │ / │ * │ - │
     * ┌───┬───┬───┐───┤
     * │Hom│ ↑ │PgU│   │
     * ├───┼───┼───┤ + │
     * │ ← │   │ → │   │
     * ├───┼───┼───┤───┤
     * │End│ ↓ │PgD│   │
     * ├───┴───┼───┤Ent│
     * │Insert │Del│   │
     * └───────┴───┘───┘
     */
    [1] = LAYOUT_numpad_5x4(
        _______, _______, _______, _______,
        KC_HOME, KC_UP,   KC_PGUP,
        KC_LEFT, XXXXXXX, KC_RGHT, _______,
        KC_END,  KC_DOWN, KC_PGDN,
        KC_INS,           KC_DEL,  _______
    )
};

A keyboards/akb/ogrn/keymaps/via/rules.mk => keyboards/akb/ogrn/keymaps/via/rules.mk +1 -0
@@ 0,0 1,1 @@
VIA_ENABLE = yes
\ No newline at end of file

A keyboards/akb/ogrn/readme.md => keyboards/akb/ogrn/readme.md +27 -0
@@ 0,0 1,27 @@
# akb/ogrn

![akb/ogrn](https://i.imgur.com/qbolyMal.png)

Numpad for the OGR keyboard by AKB

* Keyboard Maintainer: [akb](https://alchemistkeyboards.com/)
* Hardware Supported: OGRN PCB
* Hardware Availability: https://alchemistkeyboards.com/projects/keyboards/ogr/

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

    make akb/ogrn:default

Flashing example for this keyboard:

    make akb/ogrn: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 `RESET` if it is available

A keyboards/akb/ogrn/rules.mk => keyboards/akb/ogrn/rules.mk +1 -0
@@ 0,0 1,1 @@
# This file intentionally left blank