aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ.Flanagan <jrfhoutx@comcast.net>2019-10-28 18:57:16 -0500
committernoroadsleft <18669334+noroadsleft@users.noreply.github.com>2019-10-28 16:57:16 -0700
commitc7a8cab8831f18778e4d46e3c6bfe36803656986 (patch)
tree1f7bda42fafe735e83458d939635d2912a7ad56d
parent947e61eaebf168c0c60be34914141cff9a69e599 (diff)
downloadqmk_firmware-c7a8cab8831f18778e4d46e3c6bfe36803656986.tar.gz
qmk_firmware-c7a8cab8831f18778e4d46e3c6bfe36803656986.zip
[Keyboard] Add M0116b keyboard (#7162)
* initial commit restart of m0116b development * initial commit restart of m0116b development * Major and minor changes for new PCB design Changed matrix_row_pins and matrix_sol_pins to match new PCB design Changed layout matrix to match new PCB design Minor changes to settings in rules.mk Minor changes to readme.md files * Update rules.mk Changed settings in rules.mk * major and minor changes added a default keymap (copy of the m0116 keymap, just to have a default option) changes to the info.json * initial commit restart of m0116b development * Major and minor changes for new PCB design Changed matrix_row_pins and matrix_sol_pins to match new PCB design Changed layout matrix to match new PCB design Minor changes to settings in rules.mk Minor changes to readme.md files * Update rules.mk Changed settings in rules.mk * major and minor changes added a default keymap (copy of the m0116 keymap, just to have a default option) changes to the info.json * Update keyboards/sck/m0116b/keymaps/default/keymap.c Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/sck/m0116b/keymaps/default/keymap.c Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/sck/m0116b/keymaps/m0116/keymap.c Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/sck/m0116b/keymaps/m0116/keymap.c Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/sck/m0116b/keymaps/m0118/keymap.c Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/sck/m0116b/m0116b.h Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/sck/m0116b/m0116b.h Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/sck/m0116b/keymaps/m0118/keymap.c Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Requested changes Changes per requests * Changes to keymaps Changes as discussed corrected location of custom_keycodes declaration and changed custom keycode in keymap per request and discussion.
-rw-r--r--keyboards/sck/m0116b/config.h249
-rw-r--r--keyboards/sck/m0116b/info.json183
-rw-r--r--keyboards/sck/m0116b/keymaps/default/config.h20
-rw-r--r--keyboards/sck/m0116b/keymaps/default/keymap.c100
-rw-r--r--keyboards/sck/m0116b/keymaps/default/readme.md1
-rw-r--r--keyboards/sck/m0116b/keymaps/m0116/config.h20
-rw-r--r--keyboards/sck/m0116b/keymaps/m0116/keymap.c100
-rw-r--r--keyboards/sck/m0116b/keymaps/m0116/readme.md1
-rw-r--r--keyboards/sck/m0116b/keymaps/m0118/config.h19
-rw-r--r--keyboards/sck/m0116b/keymaps/m0118/keymap.c100
-rw-r--r--keyboards/sck/m0116b/keymaps/m0118/readme.md1
-rw-r--r--keyboards/sck/m0116b/m0116b.c51
-rw-r--r--keyboards/sck/m0116b/m0116b.h58
-rw-r--r--keyboards/sck/m0116b/readme.md26
-rw-r--r--keyboards/sck/m0116b/rules.mk33
15 files changed, 962 insertions, 0 deletions
diff --git a/keyboards/sck/m0116b/config.h b/keyboards/sck/m0116b/config.h
new file mode 100644
index 000000000..03fa9f255
--- /dev/null
+++ b/keyboards/sck/m0116b/config.h
@@ -0,0 +1,249 @@
1/*
2Copyright 2019 jrfhoutx
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#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xFEED
24#define PRODUCT_ID 0x0000
25#define DEVICE_VER 0x0001
26#define MANUFACTURER jrfhoutx
27#define PRODUCT Golden Delicious
28#define DESCRIPTION Golden Delicious (M0116B) - Apple M0116/M0118 Replacement PCB
29
30/* key matrix size */
31#define MATRIX_ROWS 6
32#define MATRIX_COLS 18
33
34/*
35 * Keyboard Matrix Assignments
36 *
37 * Change this to how you wired your keyboard
38 * COLS: AVR pins used for columns, left to right
39 * ROWS: AVR pins used for rows, top to bottom
40 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
41 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
42 *
43 */
44#define MATRIX_ROW_PINS { D1, F0, F1, F4, F5, F6 }
45#define MATRIX_COL_PINS { D5, D3, D2, D0, B3, B2, B1, B0, E6, B5, B6, C6, C7, F7, D4, D6, D7, B4 }
46#define UNUSED_PINS
47
48/* COL2ROW, ROW2COL*/
49#define DIODE_DIRECTION COL2ROW
50
51/*
52 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
53 */
54// #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
55
56// #define BACKLIGHT_PIN B7
57// #define BACKLIGHT_BREATHING
58// #define BACKLIGHT_LEVELS 3
59
60// #define RGB_DI_PIN E2
61// #ifdef RGB_DI_PIN
62// #define RGBLED_NUM 16
63// #define RGBLIGHT_HUE_STEP 8
64// #define RGBLIGHT_SAT_STEP 8
65// #define RGBLIGHT_VAL_STEP 8
66// #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
67// #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
68// /*== all animations enable ==*/
69// #define RGBLIGHT_ANIMATIONS
70// /*== or choose animations ==*/
71// #define RGBLIGHT_EFFECT_BREATHING
72// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
73// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
74// #define RGBLIGHT_EFFECT_SNAKE
75// #define RGBLIGHT_EFFECT_KNIGHT
76// #define RGBLIGHT_EFFECT_CHRISTMAS
77// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
78// #define RGBLIGHT_EFFECT_RGB_TEST
79// #define RGBLIGHT_EFFECT_ALTERNATING
80// /*== customize breathing effect ==*/
81// /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
82// #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
83// /*==== use exp() and sin() ====*/
84// #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
85// #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
86// #endif
87
88/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
89#define DEBOUNCE 5
90
91/* define if matrix has ghost (lacks anti-ghosting diodes) */
92//#define MATRIX_HAS_GHOST
93
94/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
95#define LOCKING_SUPPORT_ENABLE
96/* Locking resynchronize hack */
97#define LOCKING_RESYNC_ENABLE
98
99/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
100 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
101 */
102// #define GRAVE_ESC_CTRL_OVERRIDE
103
104/*
105 * Force NKRO
106 *
107 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
108 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
109 * makefile for this to work.)
110 *
111 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
112 * until the next keyboard reset.
113 *
114 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
115 * fully operational during normal computer usage.
116 *
117 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
118 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
119 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
120 * power-up.
121 *
122 */
123//#define FORCE_NKRO
124
125/*
126 * Magic Key Options
127 *
128 * Magic keys are hotkey commands that allow control over firmware functions of
129 * the keyboard. They are best used in combination with the HID Listen program,
130 * found here: https://www.pjrc.com/teensy/hid_listen.html
131 *
132 * The options below allow the magic key functionality to be changed. This is
133 * useful if your keyboard/keypad is missing keys and you want magic key support.
134 *
135 */
136
137/* key combination for magic key command */
138/* defined by default; to change, uncomment and set to the combination you want */
139// #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT)
140
141/* control how magic key switches layers */
142//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
143//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
144//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
145
146/* override magic key keymap */
147//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
148//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
149//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
150//#define MAGIC_KEY_HELP H
151//#define MAGIC_KEY_HELP_ALT SLASH
152//#define MAGIC_KEY_DEBUG D
153//#define MAGIC_KEY_DEBUG_MATRIX X
154//#define MAGIC_KEY_DEBUG_KBD K
155//#define MAGIC_KEY_DEBUG_MOUSE M
156//#define MAGIC_KEY_VERSION V
157//#define MAGIC_KEY_STATUS S
158//#define MAGIC_KEY_CONSOLE C
159//#define MAGIC_KEY_LAYER0 0
160//#define MAGIC_KEY_LAYER0_ALT GRAVE
161//#define MAGIC_KEY_LAYER1 1
162//#define MAGIC_KEY_LAYER2 2
163//#define MAGIC_KEY_LAYER3 3
164//#define MAGIC_KEY_LAYER4 4
165//#define MAGIC_KEY_LAYER5 5
166//#define MAGIC_KEY_LAYER6 6
167//#define MAGIC_KEY_LAYER7 7
168//#define MAGIC_KEY_LAYER8 8
169//#define MAGIC_KEY_LAYER9 9
170//#define MAGIC_KEY_BOOTLOADER B
171//#define MAGIC_KEY_BOOTLOADER_ALT ESC
172//#define MAGIC_KEY_LOCK CAPS
173//#define MAGIC_KEY_EEPROM E
174//#define MAGIC_KEY_EEPROM_CLEAR BSPACE
175//#define MAGIC_KEY_NKRO N
176//#define MAGIC_KEY_SLEEP_LED Z
177
178/*
179 * Feature disable options
180 * These options are also useful to firmware size reduction.
181 */
182
183/* disable debug print */
184//#define NO_DEBUG
185
186/* disable print */
187//#define NO_PRINT
188
189/* disable action features */
190//#define NO_ACTION_LAYER
191//#define NO_ACTION_TAPPING
192//#define NO_ACTION_ONESHOT
193//#define NO_ACTION_MACRO
194//#define NO_ACTION_FUNCTION
195
196/*
197 * MIDI options
198 */
199
200/* Prevent use of disabled MIDI features in the keymap */
201//#define MIDI_ENABLE_STRICT 1
202
203/* enable basic MIDI features:
204 - MIDI notes can be sent when in Music mode is on
205*/
206//#define MIDI_BASIC
207
208/* enable advanced MIDI features:
209 - MIDI notes can be added to the keymap
210 - Octave shift and transpose
211 - Virtual sustain, portamento, and modulation wheel
212 - etc.
213*/
214//#define MIDI_ADVANCED
215
216/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
217//#define MIDI_TONE_KEYCODE_OCTAVES 1
218
219/*
220 * HD44780 LCD Display Configuration
221 */
222/*
223#define LCD_LINES 2 //< number of visible lines of the display
224#define LCD_DISP_LENGTH 16 //< visibles characters per line of the display
225
226#define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode
227
228#if LCD_IO_MODE
229#define LCD_PORT PORTB //< port for the LCD lines
230#define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0
231#define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1
232#define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2
233#define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3
234#define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0
235#define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1
236#define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2
237#define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3
238#define LCD_RS_PORT LCD_PORT //< port for RS line
239#define LCD_RS_PIN 3 //< pin for RS line
240#define LCD_RW_PORT LCD_PORT //< port for RW line
241#define LCD_RW_PIN 2 //< pin for RW line
242#define LCD_E_PORT LCD_PORT //< port for Enable line
243#define LCD_E_PIN 1 //< pin for Enable line
244#endif
245*/
246
247/* Bootmagic Lite key configuration */
248 #define BOOTMAGIC_LITE_ROW 0
249 #define BOOTMAGIC_LITE_COLUMN 6
diff --git a/keyboards/sck/m0116b/info.json b/keyboards/sck/m0116b/info.json
new file mode 100644
index 000000000..e8d8fb221
--- /dev/null
+++ b/keyboards/sck/m0116b/info.json
@@ -0,0 +1,183 @@
1{
2 "keyboard_name": "Golden Delicious - M0116B",
3 "url": "https://github.com/jrfhoutx",
4 "maintainer": "jrfhoutx",
5 "width": 19.5,
6 "height": 6.25,
7 "layouts": {
8 "LAYOUT_m0116_ansi": {
9 "key_count": 81,
10 "layout": [
11 {"label":"K06 (D1,B2)", "x":5, "y":0, "w":2},
12 {"label":"K10 (F0,D5)", "x":0, "y":1.25},
13 {"label":"K11 (F0,D3)", "x":1, "y":1.25},
14 {"label":"K12 (F0,D2)", "x":2, "y":1.25},
15 {"label":"K13 (F0,D0)", "x":3, "y":1.25},
16 {"label":"K14 (F0,B7)", "x":4, "y":1.25},
17 {"label":"K15 (F0,B3)", "x":5, "y":1.25},
18 {"label":"K16 (F0,B2)", "x":6, "y":1.25},
19 {"label":"K17 (F0,B1)", "x":7, "y":1.25},
20 {"label":"K18 (F0,B0)", "x":8, "y":1.25},
21 {"label":"K19 (F0,B5)", "x":9, "y":1.25},
22 {"label":"K1A (F0,B6)", "x":10, "y":1.25},
23 {"label":"K1B (F0,C6)", "x":11, "y":1.25},
24 {"label":"K1C (F0,C7)", "x":12, "y":1.25},
25 {"label":"K1D (F0,F7)", "x":13, "y":1.25, "w":1.5},
26 {"label":"K1E (F0,D4)", "x":15.5, "y":1.25},
27 {"label":"K1F (F0,D6)", "x":16.5, "y":1.25},
28 {"label":"K1G (F0,D7)", "x":17.5, "y":1.25},
29 {"label":"K1H (F0,B4)", "x":18.5, "y":1.25},
30 {"label":"K20 (F1,D5)", "x":0, "y":2.25, "w":1.5},
31 {"label":"K21 (F1,D3)", "x":1.5, "y":2.25},
32 {"label":"K22 (F1,D2)", "x":2.5, "y":2.25},
33 {"label":"K23 (F1,D0)", "x":3.5, "y":2.25},
34 {"label":"K24 (F1,B7)", "x":4.5, "y":2.25},
35 {"label":"K25 (F1,B3)", "x":5.5, "y":2.25},
36 {"label":"K26 (F1,B2)", "x":6.5, "y":2.25},
37 {"label":"K27 (F1,B1)", "x":7.5, "y":2.25},
38 {"label":"K28 (F1,B0)", "x":8.5, "y":2.25},
39 {"label":"K29 (F1,B5)", "x":9.5, "y":2.25},
40 {"label":"K2A (F1,B6)", "x":10.5, "y":2.25},
41 {"label":"K2B (F1,C6)", "x":11.5, "y":2.25},
42 {"label":"K2C (F1,C7)", "x":12.5, "y":2.25},
43 {"label":"K2D (F1,F7)", "x":13.5, "y":2.25, "h":2},
44 {"label":"K2E (F1,D4)", "x":15.5, "y":2.25},
45 {"label":"K2F (F1,D6)", "x":16.5, "y":2.25},
46 {"label":"K2G (F1,D7)", "x":17.5, "y":2.25},
47 {"label":"K2H (F1,B4)", "x":18.5, "y":2.25},
48 {"label":"K30 (F4,D5)", "x":0, "y":3.25, "w":1.75},
49 {"label":"K31 (F4,D3)", "x":1.75, "y":3.25},
50 {"label":"K32 (F4,D2)", "x":2.75, "y":3.25},
51 {"label":"K33 (F4,D0)", "x":3.75, "y":3.25},
52 {"label":"K34 (F4,B7)", "x":4.75, "y":3.25},
53 {"label":"K35 (F4,B3)", "x":5.75, "y":3.25},
54 {"label":"K36 (F4,B2)", "x":6.75, "y":3.25},
55 {"label":"K37 (F4,B1)", "x":7.75, "y":3.25},
56 {"label":"K38 (F4,B0)", "x":8.75, "y":3.25},
57 {"label":"K39 (F4,B5)", "x":9.75, "y":3.25},
58 {"label":"K3A (F4,B6)", "x":10.75, "y":3.25},
59 {"label":"K3B (F4,C6)", "x":11.75, "y":3.25},
60 {"label":"K3C (F4,D4)", "x":15.5, "y":3.25},
61 {"label":"K3D (F4,D6)", "x":16.5, "y":3.25},
62 {"label":"K3E (F4,D7)", "x":17.5, "y":3.25},
63 {"label":"K3F (F4,B4)", "x":18.5, "y":3.25},
64 {"label":"K40 (F5,D5)", "x":0, "y":4.25, "w":2.25},
65 {"label":"K42 (F5,D2)", "x":2.25, "y":4.25},
66 {"label":"K43 (F5,D0)", "x":3.25, "y":4.25},
67 {"label":"K44 (F5,B7)", "x":4.25, "y":4.25},
68 {"label":"K45 (F5,B3)", "x":5.25, "y":4.25},
69 {"label":"K46 (F5,B2)", "x":6.25, "y":4.25},
70 {"label":"K47 (F5,B1)", "x":7.25, "y":4.25},
71 {"label":"K48 (F5,B0)", "x":8.25, "y":4.25},
72 {"label":"K49 (F5,B5)", "x":9.25, "y":4.25},
73 {"label":"K4A (F5,B6)", "x":10.25, "y":4.25},
74 {"label":"K4B (F5,C6)", "x":11.25, "y":4.25},
75 {"label":"K4C (F5,C7)", "x":12.25, "y":4.25, "w":2.25},
76 {"label":"K4E (F5,D4)", "x":15.5, "y":4.25},
77 {"label":"K4F (F5,D6)", "x":16.5, "y":4.25},
78 {"label":"K4G (F5,D7)", "x":17.5, "y":4.25},
79 {"label":"K4H (F4,B4)", "x":18.5, "y":4.25, "h":2},
80 {"label":"K50 (F6,D5)", "x":0, "y":5.25},
81 {"label":"K51 (F6,D3)", "x":1, "y":5.25},
82 {"label":"K52 (F6,D2)", "x":2, "y":5.25, "w":1.75},
83 {"label":"K53 (F6,D0)", "x":3.75, "y":5.25},
84 {"label":"K56 (F6,B2)", "x":4.75, "y":5.25, "w":4.75},
85 {"label":"K59 (F6,B5)", "x":9.5, "y":5.25},
86 {"label":"K5A (F6,B6)", "x":10.5, "y":5.25},
87 {"label":"K5B (F6,C6)", "x":11.5, "y":5.25},
88 {"label":"K5C (F6,C7)", "x":12.5, "y":5.25},
89 {"label":"K5D (F6,F7)", "x":13.5, "y":5.25},
90 {"label":"K5E (F6,D4)", "x":15.5, "y":5.25, "w":2},
91 {"label":"K5G (F6,D7)", "x":17.5, "y":5.25}
92 ]
93 },
94 "LAYOUT_m0118_iso": {
95 "key_count": 82,
96 "layout": [
97 {"label":"K06 (D1,B2)", "x":5, "y":0, "w":2},
98 {"label":"K10 (F0,D5)", "x":0, "y":1.25},
99 {"label":"K11 (F0,D3)", "x":1, "y":1.25},
100 {"label":"K12 (F0,D2)", "x":2, "y":1.25},
101 {"label":"K13 (F0,D0)", "x":3, "y":1.25},
102 {"label":"K14 (F0,B7)", "x":4, "y":1.25},
103 {"label":"K15 (F0,B3)", "x":5, "y":1.25},
104 {"label":"K16 (F0,B2)", "x":6, "y":1.25},
105 {"label":"K17 (F0,B1)", "x":7, "y":1.25},
106 {"label":"K18 (F0,B0)", "x":8, "y":1.25},
107 {"label":"K19 (F0,B5)", "x":9, "y":1.25},
108 {"label":"K1A (F0,B6)", "x":10, "y":1.25},
109 {"label":"K1B (F0,C6)", "x":11, "y":1.25},
110 {"label":"K1C (F0,C7)", "x":12, "y":1.25},
111 {"label":"K1D (F0,F7)", "x":13, "y":1.25, "w":1.5},
112 {"label":"K1E (F0,D4)", "x":15.5, "y":1.25},
113 {"label":"K1F (F0,D6)", "x":16.5, "y":1.25},
114 {"label":"K1G(F0,D7)", "x":17.5, "y":1.25},
115 {"label":"K1H (F0,B4)", "x":18.5, "y":1.25},
116 {"label":"K20 (F1,D5)", "x":0, "y":2.25, "w":1.5},
117 {"label":"K21 (F1,D3)", "x":1.5, "y":2.25},
118 {"label":"K22 (F1,D2)", "x":2.5, "y":2.25},
119 {"label":"K23 (F1,D0)", "x":3.5, "y":2.25},
120 {"label":"K24 (F1,B7)", "x":4.5, "y":2.25},
121 {"label":"K25 (F1,B3)", "x":5.5, "y":2.25},
122 {"label":"K26 (F1,B2)", "x":6.5, "y":2.25},
123 {"label":"K27 (F1,B1)", "x":7.5, "y":2.25},
124 {"label":"K28 (F1,B0)", "x":8.5, "y":2.25},
125 {"label":"K29 (F1,B5)", "x":9.5, "y":2.25},
126 {"label":"K2A (F1,B6)", "x":10.5, "y":2.25},
127 {"label":"K2B (F1,C6)", "x":11.5, "y":2.25},
128 {"label":"K2C (F1,C7)", "x":12.5, "y":2.25},
129 {"label":"K2D (F1,F7)", "x":13.75, "y":2.25, "w":0.75, "h":2},
130 {"label":"K2E (F1,D4)", "x":15.5, "y":2.25},
131 {"label":"K2F (F1,D6)", "x":16.5, "y":2.25},
132 {"label":"K2G (F1,D7)", "x":17.5, "y":2.25},
133 {"label":"K2H (F1,B4)", "x":18.5, "y":2.25},
134 {"label":"K30 (F4,D5)", "x":0, "y":3.25, "w":1.75},
135 {"label":"K31 (F4,D3)", "x":1.75, "y":3.25},
136 {"label":"K32 (F4,D2)", "x":2.75, "y":3.25},
137 {"label":"K33 (F4,D0)", "x":3.75, "y":3.25},
138 {"label":"K34 (F4,B7)", "x":4.75, "y":3.25},
139 {"label":"K35 (F4,B3)", "x":5.75, "y":3.25},
140 {"label":"K36 (F4,B2)", "x":6.75, "y":3.25},
141 {"label":"K37 (F4,B1)", "x":7.75, "y":3.25},
142 {"label":"K38 (F4,B0)", "x":8.75, "y":3.25},
143 {"label":"K39 (F4,B5)", "x":9.75, "y":3.25},
144 {"label":"K3A (F4,B6)", "x":10.75, "y":3.25},
145 {"label":"K3B (F4,C6)", "x":11.75, "y":3.25},
146 {"label":"K3C (F4,C7)", "x":12.75, "y":3.25},
147 {"label":"K3E (F4,D4)", "x":15.5, "y":3.25},
148 {"label":"K3F (F4,D6)", "x":16.5, "y":3.25},
149 {"label":"K3G (F4,D7)", "x":17.5, "y":3.25},
150 {"label":"K3H (F4,B4)", "x":18.5, "y":3.25},
151 {"label":"K40 (F5,D5)", "x":0, "y":4.25, "w":1.25},
152 {"label":"K41 (F5,D3)", "x":1.25, "y":4.25},
153 {"label":"K42 (F5,D2)", "x":2.25, "y":4.25},
154 {"label":"K43 (F5,D0)", "x":3.25, "y":4.25},
155 {"label":"K44 (F5,B7)", "x":4.25, "y":4.25},
156 {"label":"K45 (F5,B3)", "x":5.25, "y":4.25},
157 {"label":"K46 (F5,B2)", "x":6.25, "y":4.25},
158 {"label":"K47 (F5,B1)", "x":7.25, "y":4.25},
159 {"label":"K48 (F5,B0)", "x":8.25, "y":4.25},
160 {"label":"K49 (F5,B5)", "x":9.25, "y":4.25},
161 {"label":"K4A (F5,B6)", "x":10.25, "y":4.25},
162 {"label":"K4B (F5,C6)", "x":11.25, "y":4.25},
163 {"label":"K4C (F5,C7)", "x":12.25, "y":4.25, "w":1.25},
164 {"label":"K4D (F5,F7)", "x":13.5, "y":4.25},
165 {"label":"K4E (F5,D4)", "x":15.5, "y":4.25},
166 {"label":"K4F (F5,D6)", "x":16.5, "y":4.25},
167 {"label":"K4G (F5,D7)", "x":17.5, "y":4.25},
168 {"label":"K4H (F5,B4)", "x":18.5, "y":4.25, "h":2},
169 {"label":"K50 (F6,D5)", "x":0, "y":5.25, "w":1.25},
170 {"label":"K51 (F6,D3)", "x":1.25, "y":5.25, "w":1.5},
171 {"label":"K52 (F6,D2)", "x":2.75, "y":5.25, "w":1.75},
172 {"label":"K56 (F6,B2)", "x":4.5, "y":5.25, "w":5.25},
173 {"label":"K5A (F6,B6)", "x":9.75, "y":5.25, "w":1.75},
174 {"label":"K5B (F6,C6)", "x":11.5, "y":5.25},
175 {"label":"K5C (F6,C7)", "x":12.5, "y":5.25},
176 {"label":"K5D (F6,F7)", "x":13.5, "y":5.25},
177 {"label":"K5E (F6,D4)", "x":15.5, "y":5.25, "w":2},
178 {"label":"K5G (F6,D7)", "x":17.5, "y":5.25}
179 ]
180 }
181 }
182
183}
diff --git a/keyboards/sck/m0116b/keymaps/default/config.h b/keyboards/sck/m0116b/keymaps/default/config.h
new file mode 100644
index 000000000..015191d1b
--- /dev/null
+++ b/keyboards/sck/m0116b/keymaps/default/config.h
@@ -0,0 +1,20 @@
1/* Copyright 2019 jrfhoutx
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#define TAPPING_TERM 200
20// place overrides here
diff --git a/keyboards/sck/m0116b/keymaps/default/keymap.c b/keyboards/sck/m0116b/keymaps/default/keymap.c
new file mode 100644
index 000000000..b8ae5931f
--- /dev/null
+++ b/keyboards/sck/m0116b/keymaps/default/keymap.c
@@ -0,0 +1,100 @@
1/* Copyright 2019 jrfhoutx
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 QMK_KEYBOARD_H
17
18enum custom_keycodes {
19 M0116B = SAFE_RANGE,
20};
21
22#define CALTDEL LCTL(LALT(KC_DEL))
23
24const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
25 /* Keymap BASE: (Base Layer) Default Layer
26 * ,---------------------------------------------------------------------------------.
27 * | | CALTDEL | |
28 * `---------------------------------------------------------------------------------'
29 * ,-----------------------------------------------------------. .-------------------.
30 * | ~ | 1 | 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp | |MO(1)| / | * |Paus|
31 * |-----------------------------------------------------------| |-------------------|
32 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| | | 7 | 8 | 9 | + |
33 * |-----------------------------------------------------| | |-------------------|
34 * |Ctrl | A| S| D| F| G| H| J| K| L| ;| '|Return | | 4 | 5 | 6 | - |
35 * |-----------------------------------------------------------' |-------------------|
36 * |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift | | 1 | 2 | 3 | Ent|
37 * |-----------------------------------------------------------' `--------------| |
38 * |CAPS|Opt |Cmd | ` | Space | \ |Left|Up|Down|Right| | 0 | . | |
39 * `-----------------------------------------------------------' `-------------------'
40 */
41[0] = LAYOUT_m0116_ansi( /* Base */
42 CALTDEL,
43 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_NLCK, KC_PEQL, KC_PSLS, KC_PAST,
44 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_ENT, KC_P7, KC_P8, KC_P9, KC_PPLS,
45 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_P4, KC_P5, KC_P6, KC_PMNS,
46 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_P1, KC_P2, KC_P3, KC_PENT,
47 KC_LCAP, KC_LALT, KC_LGUI, KC_GRV, KC_SPC, LT(1, KC_BSLS), KC_LEFT, KC_UP, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
48),
49/* Keymap Layer 1: (Layer 1) Layer 1
50 * ,---------------------------------------------------------------------------------.
51 * | |RESET| |
52 * `---------------------------------------------------------------------------------'
53 * ,-----------------------------------------------------------. .-------------------.
54 * | |F1 |F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12| | | | | | |
55 * |-----------------------------------------------------------| |-------------------|
56 * | | | | | | | | | | | | | | | | | | | |
57 * |-----------------------------------------------------| | |-------------------|
58 * | | | | | | | | | | | | | | | | | | |
59 * |-----------------------------------------------------------' |-------------------|
60 * | | | | | | | | | | | | | | | | | |
61 * |-----------------------------------------------------------' `--------------| |
62 * | | | | | M0116B | | | | | | | | | |
63 * `-----------------------------------------------------------' `-------------------'
64 */
65[1] = LAYOUT_m0116_ansi( /* Layer 1 */
66 RESET,
67 KC_TRNS, 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_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
68 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
69 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
70 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
71 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, M0116B, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
72 ),
73};
74
75void matrix_init_user(void) {
76
77}
78
79void matrix_scan_user(void) {
80
81}
82
83bool process_record_user(uint16_t keycode, keyrecord_t *record) {
84 switch (keycode) {
85 case M0116B:
86 if (record->event.pressed) {
87 // when keycode M0116B is pressed
88 SEND_STRING("Golden Delicious - aka M0116B - The Apple M0116/M0118 Replacement PCB.");
89 } else {
90 // when keycode M0116B is released
91 }
92 break;
93
94 }
95 return true;
96};
97
98void led_set_user(uint8_t usb_led) {
99
100}
diff --git a/keyboards/sck/m0116b/keymaps/default/readme.md b/keyboards/sck/m0116b/keymaps/default/readme.md
new file mode 100644
index 000000000..ebc0b3e92
--- /dev/null
+++ b/keyboards/sck/m0116b/keymaps/default/readme.md
@@ -0,0 +1 @@
# A keymap for the Golden Delicious, this is for the M0116
diff --git a/keyboards/sck/m0116b/keymaps/m0116/config.h b/keyboards/sck/m0116b/keymaps/m0116/config.h
new file mode 100644
index 000000000..015191d1b
--- /dev/null
+++ b/keyboards/sck/m0116b/keymaps/m0116/config.h
@@ -0,0 +1,20 @@
1/* Copyright 2019 jrfhoutx
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#define TAPPING_TERM 200
20// place overrides here
diff --git a/keyboards/sck/m0116b/keymaps/m0116/keymap.c b/keyboards/sck/m0116b/keymaps/m0116/keymap.c
new file mode 100644
index 000000000..b8ae5931f
--- /dev/null
+++ b/keyboards/sck/m0116b/keymaps/m0116/keymap.c
@@ -0,0 +1,100 @@
1/* Copyright 2019 jrfhoutx
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 QMK_KEYBOARD_H
17
18enum custom_keycodes {
19 M0116B = SAFE_RANGE,
20};
21
22#define CALTDEL LCTL(LALT(KC_DEL))
23
24const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
25 /* Keymap BASE: (Base Layer) Default Layer
26 * ,---------------------------------------------------------------------------------.
27 * | | CALTDEL | |
28 * `---------------------------------------------------------------------------------'
29 * ,-----------------------------------------------------------. .-------------------.
30 * | ~ | 1 | 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp | |MO(1)| / | * |Paus|
31 * |-----------------------------------------------------------| |-------------------|
32 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| | | 7 | 8 | 9 | + |
33 * |-----------------------------------------------------| | |-------------------|
34 * |Ctrl | A| S| D| F| G| H| J| K| L| ;| '|Return | | 4 | 5 | 6 | - |
35 * |-----------------------------------------------------------' |-------------------|
36 * |Shift | Z| X| C| V| B| N| M| ,| .| /|Shift | | 1 | 2 | 3 | Ent|
37 * |-----------------------------------------------------------' `--------------| |
38 * |CAPS|Opt |Cmd | ` | Space | \ |Left|Up|Down|Right| | 0 | . | |
39 * `-----------------------------------------------------------' `-------------------'
40 */
41[0] = LAYOUT_m0116_ansi( /* Base */
42 CALTDEL,
43 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_NLCK, KC_PEQL, KC_PSLS, KC_PAST,
44 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_ENT, KC_P7, KC_P8, KC_P9, KC_PPLS,
45 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_P4, KC_P5, KC_P6, KC_PMNS,
46 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_P1, KC_P2, KC_P3, KC_PENT,
47 KC_LCAP, KC_LALT, KC_LGUI, KC_GRV, KC_SPC, LT(1, KC_BSLS), KC_LEFT, KC_UP, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT
48),
49/* Keymap Layer 1: (Layer 1) Layer 1
50 * ,---------------------------------------------------------------------------------.
51 * | |RESET| |
52 * `---------------------------------------------------------------------------------'
53 * ,-----------------------------------------------------------. .-------------------.
54 * | |F1 |F2 |F3 |F4 |F5 |F6 |F7 |F8 |F9 |F10|F11|F12| | | | | | |
55 * |-----------------------------------------------------------| |-------------------|
56 * | | | | | | | | | | | | | | | | | | | |
57 * |-----------------------------------------------------| | |-------------------|
58 * | | | | | | | | | | | | | | | | | | |
59 * |-----------------------------------------------------------' |-------------------|
60 * | | | | | | | | | | | | | | | | | |
61 * |-----------------------------------------------------------' `--------------| |
62 * | | | | | M0116B | | | | | | | | | |
63 * `-----------------------------------------------------------' `-------------------'
64 */
65[1] = LAYOUT_m0116_ansi( /* Layer 1 */
66 RESET,
67 KC_TRNS, 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_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
68 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
69 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
70 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
71 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, M0116B, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
72 ),
73};
74
75void matrix_init_user(void) {
76
77}
78
79void matrix_scan_user(void) {
80
81}
82
83bool process_record_user(uint16_t keycode, keyrecord_t *record) {
84 switch (keycode) {
85 case M0116B:
86 if (record->event.pressed) {
87 // when keycode M0116B is pressed
88 SEND_STRING("Golden Delicious - aka M0116B - The Apple M0116/M0118 Replacement PCB.");
89 } else {
90 // when keycode M0116B is released
91 }
92 break;
93
94 }
95 return true;
96};
97
98void led_set_user(uint8_t usb_led) {
99
100}
diff --git a/keyboards/sck/m0116b/keymaps/m0116/readme.md b/keyboards/sck/m0116b/keymaps/m0116/readme.md
new file mode 100644
index 000000000..6f9eee3e2
--- /dev/null
+++ b/keyboards/sck/m0116b/keymaps/m0116/readme.md
@@ -0,0 +1 @@
# The default keymap for the Golden Delicious when used with a M0116
diff --git a/keyboards/sck/m0116b/keymaps/m0118/config.h b/keyboards/sck/m0116b/keymaps/m0118/config.h
new file mode 100644
index 000000000..499a4753f
--- /dev/null
+++ b/keyboards/sck/m0116b/keymaps/m0118/config.h
@@ -0,0 +1,19 @@
1/* Copyright 2019 jrfhoutx
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// place overrides here
diff --git a/keyboards/sck/m0116b/keymaps/m0118/keymap.c b/keyboards/sck/m0116b/keymaps/m0118/keymap.c
new file mode 100644
index 000000000..094d70066
--- /dev/null
+++ b/keyboards/sck/m0116b/keymaps/m0118/keymap.c
@@ -0,0 +1,100 @@
1/* Copyright 2019 jrfhoutx
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 QMK_KEYBOARD_H
17
18enum custom_keycodes {
19 M0116B = SAFE_RANGE,
20};
21
22#define CALTDEL LCTL(LALT(KC_DEL))
23
24const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
25 /* Keymap BASE: (Base Layer) Default Layer
26 * ,---------------------------------------------------------------------------------.
27 * | | CALTDEL | |
28 * `---------------------------------------------------------------------------------'
29 * ,-----------------------------------------------------------. .-------------------.
30 * |Esc| 1 | 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|Backsp | |MO(1)| = | / | * |
31 * |-----------------------------------------------------------| |-------------------|
32 * |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]|Enter| | 7 | 8 | 9 | + |
33 * |--------------------------------------------------------| | |-------------------|
34 * |Caps | A| S| D| F| G| H| J| K| L| ;| '| # | | | 4 | 5 | 6 | - |
35 * |-----------------------------------------------------------' |-------------------|
36 * |Shift|<>| Z| X| C| V| B| N| M| ,| .| /|Shift| Up | | 1 | 2 | 3 | Ent|
37 * |-----------------------------------------------------------' `--------------| |
38 * |Ctrl | Opt | Cmd | Space |Cmd |Left|Right|Down| | 0 | . | |
39 * `-----------------------------------------------------------' `-------------------'
40 */
41[0] = LAYOUT_m0118_iso( /* Base */
42 CALTDEL,
43 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_NLCK, KC_PEQL, KC_PSLS, KC_PAST,
44 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_ENT, KC_P7, KC_P8, KC_P9, KC_PPLS,
45 KC_LCAP, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_HASH, KC_P4, KC_P5, KC_P6, KC_PMNS,
46 KC_LSFT, KC_LABK, 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_P1, KC_P2, KC_P3, KC_PENT,
47 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, LT(1, KC_RALT), KC_LEFT, KC_RGHT, KC_DOWN, KC_P0, KC_PDOT
48),
49/* Keymap Layer 1: (Layer 1) Layer 1
50 * ,---------------------------------------------------------------------------------.
51 * | | Reset | |
52 * `---------------------------------------------------------------------------------'
53 * ,-----------------------------------------------------------. .-------------------.
54 * | | | | | | | | | | | | | | | | | | | |
55 * |-----------------------------------------------------------| |-------------------|
56 * | | | | | | | | | | | | | | | | | | | |
57 * |--------------------------------------------------------| | |-------------------|
58 * | | | | | | | | | | | | | | | | | | | |
59 * |-----------------------------------------------------------' |-------------------|
60 * | | | | | | | | | | | | | | | | | | | |
61 * |-----------------------------------------------------------' `--------------| |
62 * | | | | M0116B | | | | | | | | |
63 * `-----------------------------------------------------------' `-------------------'
64 */
65[1] = LAYOUT_m0118_iso( /* Layer 1 */
66 RESET,
67 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
68 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
69 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
70 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
71 KC_TRNS, KC_TRNS, KC_TRNS, M0116B, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
72 ),
73};
74
75void matrix_init_user(void) {
76
77}
78
79void matrix_scan_user(void) {
80
81}
82
83bool process_record_user(uint16_t keycode, keyrecord_t *record) {
84 switch (keycode) {
85 case M0116B:
86 if (record->event.pressed) {
87 // when keycode M0116B is pressed
88 SEND_STRING("Golden Delicious - M0116B - The Apple M0116/M0118 Replacement PCB.");
89 } else {
90 // when keycode M0116B is released
91 }
92 break;
93
94 }
95 return true;
96};
97
98void led_set_user(uint8_t usb_led) {
99
100}
diff --git a/keyboards/sck/m0116b/keymaps/m0118/readme.md b/keyboards/sck/m0116b/keymaps/m0118/readme.md
new file mode 100644
index 000000000..049dad83a
--- /dev/null
+++ b/keyboards/sck/m0116b/keymaps/m0118/readme.md
@@ -0,0 +1 @@
# The default keymap for the Golden Delicious when used with a M0118
diff --git a/keyboards/sck/m0116b/m0116b.c b/keyboards/sck/m0116b/m0116b.c
new file mode 100644
index 000000000..2e0a4ae2c
--- /dev/null
+++ b/keyboards/sck/m0116b/m0116b.c
@@ -0,0 +1,51 @@
1/* Copyright 2019 jrfhoutx
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 "m0116b.h"
17
18// Optional override functions below.
19// You can leave any or all of these undefined.
20// These are only required if you want to perform custom actions.
21
22/*
23
24void matrix_init_kb(void) {
25 // put your keyboard start-up code here
26 // runs once when the firmware starts up
27
28 matrix_init_user();
29}
30
31void matrix_scan_kb(void) {
32 // put your looping keyboard code here
33 // runs every cycle (a lot)
34
35 matrix_scan_user();
36}
37
38bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
39 // put your per-action keyboard code here
40 // runs for every action, just before processing by the firmware
41
42 return process_record_user(keycode, record);
43}
44
45void led_set_kb(uint8_t usb_led) {
46 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
47
48 led_set_user(usb_led);
49}
50
51*/
diff --git a/keyboards/sck/m0116b/m0116b.h b/keyboards/sck/m0116b/m0116b.h
new file mode 100644
index 000000000..e31592512
--- /dev/null
+++ b/keyboards/sck/m0116b/m0116b.h
@@ -0,0 +1,58 @@
1/* Copyright 2019 jrfhoutx
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
20/* This a shortcut to help you visually see your layout.
21 *
22 * The first section contains all of the arguments representing the physical
23 * layout of the board and position of the keys.
24 *
25 * The second converts the arguments into a two-dimensional array which
26 * represents the switch matrix.
27 */
28#define LAYOUT_m0116_ansi( \
29 K06, \
30 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H, \
31 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G, K2H, \
32 K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3E, K3F, K3G, K3H, \
33 K40, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4E, K4F, K4G, K4H, \
34 K50, K51, K52, K53, K56, K59, K5A, K5B, K5C, K5D, K5E, K5G \
35) { \
36 { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K06, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
37 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H }, \
38 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G, K2H }, \
39 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, KC_NO, KC_NO, K3E, K3F, K3G, K3H }, \
40 { K40, KC_NO, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, KC_NO, K4E, K4F, K4G, K4H }, \
41 { K50, K51, K52, K53, KC_NO, KC_NO, K56, KC_NO, KC_NO, K59, K5A, K5B, K5C, K5D, K5E, KC_NO, K5G, KC_NO }, \
42 }
43
44#define LAYOUT_m0118_iso( \
45 K06, \
46 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H, \
47 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G, K2H, \
48 K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3E, K3F, K3G, K3H, \
49 K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D, K4E, K4F, K4G, K4H, \
50 K50, K51, K52, K56, K5A, K5B, K5C, K5D, K5E, K5G \
51) { \
52 { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K06, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
53 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H }, \
54 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G, K2H }, \
55 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, KC_NO, K3E, K3F, K3G, K3H }, \
56 { K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D, K4E, K4F, K4G, K4H }, \
57 { K50, K51, K52, KC_NO, KC_NO, KC_NO, K56, KC_NO, KC_NO, KC_NO, K5A, K5B, K5C, K5D, K5E, KC_NO, K5G, KC_NO }, \
58 }
diff --git a/keyboards/sck/m0116b/readme.md b/keyboards/sck/m0116b/readme.md
new file mode 100644
index 000000000..c8bb36d99
--- /dev/null
+++ b/keyboards/sck/m0116b/readme.md
@@ -0,0 +1,26 @@
1# Golden Delicious aka M0116B
2
3The Golden Delicious (aka M0116B) is a replacement PCB for the Apple M0116 and M0118 keyboards, the best keyboard Apple ever made...
4
5Installation Information:
6
7The Golden Delicious comes with new daughter boards that use USB-B connectors. When installing the PCB you can use these new connectors, or you can reuse the old DIN type ADB connectors. Reusing the original ADB daughter boards will require you to put a USB-A connector on an original ADB cable and make sure that you are connecting the pins correctly (and is therefore slightly more advanced to use and setup as it requres a multimeter).
8
9The daughter boards can easily be snapped off from the main PCB. In order to electrically connect them to the main PCB you will need to reuse the 6 wire ribbon cable from your original PCB (or use the supplied pieces of ribbon cable if the originals are damaged during desoldering).
10
11When installing the PCB assembly back into the case, if you are using the new USB-B daughter boards, you will need to trim a small amount of the support brackets inside the case. This is to fit the new USB-B connectors in place of the original DIN type ADB connectors, since the new USB-B connectors are longer than the original ADB connectors. As can be seen [HERE](https://imgur.com/a/a1zIFUC).
12
13Repo Information:
14
15Keyboard Maintainer: jrfhoutx
16Keyboard Designer: [jrfhoutx](https://github.com/jrfhoutx)
17Hardware Supported: M0116B, ATMEGA32U4
18Hardware Availability: Space City Keyboards
19
20Make example for this keyboard (after setting up your build environment):
21
22 make sck/m0116b:default
23 make sck/m0116b:m0116
24 make sck/m0116b:m0118
25
26See 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/sck/m0116b/rules.mk b/keyboards/sck/m0116b/rules.mk
new file mode 100644
index 000000000..562bad5d5
--- /dev/null
+++ b/keyboards/sck/m0116b/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 = atmel-dfu
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 = yes # USB Nkey Rollover
26BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
27RGBLIGHT_ENABLE = no # 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