Skip to content

Commit

Permalink
[Keyboard] add handwired/oem_ansi_fullsize (qmk#13857)
Browse files Browse the repository at this point in the history
* Add new keyboard oem_ansi_fullsize

* clang-fmt

* Update keyboards/handwired/oem_ansi_fullsize/rules.mk

Co-authored-by: Joel Challis <git@zvecr.com>

* Update keyboards/handwired/oem_ansi_fullsize/readme.md

Co-authored-by: Joel Challis <git@zvecr.com>

* update info.json using qmk c2json

* update info.json

* move diagram to readme

* add matrix cols/rows to info.json

* fixup! add matrix cols/rows to info.json

* rename layout, fix block comment

* s/ansi_fullsize/fullsize_ansi/g

Co-authored-by: Joel Challis <git@zvecr.com>
  • Loading branch information
2 people authored and Victor Isaac Chavez Escamilla committed Aug 28, 2021
1 parent 6491ac4 commit 1761a84
Show file tree
Hide file tree
Showing 8 changed files with 474 additions and 0 deletions.
159 changes: 159 additions & 0 deletions keyboards/handwired/oem_ansi_fullsize/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
/*
Copyright 2021 Cian Johnston
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"

/* USB Device descriptor parameter */
#define VENDOR_ID 0xFEED
#define PRODUCT_ID 0x0000
#define DEVICE_VER 0x0001
#define MANUFACTURER Cian Johnston
#define PRODUCT oem_ansi_fullsize

/* key matrix size */
#define MATRIX_ROWS 6
#define MATRIX_COLS 22

/*
* Keyboard Matrix Assignments
*
* Change this to how you wired your keyboard
* COLS: AVR pins used for columns, left to right
* ROWS: AVR pins used for rows, top to bottom
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/

#define MATRIX_ROW_PINS \
{ F5, F4, F3, F2, F1, F0 }
// R0 R1 R2 R3 R4 R5

#define MATRIX_COL_PINS \
{ C3, C2, C1, C0, E1, E0, D7, E6, D5, D4, D3, D2, D1, D0, B7, B0, B1, B2, B3, B4, B5, F6 }
// C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF CG CH CI CJ CK CL

#define UNUSED_PINS

/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW

/*
* Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
*/
//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6

//#define LED_NUM_LOCK_PIN B0
//#define LED_CAPS_LOCK_PIN B1
//#define LED_SCROLL_LOCK_PIN B2
//#define LED_COMPOSE_PIN B3
//#define LED_KANA_PIN B4

//#define BACKLIGHT_PIN B7
//#define BACKLIGHT_LEVELS 3
//#define BACKLIGHT_BREATHING

//#define RGB_DI_PIN E2
//#ifdef RGB_DI_PIN
//# define RGBLED_NUM 16
//# define RGBLIGHT_HUE_STEP 8
//# define RGBLIGHT_SAT_STEP 8
//# define RGBLIGHT_VAL_STEP 8
//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
/*== all animations enable ==*/
//# define RGBLIGHT_ANIMATIONS
/*== or choose animations ==*/
//# define RGBLIGHT_EFFECT_BREATHING
//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
//# define RGBLIGHT_EFFECT_SNAKE
//# define RGBLIGHT_EFFECT_KNIGHT
//# define RGBLIGHT_EFFECT_CHRISTMAS
//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
//# define RGBLIGHT_EFFECT_RGB_TEST
//# define RGBLIGHT_EFFECT_ALTERNATING
/*== customize breathing effect ==*/
/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
/*==== use exp() and sin() ====*/
//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
//#endif

/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5

/* define if matrix has ghost (lacks anti-ghosting diodes) */
//#define MATRIX_HAS_GHOST

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
* This is useful for the Windows task manager shortcut (ctrl+shift+esc).
*/
//#define GRAVE_ESC_CTRL_OVERRIDE

/*
* Force NKRO
*
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
* makefile for this to work.)
*
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
* until the next keyboard reset.
*
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
* fully operational during normal computer usage.
*
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
* power-up.
*
*/
//#define FORCE_NKRO

/*
* 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

/* disable these deprecated features by default */
#define NO_ACTION_MACRO
#define NO_ACTION_FUNCTION

/* Bootmagic Lite key configuration */
//#define BOOTMAGIC_LITE_ROW 0
//#define BOOTMAGIC_LITE_COLUMN 0
122 changes: 122 additions & 0 deletions keyboards/handwired/oem_ansi_fullsize/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"keyboard_name": "oem_ansi_fullsize",
"url": "https://github.com/johnstcn/qmk",
"maintainer": "johnstcn",
"width": 22.5,
"height": 6.25,
"layouts": {
"LAYOUT_fullsize_ansi": {
"layout": [
{"matrix": [0, 0], "label": "ESC", "x":0, "y":0},
{"matrix": [0, 2], "label": "F1", "x":2, "y":0},
{"matrix": [0, 3], "label": "F2", "x":3, "y":0},
{"matrix": [0, 4], "label": "F3", "x":4, "y":0},
{"matrix": [0, 5], "label": "F4", "x":5, "y":0},
{"matrix": [0, 7], "label": "F5", "x":6.5, "y":0},
{"matrix": [0, 8], "label": "F6", "x":7.5, "y":0},
{"matrix": [0, 9], "label": "F7", "x":8.5, "y":0},
{"matrix": [0, 10], "label": "F8", "x":9.5, "y":0},
{"matrix": [0, 11], "label": "F9", "x":11, "y":0},
{"matrix": [0, 12], "label": "F10", "x":12, "y":0},
{"matrix": [0, 13], "label": "F11", "x":13, "y":0},
{"matrix": [0, 14], "label": "F12", "x":14, "y":0},
{"matrix": [0, 15], "label": "PSCR", "x":15.25, "y":0},
{"matrix": [0, 16], "label": "SLCK", "x":16.25, "y":0},
{"matrix": [0, 17], "label": "PAUS", "x":17.25, "y":0},

{"matrix": [1, 0], "label": "GRV", "x":0, "y":1.25},
{"matrix": [1, 1], "label": "1", "x":1, "y":1.25},
{"matrix": [1, 2], "label": "2", "x":2, "y":1.25},
{"matrix": [1, 3], "label": "3", "x":3, "y":1.25},
{"matrix": [1, 4], "label": "4", "x":4, "y":1.25},
{"matrix": [1, 5], "label": "5", "x":5, "y":1.25},
{"matrix": [1, 6], "label": "6", "x":6, "y":1.25},
{"matrix": [1, 7], "label": "7", "x":7, "y":1.25},
{"matrix": [1, 8], "label": "8", "x":8, "y":1.25},
{"matrix": [1, 9], "label": "9", "x":9, "y":1.25},
{"matrix": [1, 10], "label": "0", "x":10, "y":1.25},
{"matrix": [1, 11], "label": "MINS", "x":11, "y":1.25},
{"matrix": [1, 12], "label": "EQL", "x":12, "y":1.25},
{"matrix": [1, 14], "label": "BSPC", "x":13, "y":1.25, "w":2},
{"matrix": [1, 15], "label": "INS", "x":15.25, "y":1.25},
{"matrix": [1, 16], "label": "HOME", "x":16.25, "y":1.25},
{"matrix": [1, 17], "label": "PGUP", "x":17.25, "y":1.25},
{"matrix": [1, 18], "label": "NLCK", "x":18.5, "y":1.25},
{"matrix": [1, 19], "label": "PSLS", "x":19.5, "y":1.25},
{"matrix": [1, 20], "label": "PAST", "x":20.5, "y":1.25},
{"matrix": [1, 21], "label": "PMNS", "x":21.5, "y":1.25},

{"matrix": [2, 0], "label": "TAB", "x":0, "y":2.25, "w":1.5},
{"matrix": [2, 2], "label": "Q", "x":1.5, "y":2.25},
{"matrix": [2, 3], "label": "W", "x":2.5, "y":2.25},
{"matrix": [2, 4], "label": "E", "x":3.5, "y":2.25},
{"matrix": [2, 5], "label": "R", "x":4.5, "y":2.25},
{"matrix": [2, 6], "label": "T", "x":5.5, "y":2.25},
{"matrix": [2, 7], "label": "Y", "x":6.5, "y":2.25},
{"matrix": [2, 8], "label": "U", "x":7.5, "y":2.25},
{"matrix": [2, 9], "label": "I", "x":8.5, "y":2.25},
{"matrix": [2, 10], "label": "O", "x":9.5, "y":2.25},
{"matrix": [2, 11], "label": "P", "x":10.5, "y":2.25},
{"matrix": [2, 12], "label": "LBRC", "x":11.5, "y":2.25},
{"matrix": [2, 13], "label": "RBRC", "x":12.5, "y":2.25},
{"matrix": [2, 14], "label": "BSLS", "x":13.5, "y":2.25, "w":1.5},
{"matrix": [2, 15], "label": "DEL", "x":15.25, "y":2.25},
{"matrix": [2, 16], "label": "END", "x":16.25, "y":2.25},
{"matrix": [2, 17], "label": "PGDN", "x":17.25, "y":2.25},
{"matrix": [2, 18], "label": "P7", "x":18.5, "y":2.25},
{"matrix": [2, 19], "label": "P8", "x":19.5, "y":2.25},
{"matrix": [2, 20], "label": "P9", "x":20.5, "y":2.25},
{"matrix": [2, 21], "label": "PPLS", "x":21.5, "y":2.25, "h": 2},

{"matrix": [3, 0], "label": "CAPS", "x":0, "y":3.25, "w":1.75},
{"matrix": [3, 2], "label": "A", "x":1.75, "y":3.25},
{"matrix": [3, 3], "label": "S", "x":2.75, "y":3.25},
{"matrix": [3, 4], "label": "D", "x":3.75, "y":3.25},
{"matrix": [3, 5], "label": "F", "x":4.75, "y":3.25},
{"matrix": [3, 6], "label": "G", "x":5.75, "y":3.25},
{"matrix": [3, 7], "label": "H", "x":6.75, "y":3.25},
{"matrix": [3, 8], "label": "J", "x":7.75, "y":3.25},
{"matrix": [3, 9], "label": "K", "x":8.75, "y":3.25},
{"matrix": [3, 10], "label": "L", "x":9.75, "y":3.25},
{"matrix": [3, 11], "label": "SCLN", "x":10.75, "y":3.25},
{"matrix": [3, 12], "label": "QUOT", "x":11.75, "y":3.25},
{"matrix": [3, 13], "label": "ENT", "x":12.75, "y":3.25, "w":2.25},
{"matrix": [3, 18], "label": "P4", "x":18.5, "y":3.25},
{"matrix": [3, 19], "label": "P5", "x":19.5, "y":3.25},
{"matrix": [3, 20], "label": "P6", "x":20.5, "y":3.25},

{"matrix": [4, 1], "label": "LSFT", "x":0, "y":4.25, "w":2.25},
{"matrix": [4, 2], "label": "Z", "x":2.25, "y":4.25},
{"matrix": [4, 3], "label": "X", "x":3.25, "y":4.25},
{"matrix": [4, 4], "label": "C", "x":4.25, "y":4.25},
{"matrix": [4, 5], "label": "V", "x":5.25, "y":4.25},
{"matrix": [4, 6], "label": "B", "x":6.25, "y":4.25},
{"matrix": [4, 7], "label": "N", "x":7.25, "y":4.25},
{"matrix": [4, 8], "label": "M", "x":8.25, "y":4.25},
{"matrix": [4, 9], "label": "COMM", "x":9.25, "y":4.25},
{"matrix": [4, 10], "label": "DOT", "x":10.25, "y":4.25},
{"matrix": [4, 11], "label": "SLSH", "x":11.25, "y":4.25},
{"matrix": [4, 13], "label": "RSFT", "x":12.25, "y":4.25, "w":2.75},
{"matrix": [4, 16], "label": "UP", "x":16.25, "y":4.25},
{"matrix": [4, 18], "label": "P1", "x":18.5, "y":4.25},
{"matrix": [4, 19], "label": "P2", "x":19.5, "y":4.25},
{"matrix": [4, 20], "label": "P3", "x":20.5, "y":4.25},
{"matrix": [4, 21], "label": "PENT", "x":21.5, "y":4.25, "h":2},

{"matrix": [5, 0], "label": "LCTL", "x":0, "y":5.25, "w":1.25},
{"matrix": [5, 1], "label": "LGUI", "x":1.25, "y":5.25, "w":1.25},
{"matrix": [5, 3], "label": "LALT", "x":2.5, "y":5.25, "w":1.25},
{"matrix": [5, 6], "label": "SPC", "x":3.75, "y":5.25, "w":6.25},
{"matrix": [5, 10], "label": "RALT", "x":10, "y":5.25, "w":1.25},
{"matrix": [5, 11], "label": "RGUI", "x":11.25, "y":5.25, "w":1.25},
{"matrix": [5, 13], "label": "MO(1)", "x":12.5, "y":5.25, "w":1.25},
{"matrix": [5, 14], "label": "RCTL", "x":13.75, "y":5.25, "w":1.25},
{"matrix": [5, 15], "label": "LEFT", "x":15.25, "y":5.25},
{"matrix": [5, 16], "label": "DOWN", "x":16.25, "y":5.25},
{"matrix": [5, 17], "label": "RGHT", "x":17.25, "y":5.25},
{"matrix": [5, 18], "label": "P0", "x":18.5, "y":5.25, "w":2},
{"matrix": [5, 20], "label": "PDOT", "x":20.5, "y":5.25}
]
}
}
}
30 changes: 30 additions & 0 deletions keyboards/handwired/oem_ansi_fullsize/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* Copyright 2021 Cian Johnston
*
* 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

// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_fullsize_ansi(
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
),
};
// clang-format on

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# The default keymap for oem_ansi_fullsize
17 changes: 17 additions & 0 deletions keyboards/handwired/oem_ansi_fullsize/oem_ansi_fullsize.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Copyright 2021 Cian Johnston
*
* 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 "oem_ansi_fullsize.h"
Loading

0 comments on commit 1761a84

Please sign in to comment.