aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorza21 <38391766+horza21@users.noreply.github.com>2020-03-24 06:26:22 +0800
committerGitHub <noreply@github.com>2020-03-23 15:26:22 -0700
commitb779078c608292483b40cb13346ff54485e96823 (patch)
tree9d3e902a8c1b163519e79dd01d96a544782fb9b9
parentb936048b0bf2b5508104e243089e785debc431d0 (diff)
downloadqmk_firmware-b779078c608292483b40cb13346ff54485e96823.tar.gz
qmk_firmware-b779078c608292483b40cb13346ff54485e96823.zip
[Keyboard] Add support for Southpaw Extended 65% (#8465)
* Add support for Southpaw Extended 65% * Update keyboards/switchplate/southpaw_65/readme.md * Update keyboards/switchplate/southpaw_65/readme.md * Update keyboards/switchplate/southpaw_65/readme.md * Update keyboards/switchplate/southpaw_65/southpaw_65.c * Update keyboards/switchplate/southpaw_65/rules.mk * Cleaned up keymaps -Removed default2 keymap -Removed default_iso2 keymap -Rename default keymap directory to default_ansi to reflect correct keymap name * Update readme.md for default_ansi keymap directory change * Add layout_all for configurator and correct maximum number of keys supported in readme.md * Update keyboards/switchplate/southpaw_65/info.json Forgot to change name to LAYOUT_all * Update keyboards/switchplate/southpaw_65/info.json * Update keyboards/switchplate/southpaw_65/readme.md * Update keyboards/switchplate/southpaw_65/rules.mk * Add LAYOUT_all keymap * Update keyboards/switchplate/southpaw_65/keymaps/default/keymap.c * Update keyboards/switchplate/southpaw_65/info.json
-rw-r--r--keyboards/switchplate/southpaw_65/config.h239
-rw-r--r--keyboards/switchplate/southpaw_65/dev.md141
-rw-r--r--keyboards/switchplate/southpaw_65/info.json21
-rw-r--r--keyboards/switchplate/southpaw_65/keymaps/default/keymap.c31
-rw-r--r--keyboards/switchplate/southpaw_65/keymaps/default_ansi/keymap.c31
-rw-r--r--keyboards/switchplate/southpaw_65/keymaps/default_iso/keymap.c32
-rw-r--r--keyboards/switchplate/southpaw_65/matrix.c95
-rw-r--r--keyboards/switchplate/southpaw_65/readme.md23
-rw-r--r--keyboards/switchplate/southpaw_65/rules.mk41
-rw-r--r--keyboards/switchplate/southpaw_65/southpaw_65.c30
-rw-r--r--keyboards/switchplate/southpaw_65/southpaw_65.h69
11 files changed, 753 insertions, 0 deletions
diff --git a/keyboards/switchplate/southpaw_65/config.h b/keyboards/switchplate/southpaw_65/config.h
new file mode 100644
index 000000000..58df7657c
--- /dev/null
+++ b/keyboards/switchplate/southpaw_65/config.h
@@ -0,0 +1,239 @@
1/* Copyright 2019
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0xFEED
23#define PRODUCT_ID 0x4084
24#define DEVICE_VER 0x0001
25#define MANUFACTURER Switchplate Peripherals
26#define PRODUCT Southpaw Extended 65%
27#define DESCRIPTION A Left Hand Number Pad 65% Keyboard
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 19
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42*/
43//#define MATRIX_ROW_PINS { D0, D5 }
44//#define MATRIX_COL_PINS { F1, F0, B0 }
45//#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48//#define DIODE_DIRECTION COL2ROW
49
50#define BACKLIGHT_PIN B5
51#define BACKLIGHT_LEVELS 10
52// #define BACKLIGHT_BREATHING
53
54#define RGB_DI_PIN C7
55#define RGBLED_NUM 9
56#define RGBLIGHT_ANIMATIONS
57// #ifdef RGB_DI_PIN
58// #define RGBLIGHT_HUE_STEP 8
59// #define RGBLIGHT_SAT_STEP 8
60// #define RGBLIGHT_VAL_STEP 8
61// #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
62// #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
63// /*== all animations enable ==*/
64// #define RGBLIGHT_ANIMATIONS
65// /*== or choose animations ==*/
66// #define RGBLIGHT_EFFECT_BREATHING
67// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
68// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
69// #define RGBLIGHT_EFFECT_SNAKE
70// #define RGBLIGHT_EFFECT_KNIGHT
71// #define RGBLIGHT_EFFECT_CHRISTMAS
72// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
73// #define RGBLIGHT_EFFECT_RGB_TEST
74// #define RGBLIGHT_EFFECT_ALTERNATING
75// #endif
76
77/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
78#define DEBOUNCE 5
79
80/* define if matrix has ghost (lacks anti-ghosting diodes) */
81//#define MATRIX_HAS_GHOST
82
83/* number of backlight levels */
84
85/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
86#define LOCKING_SUPPORT_ENABLE
87/* Locking resynchronize hack */
88#define LOCKING_RESYNC_ENABLE
89
90/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
91 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
92 */
93// #define GRAVE_ESC_CTRL_OVERRIDE
94
95/*
96 * Force NKRO
97 *
98 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
99 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
100 * makefile for this to work.)
101 *
102 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
103 * until the next keyboard reset.
104 *
105 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
106 * fully operational during normal computer usage.
107 *
108 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
109 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
110 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
111 * power-up.
112 *
113 */
114//#define FORCE_NKRO
115
116/*
117 * Magic Key Options
118 *
119 * Magic keys are hotkey commands that allow control over firmware functions of
120 * the keyboard. They are best used in combination with the HID Listen program,
121 * found here: https://www.pjrc.com/teensy/hid_listen.html
122 *
123 * The options below allow the magic key functionality to be changed. This is
124 * useful if your keyboard/keypad is missing keys and you want magic key support.
125 *
126 */
127
128/* key combination for magic key command */
129/* defined by default; to change, uncomment and set to the combination you want */
130// #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
131
132/* control how magic key switches layers */
133//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
134//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
135//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
136
137/* override magic key keymap */
138//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
139//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
140//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
141//#define MAGIC_KEY_HELP1 H
142//#define MAGIC_KEY_HELP2 SLASH
143//#define MAGIC_KEY_DEBUG D
144//#define MAGIC_KEY_DEBUG_MATRIX X
145//#define MAGIC_KEY_DEBUG_KBD K
146//#define MAGIC_KEY_DEBUG_MOUSE M
147//#define MAGIC_KEY_VERSION V
148//#define MAGIC_KEY_STATUS S
149//#define MAGIC_KEY_CONSOLE C
150//#define MAGIC_KEY_LAYER0_ALT1 ESC
151//#define MAGIC_KEY_LAYER0_ALT2 GRAVE
152//#define MAGIC_KEY_LAYER0 0
153//#define MAGIC_KEY_LAYER1 1
154//#define MAGIC_KEY_LAYER2 2
155//#define MAGIC_KEY_LAYER3 3
156//#define MAGIC_KEY_LAYER4 4
157//#define MAGIC_KEY_LAYER5 5
158//#define MAGIC_KEY_LAYER6 6
159//#define MAGIC_KEY_LAYER7 7
160//#define MAGIC_KEY_LAYER8 8
161//#define MAGIC_KEY_LAYER9 9
162//#define MAGIC_KEY_BOOTLOADER PAUSE
163//#define MAGIC_KEY_LOCK CAPS
164//#define MAGIC_KEY_EEPROM E
165//#define MAGIC_KEY_NKRO N
166//#define MAGIC_KEY_SLEEP_LED Z
167
168/*
169 * Feature disable options
170 * These options are also useful to firmware size reduction.
171 */
172
173/* disable debug print */
174//#define NO_DEBUG
175
176/* disable print */
177//#define NO_PRINT
178
179/* disable action features */
180//#define NO_ACTION_LAYER
181//#define NO_ACTION_TAPPING
182//#define NO_ACTION_ONESHOT
183//#define NO_ACTION_MACRO
184//#define NO_ACTION_FUNCTION
185
186/*
187 * MIDI options
188 */
189
190/* Prevent use of disabled MIDI features in the keymap */
191//#define MIDI_ENABLE_STRICT 1
192
193/* enable basic MIDI features:
194 - MIDI notes can be sent when in Music mode is on
195*/
196//#define MIDI_BASIC
197
198/* enable advanced MIDI features:
199 - MIDI notes can be added to the keymap
200 - Octave shift and transpose
201 - Virtual sustain, portamento, and modulation wheel
202 - etc.
203*/
204//#define MIDI_ADVANCED
205
206/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
207//#define MIDI_TONE_KEYCODE_OCTAVES 1
208
209/*
210 * HD44780 LCD Display Configuration
211 */
212/*
213#define LCD_LINES 2 //< number of visible lines of the display
214#define LCD_DISP_LENGTH 16 //< visibles characters per line of the display
215
216#define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode
217
218#if LCD_IO_MODE
219#define LCD_PORT PORTB //< port for the LCD lines
220#define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0
221#define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1
222#define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2
223#define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3
224#define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0
225#define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1
226#define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2
227#define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3
228#define LCD_RS_PORT LCD_PORT //< port for RS line
229#define LCD_RS_PIN 3 //< pin for RS line
230#define LCD_RW_PORT LCD_PORT //< port for RW line
231#define LCD_RW_PIN 2 //< pin for RW line
232#define LCD_E_PORT LCD_PORT //< port for Enable line
233#define LCD_E_PIN 1 //< pin for Enable line
234#endif
235*/
236
237/* Bootmagic Lite key configuration */
238// #define BOOTMAGIC_LITE_ROW 0
239// #define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/switchplate/southpaw_65/dev.md b/keyboards/switchplate/southpaw_65/dev.md
new file mode 100644
index 000000000..08a333f2d
--- /dev/null
+++ b/keyboards/switchplate/southpaw_65/dev.md
@@ -0,0 +1,141 @@
1# Southpaw Extended 65%
2
3Development docs covering the following:
4- Kimera core
5- RGB
6- Backlight
7
8## Kimera core
9![Kimera core](https://gd2.alicdn.com/imgextra/i4/159916802/TB2qsIgdrJkpuFjy1zcXXa5FFXa_!!159916802.jpg)
10
11What little available info that was available for the qmk port
12- atmega32u4 16Mhz
13- board seems to have a 6Mhz crystal
14- 2x PCA9555 I2C IO expander
15
16Links:
17- [Schematic, BOM, Gerbers](/kairyu/kimera/blob/master/kimera_core)
18- [Original firmware](https://github.com/kairyu/tmk_keyboard_custom/tree/master/keyboard/kimera)
19
20```c
21/*
22Kimera_core_v1.0 Components
23
24 U1 (atmega32u4)
25 ,----------------.
26 TX --| TX0(PD3) RAW |--
27 RX --| RX1(PD2) GND |--
28 --| GND RESET |-- RST
29 --| GND VCC |--
30 SDA --| 2(PD1) (PF4)A3 |--
31 SCL --| 3(PD0) (PF5)A2 |--
32 (INT) --| 4(PD4) (PF6)A1 |--
33 --| 5(PC6) (PF7)A0 |--
34 --| 6(PD7) (PB1)15 |-- SCK
35 LED2 --| 7(PE6) (PB3)14 |-- MISO
36 LED1 --| 8(PB4) (PB2)16 |-- MOSI
37 LED3 --| 9(PB5) (PB6)10 |-- LED4
38 `----------------'
39
40 IC1 (PCA9555) IC2 (PCA9555)
41 ,----------. ,----------.
42 SDA --| SDA P00 |-- P1 SDA --| SDA P00 |-- P17
43 SCL --| SCL P01 |-- P2 SCL --| SCL P01 |-- P18
44 INT --| INT P02 |-- P3 INT --| INT P02 |-- P19
45 | P03 |-- P4 | P03 |-- P20
46 GND --| A0 P04 |-- P5 VCC --| A0 P04 |-- P21
47 SJ1 --| A1 P05 |-- P6 SJ1 --| A1 P05 |-- P22
48 SJ2 --| A2 P06 |-- P7 SJ2 --| A2 P06 |-- P23
49 | P07 |-- P8 | P07 |-- P24
50 | | | |
51 | P10 |-- P9 | P10 |-- P25
52 | P11 |-- P10 | P11 |-- P26
53 | P12 |-- P11 | P12 |-- P27
54 | P13 |-- P12 | P13 |-- P28
55 | P14 |-- P13 | P14 |-- P29
56 | P15 |-- P14 | P15 |-- P30
57 | P16 |-- P15 | P16 |-- P31
58 | P17 |-- P16 | P17 |-- P32
59 `----------' `----------'
60*/
61
62```
63
64### Bootloader
65Default bootloader is `atmel-dfu`.
66Reboot to bootloader via magnetic switch next to icsp header.
67Flash using regular dfu methods.
68
69### Southpaw Extended 65 pin mappings
70Taken from [kimera-config.json](https://github.com/kairyu/tkg/blob/master/keyboard/config/kimera-config.json)
71
72 "row_mapping": [ 2, 3, 4, 5, 6 ],
73 "col_mapping": [ 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 ],
74
75# RGB
76- PIN C7
77- Number of RGB LED 7
78
79# Backlight
80- PIN B5
81
82# Capslock
83- PIN B6
84
85# Numlock
86- PIN C6
87
88## Assumptions
89### Pin/Port mappings
90- All cols are on the same IC
91- All rows are on the same IC and port
92- Pins mapped sequentially
93- Each port only does row or column not a mixture of both
94 - No need to have complex port config
95 -
96
97| ROW index | Kimera Pin | PCA9555 |
98| ----------|------------|-------------------|
99| 0 | 2 | IC1 Port 0 pin 1 |
100| 1 | 3 | IC1 Port 0 pin 2 |
101| 2 | 4 | IC1 Port 0 pin 3 |
102| 3 | 5 | IC1 Port 0 pin 4 |
103| 4 | 6 | IC1 Port 0 pin 5 |
104
105- Safe enough to assume `row_index == pin`
106
107
108| COL index | Kimera Pin | PCA9555 |
109| ----------|------------|-------------------|
110| 0 | 13 | IC1 Port 1 pin 4 |
111| 1 | 14 | IC1 Port 1 pin 5 |
112| 2 | 15 | IC1 Port 1 pin 6 |
113| 3 | 16 | IC1 Port 1 pin 7 |
114| 4 | 17 | IC2 Port 0 pin 0 |
115| 5 | 18 | IC2 Port 0 pin 1 |
116| 6 | 19 | IC2 Port 0 pin 2 |
117| 7 | 20 | IC2 Port 0 pin 3 |
118| 8 | 21 | IC2 Port 0 pin 4 |
119| 9 | 22 | IC2 Port 0 pin 5 |
120| 10 | 23 | IC2 Port 0 pin 6 |
121| 11 | 24 | IC2 Port 0 pin 7 |
122| 12 | 25 | IC2 Port 1 pin 0 |
123| 13 | 26 | IC2 Port 1 pin 1 |
124| 14 | 27 | IC2 Port 1 pin 2 |
125| 15 | 28 | IC2 Port 1 pin 3 |
126| 16 | 29 | IC2 Port 1 pin 4 |
127| 17 | 30 | IC2 Port 1 pin 5 |
128| 18 | 31 | IC2 Port 1 pin 6 |
129
130- Need to read both ICs and corresponding port to compile the correct column data
131- All pins are mapped sequentially
132- maps to the usual practice of reading matrix columns
133- Needs uint32_t to read 19 columns of data
134
135## Notes
136[pca9555 datasheet](https://www.ti.com/lit/ds/symlink/pca9555.pdf)
137
138- Other Kimera based boards with non sequential pin mappings, pins mapped across ICs, or mixed row/col configs will need more complicated `pin -> i2c_addr,port,pin` logic as well as rather more complex pin functions.
139
140## Return to stock firmware
141To return back to stock TMK firmware, use [programming guide provided by Reconsiderit](https://geekhack.org/index.php?topic=92344.msg2625784#msg2625784)
diff --git a/keyboards/switchplate/southpaw_65/info.json b/keyboards/switchplate/southpaw_65/info.json
new file mode 100644
index 000000000..e00f3a480
--- /dev/null
+++ b/keyboards/switchplate/southpaw_65/info.json
@@ -0,0 +1,21 @@
1{
2 "keyboard_name": "Southpaw Extended 65%",
3 "url": "https://geekhack.org/index.php?topic=92344.0",
4 "maintainer": "qmk",
5 "width": 20,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_all": {
9 "key_count": 91,
10 "layout": [{"label":"Num Lock", "x":0, "y":0}, {"label":"/", "x":1, "y":0}, {"label":"*", "x":2, "y":0}, {"label":"-", "x":3, "y":0}, {"label":"Esc", "x":4, "y":0}, {"label":"!", "x":5, "y":0}, {"label":"@", "x":6, "y":0}, {"label":"#", "x":7, "y":0}, {"label":"$", "x":8, "y":0}, {"label":"%", "x":9, "y":0}, {"label":"^", "x":10, "y":0}, {"label":"&", "x":11, "y":0}, {"label":"*", "x":12, "y":0}, {"label":"(", "x":13, "y":0}, {"label":")", "x":14, "y":0}, {"label":"_", "x":15, "y":0}, {"label":"+", "x":16, "y":0}, {"label":"Backspace", "x":17, "y":0}, {"label":"Backspace", "x":18, "y":0}, {"label":"Home", "x":19, "y":0}, {"label":"7", "x":0, "y":1}, {"label":"8", "x":1, "y":1}, {"label":"9", "x":2, "y":1}, {"label":"+", "x":3, "y":1}, {"label":"Tab", "x":4, "y":1, "w":1.5}, {"label":"Q", "x":5.5, "y":1}, {"label":"W", "x":6.5, "y":1}, {"label":"E", "x":7.5, "y":1}, {"label":"R", "x":8.5, "y":1}, {"label":"T", "x":9.5, "y":1}, {"label":"Y", "x":10.5, "y":1}, {"label":"U", "x":11.5, "y":1}, {"label":"I", "x":12.5, "y":1}, {"label":"O", "x":13.5, "y":1}, {"label":"P", "x":14.5, "y":1}, {"label":"{", "x":15.5, "y":1}, {"label":"}", "x":16.5, "y":1}, {"label":"|", "x":17.5, "y":1, "w":1.5}, {"label":"End", "x":19, "y":1}, {"label":"4", "x":0, "y":2}, {"label":"5", "x":1, "y":2}, {"label":"6", "x":2, "y":2}, {"label":"+", "x":3, "y":2}, {"label":"Caps Lock", "x":4, "y":2, "w":1.75}, {"label":"A", "x":5.75, "y":2}, {"label":"S", "x":6.75, "y":2}, {"label":"D", "x":7.75, "y":2}, {"label":"F", "x":8.75, "y":2}, {"label":"G", "x":9.75, "y":2}, {"label":"H", "x":10.75, "y":2}, {"label":"J", "x":11.75, "y":2}, {"label":"K", "x":12.75, "y":2}, {"label":"L", "x":13.75, "y":2}, {"label":":", "x":14.75, "y":2}, {"label":"\"", "x":15.75, "y":2}, {"label":"~", "x":16.75, "y":2}, {"label":"Enter", "x":17.75, "y":2, "w":1.25}, {"label":"Page Up", "x":19, "y":2}, {"label":"1", "x":0, "y":3}, {"label":"2", "x":1, "y":3}, {"label":"3", "x":2, "y":3}, {"label":"Num Enter", "x":3, "y":3}, {"label":"LShift", "x":4, "y":3, "w":1.25}, {"label":"|", "x":5.25, "y":3}, {"label":"Z", "x":6.25, "y":3}, {"label":"X", "x":7.25, "y":3}, {"label":"C", "x":8.25, "y":3}, {"label":"V", "x":9.25, "y":3}, {"label":"B", "x":10.25, "y":3}, {"label":"N", "x":11.25, "y":3}, {"label":"M", "x":12.25, "y":3}, {"label":"<", "x":13.25, "y":3}, {"label":">", "x":14.25, "y":3}, {"label":"?", "x":15.25, "y":3}, {"label":"RShift", "x":16.25, "y":3, "w":1.75}, {"label":"Up", "x":18, "y":3}, {"label":"Page Down", "x":19, "y":3}, {"label":"0", "x":0, "y":4}, {"label":"0", "x":1, "y":4}, {"label":".", "x":2, "y":4}, {"label":"Num Enter", "x":3, "y":4}, {"label":"LCtrl", "x":4, "y":4, "w":1.25}, {"label":"Win", "x":5.25, "y":4, "w":1.25}, {"label":"LAlt", "x":6.5, "y":4, "w":1.25}, {"label":"Space", "x":7.75, "y":4, "w":6.25}, {"label":"RAlt", "x":14, "y":4}, {"label":"RCtrl", "x":15, "y":4}, {"label":"Fn0", "x":16, "y":4}, {"label":"Left", "x":17, "y":4}, {"label":"Down", "x":18, "y":4}, {"label":"Right", "x":19, "y":4}]
11 },
12 "LAYOUT_ansi": {
13 "key_count": 85,
14 "layout": [{"label":"Num Lock", "x":0, "y":0}, {"label":"/", "x":1, "y":0}, {"label":"*", "x":2, "y":0}, {"label":"-", "x":3, "y":0}, {"label":"Esc", "x":4, "y":0}, {"label":"!", "x":5, "y":0}, {"label":"@", "x":6, "y":0}, {"label":"#", "x":7, "y":0}, {"label":"$", "x":8, "y":0}, {"label":"%", "x":9, "y":0}, {"label":"^", "x":10, "y":0}, {"label":"&", "x":11, "y":0}, {"label":"*", "x":12, "y":0}, {"label":"(", "x":13, "y":0}, {"label":")", "x":14, "y":0}, {"label":"_", "x":15, "y":0}, {"label":"+", "x":16, "y":0}, {"label":"Backspace", "x":17, "y":0, "w":2}, {"label":"Home", "x":19, "y":0}, {"label":"7", "x":0, "y":1}, {"label":"8", "x":1, "y":1}, {"label":"9", "x":2, "y":1}, {"label":"+", "x":3, "y":1, "h":2}, {"label":"Tab", "x":4, "y":1, "w":1.5}, {"label":"Q", "x":5.5, "y":1}, {"label":"W", "x":6.5, "y":1}, {"label":"E", "x":7.5, "y":1}, {"label":"R", "x":8.5, "y":1}, {"label":"T", "x":9.5, "y":1}, {"label":"Y", "x":10.5, "y":1}, {"label":"U", "x":11.5, "y":1}, {"label":"I", "x":12.5, "y":1}, {"label":"O", "x":13.5, "y":1}, {"label":"P", "x":14.5, "y":1}, {"label":"{", "x":15.5, "y":1}, {"label":"}", "x":16.5, "y":1}, {"label":"|", "x":17.5, "y":1, "w":1.5}, {"label":"End", "x":19, "y":1}, {"label":"4", "x":0, "y":2}, {"label":"5", "x":1, "y":2}, {"label":"6", "x":2, "y":2}, {"label":"Caps Lock", "x":4, "y":2, "w":1.75}, {"label":"A", "x":5.75, "y":2}, {"label":"S", "x":6.75, "y":2}, {"label":"D", "x":7.75, "y":2}, {"label":"F", "x":8.75, "y":2}, {"label":"G", "x":9.75, "y":2}, {"label":"H", "x":10.75, "y":2}, {"label":"J", "x":11.75, "y":2}, {"label":"K", "x":12.75, "y":2}, {"label":"L", "x":13.75, "y":2}, {"label":":", "x":14.75, "y":2}, {"label":"\"", "x":15.75, "y":2}, {"label":"Enter", "x":16.75, "y":2, "w":2.25}, {"label":"Page Up", "x":19, "y":2}, {"label":"1", "x":0, "y":3}, {"label":"2", "x":1, "y":3}, {"label":"3", "x":2, "y":3}, {"label":"Num Enter", "x":3, "y":3, "h":2}, {"label":"LShift", "x":4, "y":3, "w":2.25}, {"label":"Z", "x":6.25, "y":3}, {"label":"X", "x":7.25, "y":3}, {"label":"C", "x":8.25, "y":3}, {"label":"V", "x":9.25, "y":3}, {"label":"B", "x":10.25, "y":3}, {"label":"N", "x":11.25, "y":3}, {"label":"M", "x":12.25, "y":3}, {"label":"<", "x":13.25, "y":3}, {"label":">", "x":14.25, "y":3}, {"label":"?", "x":15.25, "y":3}, {"label":"RShift", "x":16.25, "y":3, "w":1.75}, {"label":"Up", "x":18, "y":3}, {"label":"Page Down", "x":19, "y":3}, {"label":"0", "x":0, "y":4, "w":2}, {"label":".", "x":2, "y":4}, {"label":"LCtrl", "x":4, "y":4, "w":1.25}, {"label":"Win", "x":5.25, "y":4, "w":1.25}, {"label":"LAlt", "x":6.5, "y":4, "w":1.25}, {"label":"Space", "x":7.75, "y":4, "w":6.25}, {"label":"RAlt", "x":14, "y":4}, {"label":"RCtrl", "x":15, "y":4}, {"label":"Fn0", "x":16, "y":4}, {"label":"Left", "x":17, "y":4}, {"label":"Down", "x":18, "y":4}, {"label":"Right", "x":19, "y":4}]
15 },
16 "LAYOUT_iso": {
17 "key_count": 86,
18 "layout": [{"label":"Num Lock", "x":0, "y":0}, {"label":"/", "x":1, "y":0}, {"label":"*", "x":2, "y":0}, {"label":"-", "x":3, "y":0}, {"label":"Esc", "x":4, "y":0}, {"label":"!", "x":5, "y":0}, {"label":"@", "x":6, "y":0}, {"label":"#", "x":7, "y":0}, {"label":"$", "x":8, "y":0}, {"label":"%", "x":9, "y":0}, {"label":"^", "x":10, "y":0}, {"label":"&", "x":11, "y":0}, {"label":"*", "x":12, "y":0}, {"label":"(", "x":13, "y":0}, {"label":")", "x":14, "y":0}, {"label":"_", "x":15, "y":0}, {"label":"+", "x":16, "y":0}, {"label":"Backspace", "x":17, "y":0, "w":2}, {"label":"Home", "x":19, "y":0}, {"label":"7", "x":0, "y":1}, {"label":"8", "x":1, "y":1}, {"label":"9", "x":2, "y":1}, {"label":"+", "x":3, "y":1, "h":2}, {"label":"Tab", "x":4, "y":1, "w":1.5}, {"label":"Q", "x":5.5, "y":1}, {"label":"W", "x":6.5, "y":1}, {"label":"E", "x":7.5, "y":1}, {"label":"R", "x":8.5, "y":1}, {"label":"T", "x":9.5, "y":1}, {"label":"Y", "x":10.5, "y":1}, {"label":"U", "x":11.5, "y":1}, {"label":"I", "x":12.5, "y":1}, {"label":"O", "x":13.5, "y":1}, {"label":"P", "x":14.5, "y":1}, {"label":"{", "x":15.5, "y":1}, {"label":"}", "x":16.5, "y":1}, {"label":"End", "x":19, "y":1}, {"label":"4", "x":0, "y":2}, {"label":"5", "x":1, "y":2}, {"label":"6", "x":2, "y":2}, {"label":"Caps Lock", "x":4, "y":2, "w":1.75}, {"label":"A", "x":5.75, "y":2}, {"label":"S", "x":6.75, "y":2}, {"label":"D", "x":7.75, "y":2}, {"label":"F", "x":8.75, "y":2}, {"label":"G", "x":9.75, "y":2}, {"label":"H", "x":10.75, "y":2}, {"label":"J", "x":11.75, "y":2}, {"label":"K", "x":12.75, "y":2}, {"label":"L", "x":13.75, "y":2}, {"label":":", "x":14.75, "y":2}, {"label":"\"", "x":15.75, "y":2}, {"label":"~", "x":16.75, "y":2}, {"label":"Enter", "x":17.75, "y":1, "w":1.25, "h":2}, {"label":"Page Up", "x":19, "y":2}, {"label":"1", "x":0, "y":3}, {"label":"2", "x":1, "y":3}, {"label":"3", "x":2, "y":3}, {"label":"Num Enter", "x":3, "y":3, "h":2}, {"label":"LShift", "x":4, "y":3, "w":1.25}, {"label":"|", "x":5.25, "y":3}, {"label":"Z", "x":6.25, "y":3}, {"label":"X", "x":7.25, "y":3}, {"label":"C", "x":8.25, "y":3}, {"label":"V", "x":9.25, "y":3}, {"label":"B", "x":10.25, "y":3}, {"label":"N", "x":11.25, "y":3}, {"label":"M", "x":12.25, "y":3}, {"label":"<", "x":13.25, "y":3}, {"label":">", "x":14.25, "y":3}, {"label":"?", "x":15.25, "y":3}, {"label":"RShift", "x":16.25, "y":3, "w":1.75}, {"label":"Up", "x":18, "y":3}, {"label":"Page Down", "x":19, "y":3}, {"label":"0", "x":0, "y":4, "w":2}, {"label":".", "x":2, "y":4}, {"label":"LCtrl", "x":4, "y":4, "w":1.25}, {"label":"Win", "x":5.25, "y":4, "w":1.25}, {"label":"LAlt", "x":6.5, "y":4, "w":1.25}, {"label":"Space", "x":7.75, "y":4, "w":6.25}, {"label":"RAlt", "x":14, "y":4}, {"label":"RCtrl", "x":15, "y":4}, {"label":"Fn0", "x":16, "y":4}, {"label":"Left", "x":17, "y":4}, {"label":"Down", "x":18, "y":4}, {"label":"Right", "x":19, "y":4}]
19 }
20 }
21}
diff --git a/keyboards/switchplate/southpaw_65/keymaps/default/keymap.c b/keyboards/switchplate/southpaw_65/keymaps/default/keymap.c
new file mode 100644
index 000000000..4be4bb5e7
--- /dev/null
+++ b/keyboards/switchplate/southpaw_65/keymaps/default/keymap.c
@@ -0,0 +1,31 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT_all(
5/* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */
6 KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, KC_ESC, 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_BSPC, KC_HOME,
7/* ├─────────┼─────────┼─────────┼─────────┼─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴─────────┼─────────┤ */
8 KC_P7, KC_P8, KC_P9, KC_PPLS, 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,
9/* ├─────────┼─────────┼─────────┼─────────┼──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬───────────┼─────────┤ */
10 KC_P4, KC_P5, KC_P6, 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_NUHS, KC_ENT, KC_PGUP,
11/* ├─────────┼─────────┼─────────┼─────────┼───────────┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴─────────┴─┬─────────┼─────────┤ */
12 KC_P1, KC_P2, KC_P3, KC_PENT, KC_LSFT, KC_NUBS, 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,
13/* ├─────────┼─────────┼─────────┼─────────┼───────────┼─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */
14 KC_P0, KC_P0, KC_PDOT, KC_PENT, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
15/* └─────────┴─────────┴─────────┴─────────┴───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */
16 ),
17
18 [1] = LAYOUT_all(
19/* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */
20 _______, _______, _______, _______, KC_GRV, 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_DEL, KC_DEL, KC_INS,
21/* ├─────────┼─────────┼─────────┼─────────┼─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴─────────┼─────────┤ */
22 _______, _______, _______, _______, RESET, BL_TOGG, BL_INC, BL_DEC, BL_BRTG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
23/* ├─────────┼─────────┼─────────┼─────────┼──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬───────────┼─────────┤ */
24 _______, _______, _______, _______, _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, EEP_RST, _______,
25/* ├─────────┼─────────┼─────────┼─────────┼───────────┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴─────────┴─┬─────────┼─────────┤ */
26 _______, _______, _______, _______, KC_LSFT, _______, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, _______, _______, _______, KC_RSFT, _______, _______,
27/* ├─────────┼─────────┼─────────┼─────────┼───────────┼─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */
28 _______, _______, _______, _______, KC_LCTL, _______, KC_LALT, _______, KC_RALT, KC_RCTL, KC_TRNS, _______, _______, _______
29/* └─────────┴─────────┴─────────┴─────────┴───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */
30 ),
31};
diff --git a/keyboards/switchplate/southpaw_65/keymaps/default_ansi/keymap.c b/keyboards/switchplate/southpaw_65/keymaps/default_ansi/keymap.c
new file mode 100644
index 000000000..bdd2d5129
--- /dev/null
+++ b/keyboards/switchplate/southpaw_65/keymaps/default_ansi/keymap.c
@@ -0,0 +1,31 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT_ansi(
5/* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */
6 KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, KC_ESC, 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_HOME,
7/* ├─────────┼─────────┼─────────┼─────────┼─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */
8 KC_P7, KC_P8, KC_P9, KC_PPLS, 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,
9/* ├─────────┼─────────┼─────────┤ ├──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──────────────├─────────┤ */
10 KC_P4, KC_P5, KC_P6, 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_PGUP,
11/* ├─────────┼─────────┼─────────┼─────────┼─────────────────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───────────┬─────────┼─────────┤ */
12 KC_P1, KC_P2, KC_P3, KC_PENT, 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,
13/* ├─────────┴─────────┬─────────┤ ├───────────┬─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */
14 KC_P0, KC_PDOT, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
15/* └───────────────────┴─────────┴─────────┴───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */
16 ),
17
18 [1] = LAYOUT_ansi(
19/* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */
20 _______, _______, _______, _______, KC_GRV, 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_DEL, KC_INS,
21/* ├─────────┼─────────┼─────────┼─────────┼─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */
22 _______, _______, _______, _______, RESET, BL_TOGG, BL_INC, BL_DEC, BL_BRTG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
23/* ├─────────┼─────────┼─────────┤ ├──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──────────────├─────────┤ */
24 _______, _______, _______, _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, _______, _______, _______, EEP_RST, _______,
25/* ├─────────┼─────────┼─────────┼─────────┼─────────────────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───────────┬─────────┼─────────┤ */
26 _______, _______, _______, _______, KC_LSFT, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, _______, _______, _______, KC_RSFT, _______, _______,
27/* ├─────────┴─────────┬─────────┤ ├───────────┬─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */
28 _______, _______, KC_LCTL, _______, KC_LALT, _______, KC_RALT, KC_RCTL, KC_TRNS, _______, _______, _______
29/* └───────────────────┴─────────┴─────────┴───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */
30 ),
31};
diff --git a/keyboards/switchplate/southpaw_65/keymaps/default_iso/keymap.c b/keyboards/switchplate/southpaw_65/keymaps/default_iso/keymap.c
new file mode 100644
index 000000000..a8f080ca9
--- /dev/null
+++ b/keyboards/switchplate/southpaw_65/keymaps/default_iso/keymap.c
@@ -0,0 +1,32 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
5 [0] = LAYOUT_iso(
6/* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬───────────────────┬─────────┐ */
7 KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, KC_ESC, 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_HOME,
8/* ├─────────┼─────────┼─────────┼─────────┼─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */
9 KC_P7, KC_P8, KC_P9, KC_PPLS, 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_PGUP,
10/* ├─────────┼─────────┼─────────┤ ├──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬ ├─────────┤ */
11 KC_P4, KC_P5, KC_P6, 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_NUHS, KC_ENT, KC_PGDN,
12/* ├─────────┼─────────┼─────────┼─────────┼───────────┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴─────────┴─┬─────────┼─────────┤ */
13 KC_P1, KC_P2, KC_P3, KC_PENT, KC_LSFT, KC_NUBS, 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,
14/* ├─────────┴─────────┼─────────┤ ├───────────┼─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */
15 KC_P0, KC_PDOT, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
16/* └───────────────────┴─────────┴─────────┴───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */
17 ),
18
19 [1] = LAYOUT_iso(
20/* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬───────────────────┬─────────┐ */
21 _______, _______, _______, _______, KC_GRV, 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_DEL, KC_INS,
22/* ├─────────┼─────────┼─────────┼─────────┼─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */
23 _______, _______, _______, _______, RESET, BL_TOGG, BL_INC, BL_DEC, BL_BRTG, _______, _______, _______, _______, _______, _______, _______, _______, _______,
24/* ├─────────┼─────────┼─────────┤ ├──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬ ├─────────┤ */
25 _______, _______, _______, _______, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, EEP_RST, _______,
26/* ├─────────┼─────────┼─────────┼─────────┼───────────┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴─────────┴─┬─────────┼─────────┤ */
27 _______, _______, _______, _______, KC_LSFT, _______, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, _______, _______, _______, _______, _______, KC_RSFT, _______, _______,
28/* ├─────────┴─────────┼─────────┤ ├───────────┼─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */
29 _______, _______, KC_LCTL, _______, KC_LALT, _______, KC_RALT, KC_RCTL, KC_TRNS, _______, _______, _______
30/* └───────────────────┴─────────┴─────────┴───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */
31 )
32};
diff --git a/keyboards/switchplate/southpaw_65/matrix.c b/keyboards/switchplate/southpaw_65/matrix.c
new file mode 100644
index 000000000..e701d274f
--- /dev/null
+++ b/keyboards/switchplate/southpaw_65/matrix.c
@@ -0,0 +1,95 @@
1/* Copyright 2019
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include <stdint.h>
17#include <stdbool.h>
18#include <avr/io.h>
19#include <string.h>
20#include "matrix.h"
21#include "pca9555.h"
22#include "quantum.h"
23
24#include "debug.h"
25
26// PCA9555 slave addresses
27#define IC1 0x20
28#define IC2 0x21
29
30//_____Utility funcs___________________________________________________________
31
32static void init_pins(void) {
33 // init all rows - IC1 port0 input
34 pca9555_set_config(IC1, PCA9555_PORT0, ALL_INPUT); // same as initial state
35
36 // init all cols high - IC2 all input
37 pca9555_set_config(IC1, PCA9555_PORT1, ALL_INPUT); // same as initial state
38 pca9555_set_config(IC2, PCA9555_PORT0, ALL_INPUT); // same as initial state
39 pca9555_set_config(IC2, PCA9555_PORT1, ALL_INPUT); // same as initial state
40
41 pca9555_set_output(IC1, PCA9555_PORT0, ALL_LOW);
42}
43
44static void select_row(uint8_t row) {
45 // For the Southpaw Ext 65% pins 1-6 are used for the rows
46 uint8_t pin = row;
47 uint8_t mask = 2 << pin;
48
49 pca9555_set_config(IC1, PCA9555_PORT0, ALL_INPUT & (~mask));
50}
51
52static uint32_t read_cols(void) {
53 //Read column inputs. Pins 13-31 are used. Split across both ICs but they are sequential
54 uint32_t state_1 = pca9555_readPins(IC1, PCA9555_PORT1);
55 uint32_t state_2 = pca9555_readPins(IC2, PCA9555_PORT0);
56 uint32_t state_3 = pca9555_readPins(IC2, PCA9555_PORT1);
57
58 uint32_t state = (((state_3 & 0b01111111) << 12) | (state_2 << 4) | ((state_1 & 0b11110000) >> 4));
59 return ~state;
60}
61
62static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) {
63 // Store last value of row prior to reading
64 matrix_row_t last_row_value = current_matrix[current_row];
65
66 // Clear data in matrix row
67 current_matrix[current_row] = 0;
68
69 // Select row and wait for row selection to stabilize
70 select_row(current_row);
71 // Skip the wait_us(30); as i2c is slow enough to debounce the io changes
72
73 current_matrix[current_row] = read_cols();
74
75 // No need to Unselect row as the next `select_row` will blank everything
76
77 return (last_row_value != current_matrix[current_row]);
78}
79
80//_____CUSTOM MATRIX IMPLEMENTATION____________________________________________________
81
82void matrix_init_custom(void) {
83 pca9555_init(IC1);
84 pca9555_init(IC2);
85
86 init_pins();
87}
88
89bool matrix_scan_custom(matrix_row_t current_matrix[]) {
90 bool changed = false;
91 for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) {
92 changed |= read_cols_on_row(current_matrix, current_row);
93 }
94 return changed;
95}
diff --git a/keyboards/switchplate/southpaw_65/readme.md b/keyboards/switchplate/southpaw_65/readme.md
new file mode 100644
index 000000000..3566744b2
--- /dev/null
+++ b/keyboards/switchplate/southpaw_65/readme.md
@@ -0,0 +1,23 @@
1# Southpaw Extended 65%
2
3![Southpaw Extended 65%](https://i.imgur.com/9HSWmmll.jpg)
4
5Left Hand Number Pad Keyboard with 85 Keys & RGB LED Underglow
6- Designed by Reconsiderit
7- Up to 91 keys
8- iso and ansi support
9- Uses Kimera core
10
11* Keyboard Maintainer: QMK Community
12* Hardware Supported: Southpaw Extended 65%
13* Hardware Availability: [Geekhack GB Thread](https://geekhack.org/index.php?topic=92344.0)
14
15Make example for this keyboard (after setting up your build environment):
16
17 make switchplate/southpaw_65:default_ansi
18
19Install examples:
20
21 make switchplate/southpaw_65:default_ansi:flash
22
23See 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/switchplate/southpaw_65/rules.mk b/keyboards/switchplate/southpaw_65/rules.mk
new file mode 100644
index 000000000..3ede910c3
--- /dev/null
+++ b/keyboards/switchplate/southpaw_65/rules.mk
@@ -0,0 +1,41 @@
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 = atmel-dfu
13
14# Build Options
15# change yes to no to disable
16#
17BOOTMAGIC_ENABLE = lite # 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
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 = yes # Enable keyboard backlight functionality on B7 by default
27RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
28MIDI_ENABLE = no # MIDI support
29UNICODE_ENABLE = no # Unicode
30BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
31AUDIO_ENABLE = no # Audio output on port C6
32FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
33HD44780_ENABLE = no # Enable support for HD44780 based LCDs
34LTO_ENABLE = yes
35
36# custom matrix setup
37CUSTOM_MATRIX = lite
38
39VPATH += drivers/gpio
40SRC += pca9555.c matrix.c
41QUANTUM_LIB_SRC += i2c_master.c
diff --git a/keyboards/switchplate/southpaw_65/southpaw_65.c b/keyboards/switchplate/southpaw_65/southpaw_65.c
new file mode 100644
index 000000000..78df3b665
--- /dev/null
+++ b/keyboards/switchplate/southpaw_65/southpaw_65.c
@@ -0,0 +1,30 @@
1/* Copyright 2019
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include "southpaw_65.h"
17
18void keyboard_pre_init_kb(void) {
19 setPinOutput(B6);
20
21 keyboard_pre_init_user();
22}
23
24bool led_update_kb(led_t led_state) {
25 bool res = led_update_user(led_state);
26 if(res) {
27 writePin(B6, !led_state.caps_lock);
28 }
29 return res;
30}
diff --git a/keyboards/switchplate/southpaw_65/southpaw_65.h b/keyboards/switchplate/southpaw_65/southpaw_65.h
new file mode 100644
index 000000000..a2b58d8c1
--- /dev/null
+++ b/keyboards/switchplate/southpaw_65/southpaw_65.h
@@ -0,0 +1,69 @@
1/* Copyright 2019
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#pragma once
17
18#include "quantum.h"
19#define ____ KC_NO
20
21/* This a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29#define LAYOUT_all( \
30 K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K117, K118, K514, K119, \
31 K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, K217, K218, K219, \
32 K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316, K317, K318, K319, \
33 K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, K414, K415, K416, K417, K418, K419, \
34 K501, K502, K503, K504, K505, K506, K507, K510, K515, K516, K513, K517, K518, K519 \
35) { \
36 { K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K117, K118, K119 }, \
37 { K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, K217, K218, K219 }, \
38 { K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316, K317, K318, K319 }, \
39 { K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, K414, K415, K416, K417, K418, K419 }, \
40 { K501, K502, K503, K504, K505, K506, K507, ____, ____, K510, ____, ____, K513, K514, K515, K516, K517, K518, K519 } \
41}
42
43#define LAYOUT_ansi( \
44 K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K117, K118, K119, \
45 K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, K217, K218, K219, \
46 K301, K302, K303, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316, K318, K319, \
47 K401, K402, K403, K404, K405, K407, K408, K409, K410, K411, K412, K413, K414, K415, K416, K417, K418, K419, \
48 K501, K503, K505, K506, K507, K510, K515, K516, K513, K517, K518, K519 \
49) { \
50 { K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K117, K118, K119 }, \
51 { K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, K217, K218, K219 }, \
52 { K301, K302, K303, ____, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316, ____, K318, K319 }, \
53 { K401, K402, K403, K404, K405, ____, K407, K408, K409, K410, K411, K412, K413, K414, K415, K416, K417, K418, K419 }, \
54 { K501, ____, K503, ____, K505, K506, K507, ____, ____, K510, ____, ____, K513, ____, K515, K516, K517, K518, K519 } \
55}
56
57#define LAYOUT_iso( \
58 K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K117, K118, K119, \
59 K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, K217, K219, \
60 K301, K302, K303, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316, K317, K318, K319, \
61 K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, K414, K415, K416, K417, K418, K419, \
62 K501, K503, K505, K506, K507, K510, K515, K516, K513, K517, K518, K519 \
63) { \
64 { K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, K117, K118, K119 }, \
65 { K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, K217, ____, K219 }, \
66 { K301, K302, K303, ____, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K315, K316, K317, K318, K319 }, \
67 { K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, K414, K415, K416, K417, K418, K419 }, \
68 { K501, ____, K503, ____, K505, K506, K507, ____, ____, K510, ____, ____, K513, ____, K515, K516, K517, K518, K519 } \
69}