aboutsummaryrefslogtreecommitdiff
path: root/keyboards/wheatfield/split75
diff options
context:
space:
mode:
authorartjomsR <artjomsR@users.noreply.github.com>2020-04-07 09:36:54 +0100
committerGitHub <noreply@github.com>2020-04-07 01:36:54 -0700
commit3349a8b49bdfad5c6ec33090bc898cd49446f34e (patch)
tree3e4e6903cf0a6816e5acee8ddf1fb368926c26ba /keyboards/wheatfield/split75
parentb4ef72423ea2b2d314e4373f82bdc955b8d6ec10 (diff)
downloadqmk_firmware-3349a8b49bdfad5c6ec33090bc898cd49446f34e.tar.gz
qmk_firmware-3349a8b49bdfad5c6ec33090bc898cd49446f34e.zip
[Keyboard] Wheatfield Split75 (#8511)
* Added split75 keyboard * tidy up commented out code + removed default * added visual map * proper led functions. more layers for keymap * led functions. moved mod keys to numbers * double tapping toggle + leds on power on * media keys fix * clean up of commented out code and unnecessary functions. readme update. default keymap * removed bootloadHID file * Update keyboards/split75/config.h * Update keyboards/split75/config.h * Update keyboards/split75/config.h * Update keyboards/split75/config.h * removed python flashing script * Update keyboards/split75/keymaps/default/keymap.c * Update keyboards/split75/split75.h * Update keyboards/split75/keymaps/art/keymap.c * Update keyboards/split75/keymaps/art/keymap.c * Update keyboards/split75/keymaps/art/keymap.c * Update keyboards/split75/keymaps/default/keymap.c * reintroduced empty matrix_scan_user to default keymap * Update keyboards/split75/keymaps/art/keymap.c * Update keyboards/split75/keymaps/art/keymap.c * Update keyboards/split75/usbconfig.h * Update keyboards/ergodone/config.h * Update keyboards/split75/keymaps/art/keymap.c * updated readme file * Update keyboards/split75/usbconfig.h * Update keyboards/split75/rules.mk * Update keyboards/split75/split75.c * code fix after suggestions * defined tapping toggle as double tap * added info.json * Update keyboards/split75/config.h * fix for leds not displaying properly when initialising * Update keyboards/split75/README.md * Update keyboards/split75/keymaps/default/keymap.c * Update keyboards/split75/keymaps/art/keymap.c * changed product description fields * renamed user functions * indentation fix * Update keyboards/split75/usbconfig.h * Update keyboards/split75/usbconfig.h * Update keyboards/split75/usbconfig.h * Update keyboards/split75/usbconfig.h * Update keyboards/split75/usbconfig.h * Update keyboards/split75/split75.c * Update keyboards/split75/split75.c * art keymap update * Update keyboards/split75/config.h * Update keyboards/split75/keymaps/art/keymap.c * Update keyboards/split75/keymaps/art/keymap.c * Update keyboards/split75/keymaps/art/keymap.c * Update keyboards/split75/keymaps/art/keymap.c * Update keyboards/split75/keymaps/art/keymap.c * Update keyboards/split75/split75.c * Update keyboards/split75/keymaps/art/keymap.c * Update keyboards/split75/keymaps/default/keymap.c * Update keyboards/split75/split75.c * Update keyboards/split75/matrix.c * Update keyboards/split75/rules.mk * Update keyboards/split75/split75.c * Update keyboards/split75/split75.c * Update keyboards/split75/split75.c * Update keyboards/split75/config.h * Update keyboards/split75/split75.c * disable underglow on sleep and enabled backlighting * Update keyboards/split75/usbconfig.h * Update keyboards/split75/usbconfig.h * Update keyboards/split75/usbconfig.h * Update keyboards/split75/usbconfig.h * Update keyboards/split75/usbconfig.h * Update keyboards/split75/usbconfig.h * personal keymap update * changed boot animation * consistent whitespace * Tidied up default notes and unnecessary comments * Unique Vendor ID * remove usb config file * corrected manufacturer * Update keyboards/split75/config.h * Update keyboards/split75/README.md * Update keyboards/split75/split75.c * Update keyboards/split75/split75.c * Update keyboards/split75/split75.c * Update keyboards/split75/split75.c * Update keyboards/split75/split75.c * Update keyboards/split75/split75.c * Update keyboards/split75/split75.h * Update keyboards/split75/split75.h * Update keyboards/split75/split75.h * Update keyboards/split75/split75.c * Update keyboards/split75/matrix.c * Update keyboards/split75/matrix.c * Update keyboards/split75/matrix.c * Update keyboards/split75/matrix.c * Update keyboards/split75/split75.h * Personal keymap restore after refactor * Moved to wheatfield folder + updated readme
Diffstat (limited to 'keyboards/wheatfield/split75')
-rw-r--r--keyboards/wheatfield/split75/README.md28
-rw-r--r--keyboards/wheatfield/split75/config.h18
-rw-r--r--keyboards/wheatfield/split75/info.json12
-rw-r--r--keyboards/wheatfield/split75/keymaps/art/keymap.c189
-rw-r--r--keyboards/wheatfield/split75/keymaps/default/keymap.c30
-rw-r--r--keyboards/wheatfield/split75/matrix.c155
-rw-r--r--keyboards/wheatfield/split75/rules.mk31
-rw-r--r--keyboards/wheatfield/split75/split75.c25
-rw-r--r--keyboards/wheatfield/split75/split75.h33
9 files changed, 521 insertions, 0 deletions
diff --git a/keyboards/wheatfield/split75/README.md b/keyboards/wheatfield/split75/README.md
new file mode 100644
index 000000000..ec8c7ee9e
--- /dev/null
+++ b/keyboards/wheatfield/split75/README.md
@@ -0,0 +1,28 @@
1# split75
2
3![split75](https://i1.wp.com/mechboards.co.uk/wp-content/uploads/2019/10/HTB1qf0aSOLaK1RjSZFxq6ymPFXae.jpg)
4
5This is a port of the QMK firmware for the split75 keyboard, also known as the ve.a taobao split clone. It runs on
6ps2avrGB firmware, like the [ps2avrGB keyboard](https://www.keyclack.com/product/gb-ps2avrgb/) or the ones sold
7by [Winkeyless](http://winkeyless.kr/product/ps2avrgb-parts/).
8
9Original work performed by Michael L. Walker, all credit goes to him. I've tidied up the keymap (removed 3 extra keys), a couple of functions, info.json and this Readme.
10
11* Keyboard Maintainer: [Michael L. Walker](https://github.com/walkerstop)
12* Hardware Availability: https://a.aliexpress.com/_BT9raf https://item.taobao.com/item.htm?id=556970472669&toSite=main
13
14Make example for this keyboard (after setting up your build environment):
15
16 make wheatfield/split75:default
17
18Flashing example for this keyboard ([after setting up the bootloadHID flashing environment](https://docs.qmk.fm/#/flashing_bootloadhid))
19
20 make wheatfield/split75:default:flash
21
22or
23
24 bootloadHID -r split75_default.hex
25
26**Reset Key**: Hold down the key located at 3rd left position in the bottom row, commonly programmed as Left Control while plugging in the keyboard.
27
28See 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/wheatfield/split75/config.h b/keyboards/wheatfield/split75/config.h
new file mode 100644
index 000000000..ccc6a9c44
--- /dev/null
+++ b/keyboards/wheatfield/split75/config.h
@@ -0,0 +1,18 @@
1#pragma once
2
3#define VENDOR_ID 0x594D
4#define PRODUCT_ID 0x0001
5#define DEVICE_VER 0x0001
6#define MANUFACTURER YMDK
7#define PRODUCT Split75
8#define DESCRIPTION VE.A Clone
9
10/* matrix size */
11#define MATRIX_ROWS 8
12#define MATRIX_COLS 14
13
14#define RGBLED_NUM 8
15#define RGBLIGHT_ANIMATIONS
16#define RGBLIGHT_SLEEP
17
18#define BACKLIGHT_PIN D4
diff --git a/keyboards/wheatfield/split75/info.json b/keyboards/wheatfield/split75/info.json
new file mode 100644
index 000000000..1524f2124
--- /dev/null
+++ b/keyboards/wheatfield/split75/info.json
@@ -0,0 +1,12 @@
1{
2 "keyboard_name": "split75",
3 "url": "",
4 "maintainer": "Michael L. Walker",
5 "width": 19.25,
6 "height": 6,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [{"label":"ESC", "x":2.25, "y":0}, {"label":"F1", "x":3.25, "y":0}, {"label":"F2", "x":4.25, "y":0}, {"label":"F3", "x":5.25, "y":0}, {"label":"F4", "x":6.25, "y":0}, {"label":"F5", "x":7.25, "y":0}, {"label":"F6", "x":8.25, "y":0}, {"label":"F7", "x":10.25, "y":0}, {"label":"F8", "x":11.25, "y":0}, {"label":"F9", "x":12.25, "y":0}, {"label":"F10", "x":13.25, "y":0}, {"label":"F11", "x":14.25, "y":0}, {"label":"F12", "x":15.25, "y":0}, {"label":"Prt", "x":16.25, "y":0}, {"label":"Ins", "x":17.25, "y":0}, {"label":"Del", "x":18.25, "y":0}, {"label":"8", "x":0, "y":1}, {"label":"9", "x":1, "y":1}, {"label":"~", "x":2.25, "y":1}, {"label":"!", "x":3.25, "y":1}, {"label":"@", "x":4.25, "y":1}, {"label":"#", "x":5.25, "y":1}, {"label":"$", "x":6.25, "y":1}, {"label":"%", "x":7.25, "y":1}, {"label":"^", "x":8.25, "y":1}, {"label":"&", "x":10.25, "y":1}, {"label":"*", "x":11.25, "y":1}, {"label":"(", "x":12.25, "y":1}, {"label":")", "x":13.25, "y":1}, {"label":"_", "x":14.25, "y":1}, {"label":"+", "x":15.25, "y":1}, {"label":"Backspace", "x":16.25, "y":1, "w":2}, {"label":"Home", "x":18.25, "y":1}, {"label":"6", "x":0, "y":2}, {"label":"7", "x":1, "y":2}, {"label":"Tab", "x":2.25, "y":2, "w":1.5}, {"label":"Q", "x":3.75, "y":2}, {"label":"W", "x":4.75, "y":2}, {"label":"E", "x":5.75, "y":2}, {"label":"R", "x":6.75, "y":2}, {"label":"T", "x":7.75, "y":2}, {"label":"Y", "x":9.75, "y":2}, {"label":"U", "x":10.75, "y":2}, {"label":"I", "x":11.75, "y":2}, {"label":"O", "x":12.75, "y":2}, {"label":"P", "x":13.75, "y":2}, {"label":"{", "x":14.75, "y":2}, {"label":"}", "x":15.75, "y":2}, {"label":"|", "x":16.75, "y":2, "w":1.5}, {"label":"PgUp", "x":18.25, "y":2}, {"label":"4", "x":0, "y":3}, {"label":"5", "x":1, "y":3}, {"label":"Caps Lock", "x":2.25, "y":3, "w":1.75}, {"label":"A", "x":4, "y":3}, {"label":"S", "x":5, "y":3}, {"label":"D", "x":6, "y":3}, {"label":"F", "x":7, "y":3}, {"label":"G", "x":8, "y":3}, {"label":"H", "x":10, "y":3}, {"label":"J", "x":11, "y":3}, {"label":"K", "x":12, "y":3}, {"label":"L", "x":13, "y":3}, {"label":":", "x":14, "y":3}, {"label":"\"", "x":15, "y":3}, {"label":"Enter", "x":16, "y":3, "w":2.25}, {"label":"PgDn", "x":18.25, "y":3}, {"label":"2", "x":0, "y":4}, {"label":"3", "x":1, "y":4}, {"label":"Shift", "x":2.25, "y":4, "w":2.25}, {"label":"Z", "x":4.5, "y":4}, {"label":"X", "x":5.5, "y":4}, {"label":"C", "x":6.5, "y":4}, {"label":"V", "x":7.5, "y":4}, {"label":"B", "x":8.5, "y":4}, {"label":"N", "x":10.5, "y":4}, {"label":"M", "x":11.5, "y":4}, {"label":"<", "x":12.5, "y":4}, {"label":">", "x":13.5, "y":4}, {"label":"?", "x":14.5, "y":4}, {"label":"Shift", "x":15.5, "y":4, "w":1.75}, {"label":"\u2191", "x":17.25, "y":4}, {"label":"End", "x":18.25, "y":4}, {"label":"0", "x":0, "y":5}, {"label":"1", "x":1, "y":5}, {"label":"Ctrl", "x":2.25, "y":5, "w":1.25}, {"label":"Win", "x":3.5, "y":5, "w":1.25}, {"label":"Alt", "x":4.75, "y":5, "w":1.25}, {"x":6, "y":5, "w":2}, {"x":8, "y":5}, {"x":10, "y":5, "w":2.75}, {"label":"Alt", "x":12.75, "y":5, "w":1.25}, {"label":"Fn", "x":14, "y":5}, {"label":"Ctrl", "x":15, "y":5, "w":1.25}, {"label":"\u2190", "x":16.25, "y":5}, {"label":"\u2193", "x":17.25, "y":5}, {"label":"\u2192", "x":18.25, "y":5}]
10 }
11 }
12} \ No newline at end of file
diff --git a/keyboards/wheatfield/split75/keymaps/art/keymap.c b/keyboards/wheatfield/split75/keymaps/art/keymap.c
new file mode 100644
index 000000000..e540f1cb6
--- /dev/null
+++ b/keyboards/wheatfield/split75/keymaps/art/keymap.c
@@ -0,0 +1,189 @@
1#include QMK_KEYBOARD_H
2
3enum layer_names {
4 BASE,
5 QWERTY_MOD,
6 QWERTY,
7 WORKMAN,
8 MOD,
9 MEDIA
10};
11
12const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
13
14 /* Base ,-----------------------------------------. ,-----------------------------------------------------.
15 * | ESC | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 |Print| Ins | Home|
16 * ,-----------. |-----+-----+-----+-----+-----+-----+-----| |-----+-----+-----+-----+-----+-----+-----------+-----|
17 * | 8 | 9 | | ~ | 1 | 2 | 3 | 4 | 5 | 6 | | 7 | 8 | 9 | 0 | - | = | Backspac | Del |
18 * |-----+-----| |-----------------------------------------' ,--------------------------------------------------+-----|
19 * | 6 | 7 | | Tab | Q | W | E | R | T | | Y | U | I | O | P | [ | ] | \ | End |
20 * |-----+-----| |---------------------------------------. `--------------------------------------------------+-----|
21 * | 4 | 5 | | Caps | A | S | D | F | G | | H | J | K | L | ; | ' | Enter | PgUp|
22 * |-----+-----| |-----------------------------------------. `-------------------------------------------------+-----|
23 * | 2 | 3 | | Shift | Z | X | C | V | B | | N | M | , | . | / | Shift | Up | PgDn|
24 * |-----+-----| |-----------------------------------------' ,-------------------------------------------+-----+-----|
25 * | 0 | 1 | | Ctrl | GUI | Alt | Space |Space| | Space | Alt |QW_ON| Ctrl | Left| Down|Right|
26 * `-----------' `---------------------------------------' `-------------------------------------------------------'
27 */
28 [BASE] = LAYOUT(
29//--------------------------------Left Hand-----------------------------------| |--------------------------------Right Hand------------------------------------------------
30 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_INS, KC_HOME,
31KC_8, KC_9, KC_GRAVE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQUAL, KC_BSPC, KC_DEL,
32KC_6, KC_7, 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_END,
33KC_4, KC_5, 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_ENTER, KC_PGUP,
34KC_2, KC_3, 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_PGDN,
35KC_0, KC_1, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(QWERTY_MOD), KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT
36 ),
37
38 /*QWERT On + Mod ,-----------------------------------------. ,-----------------------------------------------------.
39 * | | | | | | | | | | | | | | | | | |
40 * ,-----------. |-----+-----+-----+-----+-----+-----+-----| |-----+-----+-----+-----+-----+-----+-----------+-----|
41 * | | | | | | | | | | | | | | | | | | | |
42 * |-----+-----| |-----------------------------------------' ,--------------------------------------------------+-----|
43 * | | | | |MePrv| Vol+|MeNxt| | | | | | | | | | | | |
44 * |-----+-----| |---------------------------------------. `--------------------------------------------------+-----|
45 * | | | | | | Vol-| | | | | | | | | | | | |
46 * |-----+-----| |-----------------------------------------. `-------------------------------------------------+-----|
47 * | | | | | | Vol0|MePly| | | | | | | | | | | |
48 * |-----+-----| |-----------------------------------------' ,-------------------------------------------+-----+-----|
49 * | | | | QWERTY | | | | | | | | | | | | |
50 * `-----------' `---------------------------------------' `-------------------------------------------------------'
51 */
52 [QWERTY_MOD] = LAYOUT(
53//--------------------------------Left Hand-----------------------------------------------| |--------------------------------Right Hand------------------------------------------------
54 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
55_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
56_______, _______, _______, KC_MPRV, KC_VOLU, KC_MNXT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
57_______, _______, _______, _______, KC_VOLD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
58_______, _______, _______, _______, KC_MUTE, KC_MPLY, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
59_______, _______, TO(QWERTY),_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
60 ),
61
62 /* QWERTY ,-----------------------------------------. ,-----------------------------------------------------.
63 * | ESC | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 |Print| Ins | Home|
64 * ,-----------. |-----+-----+-----+-----+-----+-----+-----| |-----+-----+-----+-----+-----+-----+-----------+-----|
65 * | 8 | 9 | | ~ | 1 | 2 | 3 | 4 | 5 | 6 | | 7 | 8 | 9 | 0 | - | = | Backspac | Del |
66 * |-----+-----| |-----------------------------------------' ,--------------------------------------------------+-----|
67 * | 6 | 7 | | Tab | Q | W | E | R | T | | Y | U | I | O | P | [ | ] | \ | End |
68 * |-----+-----| |---------------------------------------. `--------------------------------------------------+-----|
69 * | 4 | 5 | | Caps | A | S | D | F | G | | H | J | K | L | ; | ' | Enter | PgUp|
70 * |-----+-----| |-----------------------------------------. `-------------------------------------------------+-----|
71 * | 2 | 3 | | Shift | Z | X | C | V | B | | N | M | , | . | / | Shift | Up | PgDn|
72 * |-----+-----| |-----------------------------------------' ,-------------------------------------------+-----+-----|
73 * | 0 | 1 | | Ctrl | GUI | Alt |Spac/MEDIA | BSPC| | MOD | Alt | MOD | Ctrl | Left| Down|Right|
74 * `-----------' `---------------------------------------' `-------------------------------------------------------'
75 */
76 [QWERTY] = LAYOUT(
77//--------------------------------Left Hand------------------------------------| |--------------------------------Right Hand------------------------------------------------
78 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_INS, KC_HOME,
79KC_8, KC_9, KC_GRAVE, KC_1, KC_2, LGUI_T(KC_3), LALT_T(KC_4), LCTL_T(KC_5), KC_6, KC_7, LCTL_T(KC_8), LALT_T(KC_9), LGUI_T(KC_0), KC_MINUS, KC_EQUAL, KC_BSPC, KC_DEL,
80KC_6, KC_7, 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_END,
81KC_4, KC_5, 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_ENTER, KC_PGUP,
82KC_2, KC_3, 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_PGDN,
83KC_0, KC_1, KC_LCTL, KC_LGUI, KC_LALT, LT(MEDIA, KC_SPC),KC_BSPC, MO(MOD), KC_RALT, MO(MOD),KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT
84 ),
85
86 /* WORKMAN ,-----------------------------------------. ,-----------------------------------------------------.
87 * | | | | | | | | | | | | | | | | | |
88 * ,-----------. |-----+-----+-----+-----+-----+-----+-----| |-----+-----+-----+-----+-----+-----+-----------+-----|
89 * | | | | | | | | | | | | | | | | | | | |
90 * |-----+-----| |-----------------------------------------' ,--------------------------------------------------+-----|
91 * | | | | | | | | | | | | | | | | | | | |
92 * |-----+-----| |---------------------------------------. `--------------------------------------------------+-----|
93 * | | | | | | | | | | | | | | | | | | |
94 * |-----+-----| |-----------------------------------------. `-------------------------------------------------+-----|
95 * | | | | | | | | | | | | | | | | | | |
96 * |-----+-----| |-----------------------------------------' ,-------------------------------------------+-----+-----|
97 * | | | | BASE | | | | | | | | | | | | |
98 * `-----------' `---------------------------------------' `-------------------------------------------------------'
99 */
100 [WORKMAN] = LAYOUT(
101//--------------------------------Left Hand-----------------------------------------------| |--------------------------------Right Hand------------------------------------------------
102 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
103_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
104_______, _______, _______, KC_Q, KC_D, KC_R, KC_W, KC_B, KC_J, KC_F, KC_U, KC_P, KC_SCLN,_______,_______, _______, _______,
105_______, _______, _______, KC_A, KC_S, KC_H, KC_T, KC_G, KC_Y, KC_N, KC_E, KC_O, KC_I, _______, _______, _______,
106_______, _______, _______, KC_Z, KC_X, KC_C, KC_V, KC_M, KC_K, KC_L, KC_COMM,KC_DOT, KC_SLSH, _______, _______, _______,
107_______, _______, TO(BASE), _______,_______,_______, _______, _______, _______, TO(QWERTY), _______, _______, _______, _______
108 ),
109
110 /* MOD ,-----------------------------------------. ,-----------------------------------------------------.
111 * | | | | | | | | | | | | | | | | | |
112 * ,-----------. |-----+-----+-----+-----+-----+-----+-----| |-----+-----+-----+-----+-----+-----+-----------+-----|
113 * | | | | | | | | | | | | | | | | | | | |
114 * |-----+-----| |-----------------------------------------' ,--------------------------------------------------+-----|
115 * | | | | | | | | | | | | | | | | | | | |
116 * |-----+-----| |---------------------------------------. `--------------------------------------------------+-----|
117 * | | | | | | | | | | | | | | | | | | |
118 * |-----+-----| |-----------------------------------------. `-------------------------------------------------+-----|
119 * | | | | | | | | | | | | | | | | | | |
120 * |-----+-----| |-----------------------------------------' ,-------------------------------------------+-----+-----|
121 * | | | | BASE | | | | | | | | | | | | |
122 * `-----------' `---------------------------------------' `-------------------------------------------------------'
123 */
124 [MOD] = LAYOUT(
125//--------------------------------Left Hand-----------------------------------------------| |--------------------------------Right Hand------------------------------------------------
126 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
127_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
128_______, _______, _______, _______, KC_HOME, KC_UP, KC_END, KC_PGUP, _______, KC_MS_BTN1,KC_MS_UP, KC_MS_BTN3,KC_MS_BTN2,_______,_______, _______, _______,
129_______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDOWN, _______,KC_MS_LEFT,KC_MS_DOWN,KC_MS_RIGHT,KC_APPLICATION, _______, _______, _______,
130_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
131_______, TO(WORKMAN),TO(BASE), KC_MS_ACCEL0,KC_MS_ACCEL1,KC_MS_ACCEL2, _______, _______, _______, _______, _______, _______, _______, _______
132 ),
133
134 /* MEDIA ,-----------------------------------------. ,-----------------------------------------------------.
135 * | | | | | | | | | | | | | | | | | |
136 * ,-----------. |-----+-----+-----+-----+-----+-----+-----| |-----+-----+-----+-----+-----+-----+-----------+-----|
137 * | | | | | | | | | | | | | | | | | | | |
138 * |-----+-----| |-----------------------------------------' ,--------------------------------------------------+-----|
139 * | | | | | | | | | | | | | | | | | | | |
140 * |-----+-----| |---------------------------------------. `--------------------------------------------------+-----|
141 * | | | | | | | | | | | | | | | | | | |
142 * |-----+-----| |-----------------------------------------. `-------------------------------------------------+-----|
143 * | | | | | | | Play| | | | | | | | | | | |
144 * |-----+-----| |-----------------------------------------' ,-------------------------------------------+-----+-----|
145 * | | | | BASE | | | | | | | | | | | | |
146 * `-----------' `---------------------------------------' `-------------------------------------------------------'
147 */
148 [MEDIA] = LAYOUT(
149//--------------------------------Left Hand-----------------------------------------------| |--------------------------------Right Hand------------------------------------------------
150 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
151_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
152_______, _______, _______, KC_MPRV, KC_VOLU, KC_MNXT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
153_______, _______, _______, _______, KC_VOLD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
154_______, _______, _______, _______, KC_MUTE, KC_MPLY, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
155_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
156 )
157};
158
159bool led_update_user(led_t led_state) {
160 writePin(CAPSLOCK_LED_PIN, led_state.caps_lock);
161 return false;
162}
163
164void keyboard_pre_init_user(void) {
165 writePinHigh(SCROLLLOCK_LED_PIN);
166 wait_ms(50);
167 writePinHigh(CAPSLOCK_LED_PIN);
168 wait_ms(50);
169 writePinHigh(NUMLOCK_LED_PIN);
170 wait_ms(50);
171 writePinLow(SCROLLLOCK_LED_PIN);
172 wait_ms(50);
173 writePinLow(CAPSLOCK_LED_PIN);
174 wait_ms(50);
175 writePinLow(NUMLOCK_LED_PIN);
176
177 layer_state_set_user(layer_state);
178}
179
180layer_state_t layer_state_set_user(layer_state_t state) {
181 writePinLow(NUMLOCK_LED_PIN);
182 writePinLow(SCROLLLOCK_LED_PIN);
183 switch (get_highest_layer(state)) {
184 case BASE:
185 writePinHigh(SCROLLLOCK_LED_PIN);
186 break;
187 }
188 return state;
189}
diff --git a/keyboards/wheatfield/split75/keymaps/default/keymap.c b/keyboards/wheatfield/split75/keymaps/default/keymap.c
new file mode 100644
index 000000000..069eb6bd1
--- /dev/null
+++ b/keyboards/wheatfield/split75/keymaps/default/keymap.c
@@ -0,0 +1,30 @@
1#include QMK_KEYBOARD_H
2
3#define BASE 0
4
5const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
6
7 /* Base ,-----------------------------------------. ,-----------------------------------------------------.
8 * | ESC | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 |Print| Ins | Del |
9 * ,-----------. |-----+-----+-----+-----+-----+-----+-----| |-----+-----+-----+-----+-----+-----+-----------+-----|
10 * | 8 | 9 | | ~ | 1 | 2 | 3 | 4 | 5 | 6 | | 7 | 8 | 9 | 0 | - | = | Backspac | Home|
11 * |-----+-----| |-----------------------------------------' ,--------------------------------------------------+-----|
12 * | 6 | 7 | | Tab | Q | W | E | R | T | | Y | U | I | O | P | [ | ] | \ | PgUp|
13 * |-----+-----| |---------------------------------------. `--------------------------------------------------+-----|
14 * | 4 | 5 | | Caps | A | S | D | F | G | | H | J | K | L | ; | ' | Enter | PgDn|
15 * |-----+-----| |-----------------------------------------. `-------------------------------------------------+-----|
16 * | 2 | 3 | | Shift | Z | X | C | V | B | | N | M | , | . | / | Shift | Up | End |
17 * |-----+-----| |-----------------------------------------' ,-------------------------------------------+-----+-----|
18 * | 0 | 1 | | Ctrl | GUI | Alt | Space |Space| | Space | Alt | | Ctrl | Left| Down|Right|
19 * `-----------' `---------------------------------------' `-------------------------------------------------------'
20 */
21 [BASE] = LAYOUT(
22//--------------------------------Left Hand-----------------------------------| |--------------------------------Right Hand------------------------------------------------
23 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_INS, KC_DEL,
24KC_8, KC_9, KC_GRAVE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQUAL, KC_BSPC, KC_HOME,
25KC_6, KC_7, 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_PGUP,
26KC_4, KC_5, 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_ENTER, KC_PGDN,
27KC_2, KC_3, 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_END,
28KC_0, KC_1, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, _______,KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT
29 )
30};
diff --git a/keyboards/wheatfield/split75/matrix.c b/keyboards/wheatfield/split75/matrix.c
new file mode 100644
index 000000000..9e86bfc37
--- /dev/null
+++ b/keyboards/wheatfield/split75/matrix.c
@@ -0,0 +1,155 @@
1/*
2Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include <string.h>
19#include <stdio.h>
20#include "quantum.h"
21#include "i2c_master.h"
22#include "split75.h"
23
24#define RIGHT_HALF
25
26
27void matrix_set_row_status(uint8_t row);
28
29
30#if defined(RIGHT_HALF)
31#define I2C_TIMEOUT 10
32#define MCP23018_TWI_ADDRESS 0b0100000
33#define TW_READ 1
34#define TW_WRITE 0
35#define TWI_ADDR_WRITE ( (MCP23018_TWI_ADDRESS<<1) | TW_WRITE )
36#define TWI_ADDR_READ ( (MCP23018_TWI_ADDRESS<<1) | TW_READ )
37#define IODIRA 0x00 // i/o direction register
38#define IODIRB 0x01
39#define IODIRA 0x00 // i/o direction register
40#define IODIRB 0x01
41#define GPPUA 0x0C // GPIO pull-up resistor register
42#define GPPUB 0x0D
43#define GPIOA 0x12 // general purpose i/o port register (write modifies OLAT)
44#define GPIOB 0x13
45#define OLATA 0x14 // output latch register
46#define OLATB 0x15
47#define MCP_ROWS_START 8
48
49static uint8_t mcp23018_init(void) {
50 uint8_t ret;
51 uint8_t data[3];
52 // set pin direction
53 // - unused : input : 1
54 // - input : input : 1
55 // - driving : output : 0
56 data[0] = IODIRA;
57 data[1] = 0b00000000; // IODIRA
58 data[2] = (0b11111111); // IODIRB
59
60 ret = i2c_transmit(TWI_ADDR_WRITE, (uint8_t *)data, 3, I2C_TIMEOUT);
61 if (ret) goto out; // make sure we got an ACK
62
63 // set pull-up
64 // - unused : on : 1
65 // - input : on : 1
66 // - driving : off : 0
67 data[0] = GPPUA;
68 data[1] = 0b00000000; // IODIRA
69 data[2] = (0b11111111); // IODIRB
70
71 ret = i2c_transmit(TWI_ADDR_WRITE, (uint8_t *)data, 3, I2C_TIMEOUT);
72 if (ret) goto out; // make sure we got an ACK
73
74 // set logical value (doesn't matter on inputs)
75 // - unused : hi-Z : 1
76 // - input : hi-Z : 1
77 // - driving : hi-Z : 1
78 data[0] = OLATA;
79 data[1] = 0b11111111; // IODIRA
80 data[2] = (0b11111111); // IODIRB
81
82 ret = i2c_transmit(TWI_ADDR_WRITE, (uint8_t *)data, 3, I2C_TIMEOUT);
83
84out:
85 return ret;
86}
87#endif
88
89void matrix_init_custom(void) {
90 // Set rows as output starting high
91 DDRB = 0xFF;
92 PORTB = 0xFF;
93
94 // Set columns as inputs with pull-up enabled
95 DDRA = 0x00;
96 PORTA = 0xFF;
97
98 // Initialize i2c communication
99 i2c_init();
100
101#if defined(RIGHT_HALF)
102 // Initialize the chip on the other half
103 mcp23018_init();
104#endif
105
106}
107
108bool matrix_scan_custom(matrix_row_t current_matrix[]) {
109 bool matrix_has_changed = false;
110
111 for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
112 // Store last value of row prior to reading
113 matrix_row_t last_row_value = current_matrix[row];
114
115 matrix_row_t cols = 0;
116 // Select the row to scan
117 matrix_set_row_status(row);
118
119 matrix_io_delay();
120 //Set the local row
121
122#if defined(RIGHT_HALF)
123 // Initialize to 0x7F in case I2C read fails,
124 // as 0x75 would be no keys pressed
125 uint8_t data = 0x7F;
126 // Receive the columns from right half
127 i2c_receive(TWI_ADDR_WRITE, &data, 1, I2C_TIMEOUT);
128#endif
129
130 cols |= ((~(PINA | 0x80)) & 0x7F);
131#if defined(RIGHT_HALF)
132 cols |= (((~(data | 0x80)) & 0x7F) << 7);
133#endif
134
135 current_matrix[row] = cols;
136 matrix_has_changed |= (last_row_value != current_matrix[row]);
137 }
138
139 return matrix_has_changed;
140}
141
142void matrix_set_row_status(uint8_t row) {
143#if defined(RIGHT_HALF)
144 uint8_t txdata[3];
145
146 //Set the remote row on port A
147 txdata[0] = (GPIOA);
148 txdata[1] = ( 0xFF & ~(1<<row) );
149 i2c_transmit(TWI_ADDR_WRITE, (uint8_t *)txdata, 2, I2C_TIMEOUT);
150#endif
151
152 //Set the local row on port B
153 DDRB = (1 << row);
154 PORTB = ~(1 << row);
155}
diff --git a/keyboards/wheatfield/split75/rules.mk b/keyboards/wheatfield/split75/rules.mk
new file mode 100644
index 000000000..e90f5f439
--- /dev/null
+++ b/keyboards/wheatfield/split75/rules.mk
@@ -0,0 +1,31 @@
1# MCU name
2MCU = atmega32a
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 = bootloadHID
13
14# Build Options
15# change yes to no to disable
16#
17BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
18MOUSEKEY_ENABLE = no # Mouse keys
19EXTRAKEY_ENABLE = yes # Audio control and System control
20CONSOLE_ENABLE = no # Console for debug
21COMMAND_ENABLE = no # Commands for debug and configuration
22BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
23RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
24WS2812_DRIVER = i2c
25
26OPT_DEFS = -DDEBUG_LEVEL=0
27
28# custom matrix setup
29CUSTOM_MATRIX = lite
30SRC = matrix.c
31QUANTUM_LIB_SRC += i2c_master.c
diff --git a/keyboards/wheatfield/split75/split75.c b/keyboards/wheatfield/split75/split75.c
new file mode 100644
index 000000000..3ed456292
--- /dev/null
+++ b/keyboards/wheatfield/split75/split75.c
@@ -0,0 +1,25 @@
1#include "split75.h"
2
3#include "i2c_master.h"
4
5
6void keyboard_pre_init_kb(void) {
7 led_init_ports();
8 keyboard_pre_init_user();
9}
10
11void led_init_ports(void) {
12 setPinOutput(NUMLOCK_LED_PIN);
13 setPinOutput(CAPSLOCK_LED_PIN);
14 setPinOutput(SCROLLLOCK_LED_PIN);
15}
16
17bool led_update_kb(led_t led_state) {
18 bool res = led_update_user(led_state);
19 if(res) {
20 writePin(NUMLOCK_LED_PIN, led_state.num_lock);
21 writePin(CAPSLOCK_LED_PIN, led_state.caps_lock);
22 writePin(SCROLLLOCK_LED_PIN, led_state.scroll_lock);
23 }
24 return res;
25}
diff --git a/keyboards/wheatfield/split75/split75.h b/keyboards/wheatfield/split75/split75.h
new file mode 100644
index 000000000..d81cf0a61
--- /dev/null
+++ b/keyboards/wheatfield/split75/split75.h
@@ -0,0 +1,33 @@
1#pragma once
2
3#include "quantum.h"
4
5// Number of keys in rows
6// 0 + 7 / 9
7// 2 + 7 / 8
8// 2 + 6 / 9
9// 2 + 6 / 8
10// 2 + 6 / 8
11// 2 + 5 / 7
12
13#define LAYOUT( \
14 K05, K15, K25, K35, K45, K55, K65, K75, K85, K95, K105, K115, K125, K135, K86, K87, \
15 K47, K46, K04, K14, K24, K34, K44, K54, K64, K74, K84, K94, K104, K114, K124, K96, K97, \
16 K37, K36, K03, K13, K23, K33, K43, K53, K73, K83, K93, K103, K113, K123, K133, K106, K107, \
17 K27, K26, K02, K12, K22, K32, K42, K52, K72, K82, K92, K102, K112, K122, K116, K117, \
18 K17, K16, K01, K21, K31, K41, K51, K61, K71, K81, K91, K101, K111, K131, K126, K127, \
19 K07, K06, K00, K10, K20, K30, K40, K70, K100, K110, K120, K130, K136, K137 \
20){ \
21 { K00, K10, K20, K30, K40, KC_NO, KC_NO, K70, KC_NO, KC_NO, K100, K110, K120, K130 }, \
22 { K01, KC_NO, K21, K31, K41, K51, K61, K71, K81, K91, K101, K111, KC_NO, K131 }, \
23 { K02, K12, K22, K32, K42, K52, KC_NO, K72, K82, K92, K102, K112, K122, }, \
24 { K03, K13, K23, K33, K43, K53, KC_NO, K73, K83, K93, K103, K113, K123, K133 }, \
25 { K04, K14, K24, K34, K44, K54, K64, K74, K84, K94, K104, K114, K124, }, \
26 { K05, K15, K25, K35, K45, K55, K65, K75, K85, K95, K105, K115, K125, K135 }, \
27 { K06, K16, K26, K36, K46, KC_NO, KC_NO, KC_NO, K86, K96, K106, K116, K126, K136 }, \
28 { K07, K17, K27, K37, K47, KC_NO, KC_NO, KC_NO, K87, K97, K107, K117, K127, K137 } \
29}
30
31#define NUMLOCK_LED_PIN D0
32#define CAPSLOCK_LED_PIN D1
33#define SCROLLLOCK_LED_PIN D6