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