diff options
| author | cole smith <38364556+daysgobye@users.noreply.github.com> | 2020-06-01 13:07:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-02 06:07:49 +1000 |
| commit | f1c33423b07886355c7a06c2bc785dcd22c4e10d (patch) | |
| tree | 6d762337aba75c69da0dffc273c9da6836b5fa3b /keyboards/boardsource | |
| parent | 5f8e8540fb135b416a2d8f8a59df2b29ee9b9443 (diff) | |
| download | qmk_firmware-f1c33423b07886355c7a06c2bc785dcd22c4e10d.tar.gz qmk_firmware-f1c33423b07886355c7a06c2bc785dcd22c4e10d.zip | |
Added new keyboard boardsource/3x4 (#9247)
* added bordsource 3x4 macro pad
* added bordsource 3x4 macro pad
* Update keyboards/boardsource/3x4/3x4.h
Co-authored-by: Nick Brassel <nick@tzarc.org>
* Update keyboards/boardsource/3x4/3x4.c
Co-authored-by: Nick Brassel <nick@tzarc.org>
* Update keyboards/boardsource/3x4/config.h
Co-authored-by: Nick Brassel <nick@tzarc.org>
* Update keyboards/boardsource/3x4/config.h
Co-authored-by: Nick Brassel <nick@tzarc.org>
* Update keyboards/boardsource/3x4/config.h
Co-authored-by: Nick Brassel <nick@tzarc.org>
* Update keyboards/boardsource/3x4/config.h
Co-authored-by: Nick Brassel <nick@tzarc.org>
* added link to readme
* Update keyboards/boardsource/3x4/keymaps/default/keymap.c
Co-authored-by: Nick Brassel <nick@tzarc.org>
* Apply suggestions from code review
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Nick Brassel <nick@tzarc.org>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/boardsource')
| -rw-r--r-- | keyboards/boardsource/3x4/3x4.c | 1 | ||||
| -rw-r--r-- | keyboards/boardsource/3x4/3x4.h | 12 | ||||
| -rw-r--r-- | keyboards/boardsource/3x4/config.h | 144 | ||||
| -rw-r--r-- | keyboards/boardsource/3x4/info.json | 28 | ||||
| -rw-r--r-- | keyboards/boardsource/3x4/keymaps/default/keymap.c | 25 | ||||
| -rw-r--r-- | keyboards/boardsource/3x4/readme.md | 14 | ||||
| -rw-r--r-- | keyboards/boardsource/3x4/rules.mk | 31 |
7 files changed, 255 insertions, 0 deletions
diff --git a/keyboards/boardsource/3x4/3x4.c b/keyboards/boardsource/3x4/3x4.c new file mode 100644 index 000000000..798d5a65c --- /dev/null +++ b/keyboards/boardsource/3x4/3x4.c | |||
| @@ -0,0 +1 @@ | |||
| #include "3x4.h" | |||
diff --git a/keyboards/boardsource/3x4/3x4.h b/keyboards/boardsource/3x4/3x4.h new file mode 100644 index 000000000..a27d32c74 --- /dev/null +++ b/keyboards/boardsource/3x4/3x4.h | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "quantum.h" | ||
| 4 | #define LAYOUT( \ | ||
| 5 | K00, K01, K02, K03, \ | ||
| 6 | K10, K11, K12, K13, \ | ||
| 7 | K20, K21, K22, K23 \ | ||
| 8 | ) { \ | ||
| 9 | {K00, K01, K02, K03}, \ | ||
| 10 | {K10, K11, K12, K13}, \ | ||
| 11 | {K20, K21, K22, K23} \ | ||
| 12 | } | ||
diff --git a/keyboards/boardsource/3x4/config.h b/keyboards/boardsource/3x4/config.h new file mode 100644 index 000000000..95c6f9ac2 --- /dev/null +++ b/keyboards/boardsource/3x4/config.h | |||
| @@ -0,0 +1,144 @@ | |||
| 1 | |||
| 2 | |||
| 3 | #pragma once | ||
| 4 | |||
| 5 | #include "config_common.h" | ||
| 6 | |||
| 7 | /* USB Device descriptor parameter */ | ||
| 8 | #define VENDOR_ID 0xF7E0 | ||
| 9 | #define PRODUCT_ID 0x0412 | ||
| 10 | #define DEVICE_VER 0x0000 | ||
| 11 | #define MANUFACTURER Boardsource | ||
| 12 | #define PRODUCT 3x4 | ||
| 13 | #define DESCRIPTION Little macro pad | ||
| 14 | |||
| 15 | /* key matrix size */ | ||
| 16 | #define MATRIX_ROWS 3 | ||
| 17 | #define MATRIX_COLS 4 | ||
| 18 | |||
| 19 | #define MATRIX_ROW_PINS { F7, F6, F5,} | ||
| 20 | #define MATRIX_COL_PINS {B6, B2, B3, B1} | ||
| 21 | |||
| 22 | #define DIODE_DIRECTION COL2ROW | ||
| 23 | |||
| 24 | #define DEBOUNCE 5 | ||
| 25 | |||
| 26 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 27 | #define LOCKING_SUPPORT_ENABLE | ||
| 28 | /* Locking resynchronize hack */ | ||
| 29 | #define LOCKING_RESYNC_ENABLE | ||
| 30 | |||
| 31 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 32 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 33 | */ | ||
| 34 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 35 | |||
| 36 | /* | ||
| 37 | * Force NKRO | ||
| 38 | * | ||
| 39 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 40 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 41 | * makefile for this to work.) | ||
| 42 | * | ||
| 43 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 44 | * until the next keyboard reset. | ||
| 45 | * | ||
| 46 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 47 | * fully operational during normal computer usage. | ||
| 48 | * | ||
| 49 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 50 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 51 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 52 | * power-up. | ||
| 53 | * | ||
| 54 | */ | ||
| 55 | //#define FORCE_NKRO | ||
| 56 | |||
| 57 | /* | ||
| 58 | * Magic Key Options | ||
| 59 | * | ||
| 60 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 61 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 62 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 63 | * | ||
| 64 | * The options below allow the magic key functionality to be changed. This is | ||
| 65 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 66 | * | ||
| 67 | */ | ||
| 68 | |||
| 69 | /* control how magic key switches layers */ | ||
| 70 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 71 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 72 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 73 | |||
| 74 | /* override magic key keymap */ | ||
| 75 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 76 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 77 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 78 | //#define MAGIC_KEY_HELP1 H | ||
| 79 | //#define MAGIC_KEY_HELP2 SLASH | ||
| 80 | //#define MAGIC_KEY_DEBUG D | ||
| 81 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 82 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 83 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 84 | //#define MAGIC_KEY_VERSION V | ||
| 85 | //#define MAGIC_KEY_STATUS S | ||
| 86 | //#define MAGIC_KEY_CONSOLE C | ||
| 87 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
| 88 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
| 89 | //#define MAGIC_KEY_LAYER0 0 | ||
| 90 | //#define MAGIC_KEY_LAYER1 1 | ||
| 91 | //#define MAGIC_KEY_LAYER2 2 | ||
| 92 | //#define MAGIC_KEY_LAYER3 3 | ||
| 93 | //#define MAGIC_KEY_LAYER4 4 | ||
| 94 | //#define MAGIC_KEY_LAYER5 5 | ||
| 95 | //#define MAGIC_KEY_LAYER6 6 | ||
| 96 | //#define MAGIC_KEY_LAYER7 7 | ||
| 97 | //#define MAGIC_KEY_LAYER8 8 | ||
| 98 | //#define MAGIC_KEY_LAYER9 9 | ||
| 99 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
| 100 | //#define MAGIC_KEY_LOCK CAPS | ||
| 101 | //#define MAGIC_KEY_EEPROM E | ||
| 102 | //#define MAGIC_KEY_NKRO N | ||
| 103 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 104 | |||
| 105 | /* | ||
| 106 | * Feature disable options | ||
| 107 | * These options are also useful to firmware size reduction. | ||
| 108 | */ | ||
| 109 | |||
| 110 | /* disable debug print */ | ||
| 111 | //#define NO_DEBUG | ||
| 112 | |||
| 113 | /* disable print */ | ||
| 114 | //#define NO_PRINT | ||
| 115 | |||
| 116 | /* disable action features */ | ||
| 117 | //#define NO_ACTION_LAYER | ||
| 118 | //#define NO_ACTION_TAPPING | ||
| 119 | //#define NO_ACTION_ONESHOT | ||
| 120 | //#define NO_ACTION_MACRO | ||
| 121 | //#define NO_ACTION_FUNCTION | ||
| 122 | |||
| 123 | /* | ||
| 124 | * MIDI options | ||
| 125 | */ | ||
| 126 | |||
| 127 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 128 | //#define MIDI_ENABLE_STRICT 1 | ||
| 129 | |||
| 130 | /* enable basic MIDI features: | ||
| 131 | - MIDI notes can be sent when in Music mode is on | ||
| 132 | */ | ||
| 133 | //#define MIDI_BASIC | ||
| 134 | |||
| 135 | /* enable advanced MIDI features: | ||
| 136 | - MIDI notes can be added to the keymap | ||
| 137 | - Octave shift and transpose | ||
| 138 | - Virtual sustain, portamento, and modulation wheel | ||
| 139 | - etc. | ||
| 140 | */ | ||
| 141 | //#define MIDI_ADVANCED | ||
| 142 | |||
| 143 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 144 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
diff --git a/keyboards/boardsource/3x4/info.json b/keyboards/boardsource/3x4/info.json new file mode 100644 index 000000000..4ef02873e --- /dev/null +++ b/keyboards/boardsource/3x4/info.json | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "boardsource 4x3", | ||
| 3 | "url": "https://boardsource.xyz", | ||
| 4 | "maintainer": "boardsource", | ||
| 5 | "width": 4, | ||
| 6 | "height": 3, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | { "label": "K01", "x": 0, "y": 0 }, | ||
| 11 | { "label": "K02", "x": 1, "y": 0 }, | ||
| 12 | { "label": "K03", "x": 2, "y": 0 }, | ||
| 13 | |||
| 14 | { "label": "K04", "x": 0, "y": 1 }, | ||
| 15 | { "label": "K05", "x": 1, "y": 1 }, | ||
| 16 | { "label": "K06", "x": 2, "y": 1 }, | ||
| 17 | |||
| 18 | { "label": "K07", "x": 0, "y": 2 }, | ||
| 19 | { "label": "K08", "x": 1, "y": 2 }, | ||
| 20 | { "label": "K09", "x": 2, "y": 2 }, | ||
| 21 | |||
| 22 | { "label": "K10", "x": 0, "y": 3 }, | ||
| 23 | { "label": "K11", "x": 1, "y": 3 }, | ||
| 24 | { "label": "K12", "x": 2, "y": 3 } | ||
| 25 | ] | ||
| 26 | } | ||
| 27 | } | ||
| 28 | } | ||
diff --git a/keyboards/boardsource/3x4/keymaps/default/keymap.c b/keyboards/boardsource/3x4/keymaps/default/keymap.c new file mode 100644 index 000000000..3add4f7fb --- /dev/null +++ b/keyboards/boardsource/3x4/keymaps/default/keymap.c | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | |||
| 2 | #include QMK_KEYBOARD_H | ||
| 3 | |||
| 4 | #define _MAIN 0 | ||
| 5 | #define _RAISE 1 | ||
| 6 | #define _LOWER 2 | ||
| 7 | |||
| 8 | // Readability keycodes | ||
| 9 | #define LOWER MO(_LOWER) | ||
| 10 | #define RAISE MO(_RAISE) | ||
| 11 | |||
| 12 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 13 | |||
| 14 | [_MAIN] = LAYOUT( | ||
| 15 | KC_0, KC_1, KC_4, KC_7, | ||
| 16 | KC_ENT, KC_2, KC_5, KC_8, | ||
| 17 | RAISE, KC_3, KC_6, KC_9 | ||
| 18 | ), | ||
| 19 | [_RAISE] = LAYOUT( | ||
| 20 | _______, _______, _______, _______, | ||
| 21 | _______, _______, _______, _______, | ||
| 22 | _______, _______, _______, RESET | ||
| 23 | ) | ||
| 24 | |||
| 25 | }; | ||
diff --git a/keyboards/boardsource/3x4/readme.md b/keyboards/boardsource/3x4/readme.md new file mode 100644 index 000000000..67a22ed4c --- /dev/null +++ b/keyboards/boardsource/3x4/readme.md | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | # 3x4 | ||
| 2 |  | ||
| 3 | |||
| 4 | this macro pad / small 12 key was inspired by the plaid look | ||
| 5 | |||
| 6 | * Keyboard Maintainer: [Boardsource](https://github.com/daysgobye) | ||
| 7 | * Hardware Supported: 3x4 v1 | ||
| 8 | * Hardware Availability: [Boardsource store](https://boardsource.xyz/store/5ecc2008eee64242946c98c1) | ||
| 9 | |||
| 10 | Make example for this keyboard (after setting up your build environment): | ||
| 11 | |||
| 12 | make boardsource/3x4:default | ||
| 13 | |||
| 14 | 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). | ||
diff --git a/keyboards/boardsource/3x4/rules.mk b/keyboards/boardsource/3x4/rules.mk new file mode 100644 index 000000000..263c58604 --- /dev/null +++ b/keyboards/boardsource/3x4/rules.mk | |||
| @@ -0,0 +1,31 @@ | |||
| 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 | ||
