diff options
| author | cole smith <38364556+daysgobye@users.noreply.github.com> | 2020-06-16 12:08:30 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-16 20:08:30 +0100 |
| commit | 80b2b710da1795940ec519909594bd19872346ec (patch) | |
| tree | 964d2b4e93ee903902d65fed2f4e869ca8e5a0f4 | |
| parent | 3814dacf27a11e398fe426c4b03b860137b10676 (diff) | |
| download | qmk_firmware-80b2b710da1795940ec519909594bd19872346ec.tar.gz qmk_firmware-80b2b710da1795940ec519909594bd19872346ec.zip | |
added 4x12 (#9411)
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
| -rw-r--r-- | keyboards/boardsource/4x12/4x12.c | 1 | ||||
| -rw-r--r-- | keyboards/boardsource/4x12/4x12.h | 14 | ||||
| -rw-r--r-- | keyboards/boardsource/4x12/config.h | 142 | ||||
| -rw-r--r-- | keyboards/boardsource/4x12/info.json | 64 | ||||
| -rw-r--r-- | keyboards/boardsource/4x12/keymaps/default/keymap.c | 36 | ||||
| -rw-r--r-- | keyboards/boardsource/4x12/readme.md | 12 | ||||
| -rw-r--r-- | keyboards/boardsource/4x12/rules.mk | 32 |
7 files changed, 301 insertions, 0 deletions
diff --git a/keyboards/boardsource/4x12/4x12.c b/keyboards/boardsource/4x12/4x12.c new file mode 100644 index 000000000..2aec6900a --- /dev/null +++ b/keyboards/boardsource/4x12/4x12.c | |||
| @@ -0,0 +1 @@ | |||
| #include "4x12.h" | |||
diff --git a/keyboards/boardsource/4x12/4x12.h b/keyboards/boardsource/4x12/4x12.h new file mode 100644 index 000000000..52c23708f --- /dev/null +++ b/keyboards/boardsource/4x12/4x12.h | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | #pragma once | ||
| 2 | #include "quantum.h" | ||
| 3 | |||
| 4 | #define LAYOUT_ortho_4x12( \ | ||
| 5 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, \ | ||
| 6 | K12, K13, K14, K15, K16, K17, K18, K19, K20, K21, K22, K23, \ | ||
| 7 | K24, K25, K26, K27, K28, K29, K30, K31, K32, K33, K34, K35, \ | ||
| 8 | K36, K37, K38, K39, K40, K41, K42, K43, K44, K45, K46, K47 \ | ||
| 9 | ) { \ | ||
| 10 | {K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11}, \ | ||
| 11 | {K12, K13, K14, K15, K16, K17, K18, K19, K20, K21, K22, K23}, \ | ||
| 12 | {K24, K25, K26, K27, K28, K29, K30, K31, K32, K33, K34, K35}, \ | ||
| 13 | {K36, K37, K38, K39, K40, K41, K42, K43, K44, K45, K46, K47} \ | ||
| 14 | } | ||
diff --git a/keyboards/boardsource/4x12/config.h b/keyboards/boardsource/4x12/config.h new file mode 100644 index 000000000..e8f858586 --- /dev/null +++ b/keyboards/boardsource/4x12/config.h | |||
| @@ -0,0 +1,142 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "config_common.h" | ||
| 4 | |||
| 5 | /* USB Device descriptor parameter */ | ||
| 6 | #define VENDOR_ID 0xF7E0 | ||
| 7 | #define PRODUCT_ID 0x0412 | ||
| 8 | #define DEVICE_VER 0x0000 | ||
| 9 | #define MANUFACTURER Boardsource | ||
| 10 | #define PRODUCT 4x12 | ||
| 11 | #define DESCRIPTION 40 percent ortho keyboard | ||
| 12 | |||
| 13 | /* key matrix size */ | ||
| 14 | #define MATRIX_ROWS 4 | ||
| 15 | #define MATRIX_COLS 12 | ||
| 16 | #define MATRIX_ROW_PINS { D2, D3, D1, D0} | ||
| 17 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, B5, B4, E6, D7 } | ||
| 18 | |||
| 19 | #define DIODE_DIRECTION COL2ROW | ||
| 20 | |||
| 21 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 22 | #define DEBOUNCE 5 | ||
| 23 | |||
| 24 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 25 | #define LOCKING_SUPPORT_ENABLE | ||
| 26 | /* Locking resynchronize hack */ | ||
| 27 | #define LOCKING_RESYNC_ENABLE | ||
| 28 | |||
| 29 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 30 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 31 | */ | ||
| 32 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 33 | |||
| 34 | /* | ||
| 35 | * Force NKRO | ||
| 36 | * | ||
| 37 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 38 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 39 | * makefile for this to work.) | ||
| 40 | * | ||
| 41 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 42 | * until the next keyboard reset. | ||
| 43 | * | ||
| 44 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 45 | * fully operational during normal computer usage. | ||
| 46 | * | ||
| 47 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 48 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 49 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 50 | * power-up. | ||
| 51 | * | ||
| 52 | */ | ||
| 53 | //#define FORCE_NKRO | ||
| 54 | |||
| 55 | /* | ||
| 56 | * Magic Key Options | ||
| 57 | * | ||
| 58 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 59 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 60 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 61 | * | ||
| 62 | * The options below allow the magic key functionality to be changed. This is | ||
| 63 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 64 | * | ||
| 65 | */ | ||
| 66 | |||
| 67 | /* control how magic key switches layers */ | ||
| 68 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 69 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 70 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 71 | |||
| 72 | /* override magic key keymap */ | ||
| 73 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 74 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 75 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 76 | //#define MAGIC_KEY_HELP1 H | ||
| 77 | //#define MAGIC_KEY_HELP2 SLASH | ||
| 78 | //#define MAGIC_KEY_DEBUG D | ||
| 79 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 80 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 81 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 82 | //#define MAGIC_KEY_VERSION V | ||
| 83 | //#define MAGIC_KEY_STATUS S | ||
| 84 | //#define MAGIC_KEY_CONSOLE C | ||
| 85 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
| 86 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
| 87 | //#define MAGIC_KEY_LAYER0 0 | ||
| 88 | //#define MAGIC_KEY_LAYER1 1 | ||
| 89 | //#define MAGIC_KEY_LAYER2 2 | ||
| 90 | //#define MAGIC_KEY_LAYER3 3 | ||
| 91 | //#define MAGIC_KEY_LAYER4 4 | ||
| 92 | //#define MAGIC_KEY_LAYER5 5 | ||
| 93 | //#define MAGIC_KEY_LAYER6 6 | ||
| 94 | //#define MAGIC_KEY_LAYER7 7 | ||
| 95 | //#define MAGIC_KEY_LAYER8 8 | ||
| 96 | //#define MAGIC_KEY_LAYER9 9 | ||
| 97 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
| 98 | //#define MAGIC_KEY_LOCK CAPS | ||
| 99 | //#define MAGIC_KEY_EEPROM E | ||
| 100 | //#define MAGIC_KEY_NKRO N | ||
| 101 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 102 | |||
| 103 | /* | ||
| 104 | * Feature disable options | ||
| 105 | * These options are also useful to firmware size reduction. | ||
| 106 | */ | ||
| 107 | |||
| 108 | /* disable debug print */ | ||
| 109 | //#define NO_DEBUG | ||
| 110 | |||
| 111 | /* disable print */ | ||
| 112 | //#define NO_PRINT | ||
| 113 | |||
| 114 | /* disable action features */ | ||
| 115 | //#define NO_ACTION_LAYER | ||
| 116 | //#define NO_ACTION_TAPPING | ||
| 117 | //#define NO_ACTION_ONESHOT | ||
| 118 | //#define NO_ACTION_MACRO | ||
| 119 | //#define NO_ACTION_FUNCTION | ||
| 120 | |||
| 121 | /* | ||
| 122 | * MIDI options | ||
| 123 | */ | ||
| 124 | |||
| 125 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 126 | //#define MIDI_ENABLE_STRICT 1 | ||
| 127 | |||
| 128 | /* enable basic MIDI features: | ||
| 129 | - MIDI notes can be sent when in Music mode is on | ||
| 130 | */ | ||
| 131 | //#define MIDI_BASIC | ||
| 132 | |||
| 133 | /* enable advanced MIDI features: | ||
| 134 | - MIDI notes can be added to the keymap | ||
| 135 | - Octave shift and transpose | ||
| 136 | - Virtual sustain, portamento, and modulation wheel | ||
| 137 | - etc. | ||
| 138 | */ | ||
| 139 | //#define MIDI_ADVANCED | ||
| 140 | |||
| 141 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 142 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
diff --git a/keyboards/boardsource/4x12/info.json b/keyboards/boardsource/4x12/info.json new file mode 100644 index 000000000..d5f40fd3b --- /dev/null +++ b/keyboards/boardsource/4x12/info.json | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Boardsource 4x12", | ||
| 3 | "url": "https://boardsource.xyz", | ||
| 4 | "maintainer": "Boardsource", | ||
| 5 | "width": 12, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_ortho_4x12": { | ||
| 9 | "layout": [ | ||
| 10 | { "label": "K01", "x": 0, "y": 0 }, | ||
| 11 | { "label": "K02", "x": 1, "y": 0 }, | ||
| 12 | { "label": "K03", "x": 2, "y": 0 }, | ||
| 13 | { "label": "K04", "x": 3, "y": 0 }, | ||
| 14 | { "label": "K05", "x": 4, "y": 0 }, | ||
| 15 | { "label": "K06", "x": 5, "y": 0 }, | ||
| 16 | { "label": "K07", "x": 6, "y": 0 }, | ||
| 17 | { "label": "K08", "x": 7, "y": 0 }, | ||
| 18 | { "label": "K09", "x": 8, "y": 0 }, | ||
| 19 | { "label": "K010", "x": 9, "y": 0 }, | ||
| 20 | { "label": "K011", "x": 10, "y": 0 }, | ||
| 21 | { "label": "K012", "x": 11, "y": 0 }, | ||
| 22 | |||
| 23 | { "label": "K11", "x": 0, "y": 1 }, | ||
| 24 | { "label": "K12", "x": 1, "y": 1 }, | ||
| 25 | { "label": "K13", "x": 2, "y": 1 }, | ||
| 26 | { "label": "K14", "x": 3, "y": 1 }, | ||
| 27 | { "label": "K15", "x": 4, "y": 1 }, | ||
| 28 | { "label": "K16", "x": 5, "y": 1 }, | ||
| 29 | { "label": "K17", "x": 6, "y": 1 }, | ||
| 30 | { "label": "K18", "x": 7, "y": 1 }, | ||
| 31 | { "label": "K19", "x": 8, "y": 1 }, | ||
| 32 | { "label": "K110", "x": 9, "y": 1 }, | ||
| 33 | { "label": "K111", "x": 10, "y": 1 }, | ||
| 34 | { "label": "K112", "x": 11, "y": 1 }, | ||
| 35 | |||
| 36 | { "label": "K21", "x": 0, "y": 2 }, | ||
| 37 | { "label": "K22", "x": 1, "y": 2 }, | ||
| 38 | { "label": "K23", "x": 2, "y": 2 }, | ||
| 39 | { "label": "K24", "x": 3, "y": 2 }, | ||
| 40 | { "label": "K25", "x": 4, "y": 2 }, | ||
| 41 | { "label": "K26", "x": 5, "y": 2 }, | ||
| 42 | { "label": "K27", "x": 6, "y": 2 }, | ||
| 43 | { "label": "K28", "x": 7, "y": 2 }, | ||
| 44 | { "label": "K29", "x": 8, "y": 2 }, | ||
| 45 | { "label": "K210", "x": 9, "y": 2 }, | ||
| 46 | { "label": "K211", "x": 10, "y": 2 }, | ||
| 47 | { "label": "K212", "x": 11, "y": 2 }, | ||
| 48 | |||
| 49 | { "label": "K31", "x": 0, "y": 3 }, | ||
| 50 | { "label": "K32", "x": 1, "y": 3 }, | ||
| 51 | { "label": "K33", "x": 2, "y": 3 }, | ||
| 52 | { "label": "K34", "x": 3, "y": 3 }, | ||
| 53 | { "label": "K35", "x": 4, "y": 3 }, | ||
| 54 | { "label": "K36", "x": 5, "y": 3 }, | ||
| 55 | { "label": "K37", "x": 6, "y": 3 }, | ||
| 56 | { "label": "K38", "x": 7, "y": 3 }, | ||
| 57 | { "label": "K39", "x": 8, "y": 3 }, | ||
| 58 | { "label": "K310", "x": 9, "y": 3 }, | ||
| 59 | { "label": "K311", "x": 10, "y": 3 }, | ||
| 60 | { "label": "K312", "x": 11, "y": 3 } | ||
| 61 | ] | ||
| 62 | } | ||
| 63 | } | ||
| 64 | } | ||
diff --git a/keyboards/boardsource/4x12/keymaps/default/keymap.c b/keyboards/boardsource/4x12/keymaps/default/keymap.c new file mode 100644 index 000000000..d9a0c47a6 --- /dev/null +++ b/keyboards/boardsource/4x12/keymaps/default/keymap.c | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | enum layers { | ||
| 4 | _MAIN, | ||
| 5 | _RAISE, | ||
| 6 | _LOWER, | ||
| 7 | }; | ||
| 8 | |||
| 9 | // Readability keycodes | ||
| 10 | #define LOWER MO(_LOWER) | ||
| 11 | #define RAISE MO(_RAISE) | ||
| 12 | |||
| 13 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 14 | |||
| 15 | [_MAIN] = LAYOUT_ortho_4x12( | ||
| 16 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 17 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 18 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , | ||
| 19 | KC_PIPE, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 20 | ), | ||
| 21 | |||
| 22 | [_RAISE] = LAYOUT_ortho_4x12( | ||
| 23 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, | ||
| 24 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
| 25 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______, | ||
| 26 | RESET, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 27 | ), | ||
| 28 | |||
| 29 | [_LOWER] = LAYOUT_ortho_4x12( | ||
| 30 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 31 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 32 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, | ||
| 33 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 34 | ) | ||
| 35 | |||
| 36 | }; | ||
diff --git a/keyboards/boardsource/4x12/readme.md b/keyboards/boardsource/4x12/readme.md new file mode 100644 index 000000000..17cf01ed0 --- /dev/null +++ b/keyboards/boardsource/4x12/readme.md | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | # 4x12 | ||
| 2 |  | ||
| 3 | |||
| 4 | * Keyboard Maintainer: [Boardsource](https://github.com/daysgobye) | ||
| 5 | * Hardware Supported: 4x12 v1 | ||
| 6 | * Hardware Availability: this keyboard is available from the [Boardsource store](https://boardsource.xyz/store/5ecb7dad86879c9a0c22db32) | ||
| 7 | |||
| 8 | Make example for this keyboard (after setting up your build environment): | ||
| 9 | |||
| 10 | make boardsource/4x12:default | ||
| 11 | |||
| 12 | 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). \ No newline at end of file | ||
diff --git a/keyboards/boardsource/4x12/rules.mk b/keyboards/boardsource/4x12/rules.mk new file mode 100644 index 000000000..0999b9d62 --- /dev/null +++ b/keyboards/boardsource/4x12/rules.mk | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = caterina | ||
| 13 | |||
| 14 | # Build Options | ||
| 15 | # change yes to no to disable | ||
| 16 | # | ||
| 17 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 18 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 20 | CONSOLE_ENABLE = yes # Console for debug | ||
| 21 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 25 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 26 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 27 | MIDI_ENABLE = no # MIDI support | ||
| 28 | UNICODE_ENABLE = no # Unicode | ||
| 29 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 30 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 31 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 32 | LAYOUTS = ortho_4x12 | ||
