aboutsummaryrefslogtreecommitdiff
path: root/keyboards/kingly_keys
diff options
context:
space:
mode:
authorGarret G <45295190+TheRoyalSweatshirt@users.noreply.github.com>2019-10-08 13:24:20 -0500
committerDrashna Jaelre <drashna@live.com>2019-10-08 11:24:20 -0700
commit9fe7b406cb43e334d588e69b14c3fa41ae4c4925 (patch)
tree6d9a5f09156c6943f9b1bef8613c1d76b2e089a6 /keyboards/kingly_keys
parent19584b92c559b134401be1efa7a5f199eda12f89 (diff)
downloadqmk_firmware-9fe7b406cb43e334d588e69b14c3fa41ae4c4925.tar.gz
qmk_firmware-9fe7b406cb43e334d588e69b14c3fa41ae4c4925.zip
[Keyboard] Move existing boards to Kingly_Keys and add more boards (#6879)
* try to fix and orginize to Kingly_Keys subfolder and add various keyboard support * fixed layout nomenclature and rules.mk pref * modified readme for smd_milk * fixed layout name in little_foot.h * Update keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * remove old stand-alone keyboard folders * Fixed missing comma in littlefoot keymap * remove OLED code in romac_plus.c * Update rules.mk * Update readme.md * Apply suggestions from code review Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update rules.mk * Update rules.mk * Update keymap.c * Update keymap.c * Update keymap.c * fix little_foot.h layouts, delete smd_milk readme.md * Fix ALpha Edits * Fix ALpha Edits p.2 * update little_foot.h * fix little_foot.h p.2 * Update keyboards/kingly_keys/little_foot/little_foot.h Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/kingly_keys/little_foot/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Modify config.h for cleaned up PCB.
Diffstat (limited to 'keyboards/kingly_keys')
-rw-r--r--keyboards/kingly_keys/little_foot/config.h58
-rw-r--r--keyboards/kingly_keys/little_foot/info.json16
-rw-r--r--keyboards/kingly_keys/little_foot/keymaps/default/keymap.c40
-rw-r--r--keyboards/kingly_keys/little_foot/little_foot.c1
-rw-r--r--keyboards/kingly_keys/little_foot/little_foot.h35
-rw-r--r--keyboards/kingly_keys/little_foot/readme.md17
-rw-r--r--keyboards/kingly_keys/little_foot/rules.mk25
-rw-r--r--keyboards/kingly_keys/romac/config.h40
-rw-r--r--keyboards/kingly_keys/romac/info.json13
-rw-r--r--keyboards/kingly_keys/romac/keymaps/default/keymap.c37
-rw-r--r--keyboards/kingly_keys/romac/keymaps/jarred/keymap.c37
-rw-r--r--keyboards/kingly_keys/romac/keymaps/stanrc85/config.h11
-rw-r--r--keyboards/kingly_keys/romac/keymaps/stanrc85/keymap.c78
-rw-r--r--keyboards/kingly_keys/romac/keymaps/stanrc85/rules.mk1
-rw-r--r--keyboards/kingly_keys/romac/readme.md16
-rw-r--r--keyboards/kingly_keys/romac/romac.c1
-rw-r--r--keyboards/kingly_keys/romac/romac.h16
-rw-r--r--keyboards/kingly_keys/romac/rules.mk26
-rw-r--r--keyboards/kingly_keys/romac_plus/config.h46
-rw-r--r--keyboards/kingly_keys/romac_plus/info.json13
-rw-r--r--keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c65
-rw-r--r--keyboards/kingly_keys/romac_plus/readme.md16
-rw-r--r--keyboards/kingly_keys/romac_plus/romac_plus.c2
-rw-r--r--keyboards/kingly_keys/romac_plus/romac_plus.h16
-rw-r--r--keyboards/kingly_keys/romac_plus/rules.mk24
-rw-r--r--keyboards/kingly_keys/ropro/config.h60
-rw-r--r--keyboards/kingly_keys/ropro/info.json13
-rw-r--r--keyboards/kingly_keys/ropro/keymaps/default/keymap.c85
-rw-r--r--keyboards/kingly_keys/ropro/keymaps/default/readme.md1
-rw-r--r--keyboards/kingly_keys/ropro/readme.md16
-rw-r--r--keyboards/kingly_keys/ropro/ropro.c1
-rw-r--r--keyboards/kingly_keys/ropro/ropro.h39
-rw-r--r--keyboards/kingly_keys/ropro/rules.mk33
-rw-r--r--keyboards/kingly_keys/smd_milk/2_milk.c16
-rw-r--r--keyboards/kingly_keys/smd_milk/2_milk.h26
-rw-r--r--keyboards/kingly_keys/smd_milk/config.h56
-rw-r--r--keyboards/kingly_keys/smd_milk/info.json15
-rw-r--r--keyboards/kingly_keys/smd_milk/keymaps/default/keymap.c8
-rw-r--r--keyboards/kingly_keys/smd_milk/readme.md21
-rw-r--r--keyboards/kingly_keys/smd_milk/rules.mk26
-rw-r--r--keyboards/kingly_keys/smd_milk/smd_milk.c16
-rw-r--r--keyboards/kingly_keys/smd_milk/smd_milk.h26
-rw-r--r--keyboards/kingly_keys/soap/README.md16
-rw-r--r--keyboards/kingly_keys/soap/config.h54
-rw-r--r--keyboards/kingly_keys/soap/info.json13
-rw-r--r--keyboards/kingly_keys/soap/keymaps/default/keymap.c62
-rw-r--r--keyboards/kingly_keys/soap/rules.mk32
-rw-r--r--keyboards/kingly_keys/soap/soap.c1
-rw-r--r--keyboards/kingly_keys/soap/soap.h32
49 files changed, 1318 insertions, 0 deletions
diff --git a/keyboards/kingly_keys/little_foot/config.h b/keyboards/kingly_keys/little_foot/config.h
new file mode 100644
index 000000000..e0bd0daf9
--- /dev/null
+++ b/keyboards/kingly_keys/little_foot/config.h
@@ -0,0 +1,58 @@
1/* Copyright 2019 Garret G. (TheRoyalSweatshirt)
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/>.#pragma once
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 0x6060
24#define DEVICE_VER 0x0001
25#define MANUFACTURER Kingly-Keys
26#define PRODUCT The Little Foot
27#define DESCRIPTION A Mighty Small, 45-Percent, Ortholinear Keyboard.
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 10
32
33/* key matrix pins */
34#define MATRIX_ROW_PINS { F6, B6, B2, B3, B1 }
35#define MATRIX_COL_PINS { F5, F7, B5, B4, E6, D7, C6, D4, D0, D1 }
36#define UNUSED_PINS
37
38/* COL2ROW or ROW2COL */
39#define DIODE_DIRECTION COL2ROW
40
41/* Set 0 if debouncing isn't needed */
42#define DEBOUNCE 5
43#define FORCE_NKRO
44
45/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
46#define LOCKING_SUPPORT_ENABLE
47
48/* Locking resynchronize hack */
49#define LOCKING_RESYNC_ENABLE
50
51/* ws2812 RGB LED */
52#define RGB_DI_PIN F4
53#define RGBLED_NUM 10 // Number of LEDs
54
55#define RGBLIGHT_ANIMATIONS
56#define RGBLIGHT_HUE_STEP 6
57#define RGBLIGHT_SAT_STEP 4
58#define RGBLIGHT_VAL_STEP 8
diff --git a/keyboards/kingly_keys/little_foot/info.json b/keyboards/kingly_keys/little_foot/info.json
new file mode 100644
index 000000000..6a8d50894
--- /dev/null
+++ b/keyboards/kingly_keys/little_foot/info.json
@@ -0,0 +1,16 @@
1{
2 "keyboard_name": "Little Foot",
3 "url": "",
4 "maintainer": "TheRoyalSweatshirt",
5 "width": 10,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_split_space_base": {
9 "key_count": 44,
10 "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}, {"x":6, "y":1}, {"x":7, "y":1}, {"x":8, "y":1}, {"x":9, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":6, "y":2}, {"x":7, "y":2}, {"x":8, "y":2}, {"x":9, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3}, {"x":6, "y":3}, {"x":7, "y":3}, {"x":8, "y":3}, {"x":9, "y":3}, {"x":1.5, "y":4, "w":1.5}, {"x":3, "y":4, "w":2}, {"x":5, "y":4, "w":2}, {"x":7, "y":4, "w":1.5}]
11 },
12 "LAYOUT_big_space_base": {
13 "key_count": 41,
14 "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}, {"x":6, "y":1}, {"x":7, "y":1}, {"x":8, "y":1}, {"x":9, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":6, "y":2}, {"x":7, "y":2}, {"x":8, "y":2}, {"x":9, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3}, {"x":6, "y":3}, {"x":7, "y":3}, {"x":8, "y":3}, {"x":9, "y":3}, {"x":1.5, "y":4, "w":7}]
15 }
16}
diff --git a/keyboards/kingly_keys/little_foot/keymaps/default/keymap.c b/keyboards/kingly_keys/little_foot/keymaps/default/keymap.c
new file mode 100644
index 000000000..e85e0d6c4
--- /dev/null
+++ b/keyboards/kingly_keys/little_foot/keymaps/default/keymap.c
@@ -0,0 +1,40 @@
1
2#include QMK_KEYBOARD_H
3
4// Layer names
5enum{
6 // - Base layer:
7 _BASE,
8 // - Symbols, numbers, and functions:
9 _FN,
10 // - Alternate Function layer:
11 _LN
12};
13
14
15const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
16
17 [_BASE] = LAYOUT_split_space_base(
18 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
19 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
20 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,
21 KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_ENT,
22 MO(_FN), KC_LSHIFT, KC_SPACE, RGB_MOD
23 ),
24
25 [_FN] = LAYOUT_split_space_base(
26 LT(_LN, KC_ESC), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MINS, KC_BSPC,
27 KC_TAB, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, LSFT(KC_MINS), KC_BSLS,
28 KC_LSFT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, KC_QUOT,
29 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS,
30 KC_TRNS, KC_LALT, KC_TRNS, KC_LCTRL
31 ),
32
33 [_LN] = LAYOUT_split_space_base(
34 KC_TRNS, KC_F1, KC_F2, KC_F3, KC_TRNS, KC_TRNS, KC_TRNS, KC_7, KC_8, KC_9,
35 KC_TRNS, KC_F4, KC_F5, KC_F6, KC_TRNS, KC_TRNS, KC_TRNS, KC_4, KC_5, KC_6,
36 KC_TRNS, KC_F7, KC_F8, KC_F9, KC_TRNS, KC_TRNS, KC_TRNS, KC_1, KC_2, KC_3,
37 KC_TRNS, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_0, KC_TRNS,
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
39 )
40};
diff --git a/keyboards/kingly_keys/little_foot/little_foot.c b/keyboards/kingly_keys/little_foot/little_foot.c
new file mode 100644
index 000000000..5513b113a
--- /dev/null
+++ b/keyboards/kingly_keys/little_foot/little_foot.c
@@ -0,0 +1 @@
#include "little_foot.h"
diff --git a/keyboards/kingly_keys/little_foot/little_foot.h b/keyboards/kingly_keys/little_foot/little_foot.h
new file mode 100644
index 000000000..860eaeb8f
--- /dev/null
+++ b/keyboards/kingly_keys/little_foot/little_foot.h
@@ -0,0 +1,35 @@
1#pragma once
2
3#include "quantum.h"
4
5#define XXX KC_NO
6
7#define LAYOUT_split_space_base( \
8 k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, \
9 k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, \
10 k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, \
11 k31, k32, k33, k34, k35, k36, k37, k38, k39, k310, \
12 k42, k46, k47, k49 \
13) \
14{ \
15 { k01, k02, k03, k04, k05, k06, k07, k08, k09, k010 }, \
16 { k11, k12, k13, k14, k15, k16, k17, k18, k19, k110 }, \
17 { k21, k22, k23, k24, k25, k26, k27, k28, k29, k210 }, \
18 { k31, k32, k33, k34, k35, k36, k37, k38, k39, k310 }, \
19 { XXX, k42, XXX, XXX, XXX, k46, k47, XXX, k49, XXX } \
20}
21
22#define LAYOUT_big_space_base( \
23 k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, \
24 k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, \
25 k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, \
26 k31, k32, k33, k34, k35, k36, k37, k38, k39, k310, \
27 k46 \
28) \
29{ \
30 { k01, k02, k03, k04, k05, k06, k07, k08, k09, k010 }, \
31 { k11, k12, k13, k14, k15, k16, k17, k18, k19, k110 }, \
32 { k21, k22, k23, k24, k25, k26, k27, k28, k29, k210 }, \
33 { k31, k32, k33, k34, k35, k36, k37, k38, k39, k310 }, \
34 { XXX, k42, XXX, XXX, XXX, k46, XXX, XXX, k49, XXX } \
35}
diff --git a/keyboards/kingly_keys/little_foot/readme.md b/keyboards/kingly_keys/little_foot/readme.md
new file mode 100644
index 000000000..1052952cd
--- /dev/null
+++ b/keyboards/kingly_keys/little_foot/readme.md
@@ -0,0 +1,17 @@
1# Little Foot
2
3![Little_Foot](https://i.imgur.com/M0Usdtg.jpg)
4===
5
6A mighty small keyboard.
7
8Keyboard Maintainer: Garret G. - a.k.a. [The_Royal](https://www.reddit.com/user/The_Royal/) on Reddit, and [TheRoyalSweatshirt](https://github.com/TheRoyalSweatshirt) on GitHub
9Hardware Supported: Little_Foot Rev1.2 & Rev1.4, Pro-Micro, and Elite-C
10Hardware Availability: Through GB or Direct Message
11
12Make example for this keyboard (after setting up your build environment):
13
14 make kingly_keys/little_foot:default
15
16See 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).
17
diff --git a/keyboards/kingly_keys/little_foot/rules.mk b/keyboards/kingly_keys/little_foot/rules.mk
new file mode 100644
index 000000000..0c3011db9
--- /dev/null
+++ b/keyboards/kingly_keys/little_foot/rules.mk
@@ -0,0 +1,25 @@
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
11BOOTLOADER = caterina
12
13# Build Options
14# comment out to disable the options.
15#
16BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
17MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
18EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
19CONSOLE_ENABLE = no # Console for debug(+400)
20COMMAND_ENABLE = no # Commands for debug and configuration
21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
22NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
23BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
24AUDIO_ENABLE = no
25RGBLIGHT_ENABLE = yes
diff --git a/keyboards/kingly_keys/romac/config.h b/keyboards/kingly_keys/romac/config.h
new file mode 100644
index 000000000..da236c500
--- /dev/null
+++ b/keyboards/kingly_keys/romac/config.h
@@ -0,0 +1,40 @@
1#pragma once
2
3#include "config_common.h"
4
5/* USB Device descriptor parameter */
6#define VENDOR_ID 0xFEED
7#define PRODUCT_ID 0x6060
8#define DEVICE_VER 0x0001
9#define MANUFACTURER TheRoyalSweatshirt
10#define PRODUCT romac
11#define DESCRIPTION A *Plaid inspired twelve-key macropad
12/* key matrix size */
13#define MATRIX_ROWS 4
14#define MATRIX_COLS 3
15
16/* key matrix pins */
17#define MATRIX_ROW_PINS { D4, C6, D7, E6 }
18#define MATRIX_COL_PINS { F7, B1, B3 }
19#define UNUSED_PINS
20
21/* COL2ROW or ROW2COL */
22#define DIODE_DIRECTION COL2ROW
23
24/* number of backlight levels */
25
26#define BACKLIGHT_LEVELS 0
27
28/* Set 0 if debouncing isn't needed */
29#define DEBOUNCE 5
30
31/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
32#define LOCKING_SUPPORT_ENABLE
33
34/* Locking resynchronize hack */
35#define LOCKING_RESYNC_ENABLE
36
37#define RGBLED_NUM 0
38#define RGBLIGHT_HUE_STEP 8
39#define RGBLIGHT_SAT_STEP 8
40#define RGBLIGHT_VAL_STEP 8
diff --git a/keyboards/kingly_keys/romac/info.json b/keyboards/kingly_keys/romac/info.json
new file mode 100644
index 000000000..305785991
--- /dev/null
+++ b/keyboards/kingly_keys/romac/info.json
@@ -0,0 +1,13 @@
1{
2 "keyboard_name": "RoMac",
3 "url": "",
4 "maintainer": "TheRoyalSweatshirt",
5 "width": 3,
6 "height": 4,
7 "layouts": {
8 "LAYOUT": {
9 "key_count": 12,
10 "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}]
11 }
12 }
13}
diff --git a/keyboards/kingly_keys/romac/keymaps/default/keymap.c b/keyboards/kingly_keys/romac/keymaps/default/keymap.c
new file mode 100644
index 000000000..44263453d
--- /dev/null
+++ b/keyboards/kingly_keys/romac/keymaps/default/keymap.c
@@ -0,0 +1,37 @@
1/* Copyright 2018 Jack Humbert
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#include QMK_KEYBOARD_H
18
19#define _BASE 0
20#define _FN1 1
21
22const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
23
24 [_BASE] = LAYOUT(
25 KC_7, KC_8, KC_9, \
26 KC_4, KC_5, KC_6, \
27 KC_1, KC_2, KC_3, \
28 MO(1), KC_0, KC_DOT \
29 ),
30
31 [_FN1] = LAYOUT(
32 KC_TRNS, KC_HOME, KC_PGUP, \
33 KC_TRNS, KC_END, KC_PGDN, \
34 KC_TRNS, KC_TRNS, KC_TRNS, \
35 KC_TRNS, KC_TRNS, KC_ENT \
36 )
37};
diff --git a/keyboards/kingly_keys/romac/keymaps/jarred/keymap.c b/keyboards/kingly_keys/romac/keymaps/jarred/keymap.c
new file mode 100644
index 000000000..472e99004
--- /dev/null
+++ b/keyboards/kingly_keys/romac/keymaps/jarred/keymap.c
@@ -0,0 +1,37 @@
1/* Copyright 2019 Jarred Steenvoorden
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#include QMK_KEYBOARD_H
18
19#define _BASE 0
20#define _FN1 1
21
22const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
23
24 [_BASE] = LAYOUT(
25 KC_7, KC_8, KC_9, \
26 KC_4, KC_5, KC_6, \
27 KC_1, KC_2, KC_3, \
28 LT(_FN1, KC_0), KC_ENT, KC_DOT \
29 ),
30
31 [_FN1] = LAYOUT(
32 KC_HOME, KC_UP , KC_PGUP , \
33 KC_LEFT, KC_DOWN, KC_RIGHT, \
34 KC_END , KC_BSPC, KC_PGDN , \
35 KC_TRNS, XXXXXXX, KC_DEL \
36 )
37};
diff --git a/keyboards/kingly_keys/romac/keymaps/stanrc85/config.h b/keyboards/kingly_keys/romac/keymaps/stanrc85/config.h
new file mode 100644
index 000000000..722fd7e9e
--- /dev/null
+++ b/keyboards/kingly_keys/romac/keymaps/stanrc85/config.h
@@ -0,0 +1,11 @@
1#undef RGBLED_NUM
2#define RGBLED_NUM 16
3
4#define RGB_DI_PIN F4
5#ifdef RGB_DI_PIN
6 #define RGBLIGHT_HUE_STEP 8
7 #define RGBLIGHT_SAT_STEP 8
8 #define RGBLIGHT_VAL_STEP 8
9 #define RGBLIGHT_ANIMATIONS
10#endif
11
diff --git a/keyboards/kingly_keys/romac/keymaps/stanrc85/keymap.c b/keyboards/kingly_keys/romac/keymaps/stanrc85/keymap.c
new file mode 100644
index 000000000..ecca61cae
--- /dev/null
+++ b/keyboards/kingly_keys/romac/keymaps/stanrc85/keymap.c
@@ -0,0 +1,78 @@
1/* Copyright 2019 Stanrc85
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#include QMK_KEYBOARD_H
18#include "stanrc85.h"
19
20enum keys {
21 U_LAYR = SAFE_RANGE,
22 D_LAYR
23};
24
25const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26 [_NUMPAD] = LAYOUT(
27 KC_7, KC_8, KC_9,
28 KC_4, KC_5, KC_6,
29 KC_1, KC_2, KC_3,
30 U_LAYR, KC_0, KC_ENT),
31
32 [_NAVKEY] = LAYOUT(
33 KC_HOME, KC_INS, KC_PGUP,
34 KC_END, KC_UP, KC_PGDN,
35 KC_LEFT, KC_DOWN, KC_RGHT,
36 U_LAYR, TD_TWIN, D_LAYR),
37
38 [_MEDIA] = LAYOUT(
39 KC_MUTE, KC_VOLD, KC_VOLU,
40 CA_QUOT, KC_MPLY, CA_SCLN,
41 CA_COPY, CA_PSTE, KC_NO,
42 U_LAYR, KC_NO, D_LAYR),
43
44 [_RGB] = LAYOUT(
45 RGB_SAI, RGB_VAI, RGB_HUI,
46 RGB_SAD, RGB_VAD, RGB_HUD,
47 RGB_TOG, RGB_MOD, KC_NO,
48 U_LAYR, KC_NO, D_LAYR),
49
50 [_FN1PAD] = LAYOUT(
51 KC_NO, KC_NO, KC_NO,
52 KC_NO, KC_NO, RESET,
53 KC_NO, KC_NO, KC_MAKE,
54 KC_NO, KC_LSFT, D_LAYR)
55};
56
57bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
58 keypos_t key;
59 uint8_t current_layer;
60 uint8_t next_layer;
61 switch (keycode) {
62 case U_LAYR: //cycles up the layers
63 if (!record->event.pressed) {
64 current_layer = layer_switch_get_layer(key);
65 next_layer = current_layer+1;
66 layer_move(next_layer);
67 }
68 break;
69 case D_LAYR: //cycles down the layers
70 if (!record->event.pressed) {
71 current_layer = layer_switch_get_layer(key);
72 next_layer = current_layer-1;
73 layer_move(next_layer);
74 }
75 break;
76 }
77 return true;
78};
diff --git a/keyboards/kingly_keys/romac/keymaps/stanrc85/rules.mk b/keyboards/kingly_keys/romac/keymaps/stanrc85/rules.mk
new file mode 100644
index 000000000..1e3cebb14
--- /dev/null
+++ b/keyboards/kingly_keys/romac/keymaps/stanrc85/rules.mk
@@ -0,0 +1 @@
RGBLIGHT_ENABLE = yes
diff --git a/keyboards/kingly_keys/romac/readme.md b/keyboards/kingly_keys/romac/readme.md
new file mode 100644
index 000000000..98ed21502
--- /dev/null
+++ b/keyboards/kingly_keys/romac/readme.md
@@ -0,0 +1,16 @@
1
2# RoMac
3
4![RoMac](https://i.imgur.com/hAOyoqj.jpg)
5
6A “Plaid” Inspired 12-Key (3x4) Macropad.
7
8- Keyboard Maintainer: [Garret G.](https://github.com/TheRoyalSweatshirt)
9- Hardware Supported: RoMac rev.1, rev.2, Pro Micro, Elite-C, Proton C, BlueMicro.
10- Hardware Availability: Through GB or Direct Message (If extra stock is available).
11
12Make example for this keyboard (after setting up your build environment):
13
14 make romac:default
15
16See 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/kingly_keys/romac/romac.c b/keyboards/kingly_keys/romac/romac.c
new file mode 100644
index 000000000..24f4c1633
--- /dev/null
+++ b/keyboards/kingly_keys/romac/romac.c
@@ -0,0 +1 @@
#include "romac.h"
diff --git a/keyboards/kingly_keys/romac/romac.h b/keyboards/kingly_keys/romac/romac.h
new file mode 100644
index 000000000..e6fb9694d
--- /dev/null
+++ b/keyboards/kingly_keys/romac/romac.h
@@ -0,0 +1,16 @@
1#pragma once
2
3#include "quantum.h"
4
5#define LAYOUT( \
6 K00, K01, K02, \
7 K10, K11, K12, \
8 K20, K21, K22, \
9 K30, K31, K32 \
10) \
11{ \
12 { K00, K01, K02 }, \
13 { K10, K11, K12 }, \
14 { K20, K21, K22 }, \
15 { K30, K31, K32 } \
16}
diff --git a/keyboards/kingly_keys/romac/rules.mk b/keyboards/kingly_keys/romac/rules.mk
new file mode 100644
index 000000000..1dd9bd658
--- /dev/null
+++ b/keyboards/kingly_keys/romac/rules.mk
@@ -0,0 +1,26 @@
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
11BOOTLOADER = caterina
12
13# Build Options
14# comment out to disable the options.
15#
16BOOTMAGIC_ENABLE = full # Virtual DIP switch configuration(+1000)
17MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
18EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
19CONSOLE_ENABLE = no # Console for debug(+400)
20COMMAND_ENABLE = no # Commands for debug and configuration
21SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
22NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
23BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
24AUDIO_ENABLE = no
25RGBLIGHT_ENABLE = no
26
diff --git a/keyboards/kingly_keys/romac_plus/config.h b/keyboards/kingly_keys/romac_plus/config.h
new file mode 100644
index 000000000..503a463f5
--- /dev/null
+++ b/keyboards/kingly_keys/romac_plus/config.h
@@ -0,0 +1,46 @@
1#pragma once
2
3#include "config_common.h"
4
5/* USB Device descriptor parameter */
6#define VENDOR_ID 0xFEED
7#define PRODUCT_ID 0x6060
8#define DEVICE_VER 0x0001
9#define MANUFACTURER TheRoyalSweatshirt
10#define PRODUCT RoMac+
11#define DESCRIPTION A *Plaid inspired twelve-key macropad with upgraded features
12/* key matrix size */
13#define MATRIX_ROWS 4
14#define MATRIX_COLS 3
15
16/* key matrix pins */
17#define MATRIX_ROW_PINS { C6, D4, D2, D3 }
18#define MATRIX_COL_PINS { F6, F5, F4 }
19#define UNUSED_PINS
20
21#define ENCODERS_PAD_A { B3 }
22#define ENCODERS_PAD_B { B2 }
23
24/* COL2ROW or ROW2COL */
25#define DIODE_DIRECTION COL2ROW
26
27/* number of backlight levels */
28#define BACKLIGHT_LEVELS 0
29
30/* Set 0 if debouncing isn't needed */
31#define DEBOUNCE 5
32
33/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
34#define LOCKING_SUPPORT_ENABLE
35
36/* Locking resynchronize hack */
37#define LOCKING_RESYNC_ENABLE
38
39/* ws2812 RGB LED */
40#define RGB_DI_PIN F7
41#define RGBLED_NUM 4 // Number of LEDs
42
43#define RGBLIGHT_ANIMATIONS
44#define RGBLIGHT_HUE_STEP 6
45#define RGBLIGHT_SAT_STEP 4
46#define RGBLIGHT_VAL_STEP 8
diff --git a/keyboards/kingly_keys/romac_plus/info.json b/keyboards/kingly_keys/romac_plus/info.json
new file mode 100644
index 000000000..5c73db5b2
--- /dev/null
+++ b/keyboards/kingly_keys/romac_plus/info.json
@@ -0,0 +1,13 @@
1{
2 "keyboard_name": "RoMac+",
3 "url": "",
4 "maintainer": "TheRoyalSweatshirt",
5 "width": 3,
6 "height": 4,
7 "layouts": {
8 "LAYOUT": {
9 "key_count": 12,
10 "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}]
11 }
12 }
13}
diff --git a/keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c b/keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c
new file mode 100644
index 000000000..556af1d1e
--- /dev/null
+++ b/keyboards/kingly_keys/romac_plus/keymaps/default/keymap.c
@@ -0,0 +1,65 @@
1/* Copyright 2018 Jack Humbert
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#include QMK_KEYBOARD_H
18
19#define BASE 0
20#define FN 1
21
22const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
23
24 [BASE] = LAYOUT(
25 KC_7, KC_8, KC_9,
26 KC_4, KC_5, KC_6,
27 KC_1, KC_2, KC_3,
28 MO(1), KC_0, KC_DOT
29 ),
30
31 [FN] = LAYOUT(
32 KC_TRNS, KC_HOME, KC_PGUP,
33 KC_TRNS, KC_END, KC_PGDN,
34 KC_TRNS, KC_TRNS, KC_TRNS,
35 KC_TRNS, KC_TRNS, KC_ENT
36 )
37};
38
39#ifdef OLED_DRIVER_ENABLE
40oled_rotation_t oled_init_user(oled_rotation_t rotation) {
41 return OLED_ROTATION_270; // flips the display 180 degrees if offhand
42}
43
44void oled_task_user(void) {
45 // Host Keyboard Layer Status
46 oled_write_P(PSTR("Let's\nbuild\nsome-\nthing\nto-\nget-\nher!"), false);
47 switch (get_highest_layer(layer_state)) {
48 case BASE:
49 oled_write_ln_P(PSTR(""), false);
50 break;
51 case FN:
52 oled_write_ln_P(PSTR("FN"), false);
53 break;
54 default:
55 // Or use the write_ln shortcut over adding '\n' to the end of your string
56 oled_write_ln_P(PSTR("Undef"), false);
57 }
58
59 // Host Keyboard LED Status
60 uint8_t led_usb_state = host_keyboard_leds();
61 oled_write_P(IS_LED_ON(led_usb_state, USB_LED_NUM_LOCK) ? PSTR("NLCK ") : PSTR(" "), false);
62 oled_write_P(IS_LED_ON(led_usb_state, USB_LED_CAPS_LOCK) ? PSTR("CAPS ") : PSTR(" "), false);
63 oled_write_P(IS_LED_ON(led_usb_state, USB_LED_SCROLL_LOCK) ? PSTR("SCRLK") : PSTR(" "), false);
64}
65#endif
diff --git a/keyboards/kingly_keys/romac_plus/readme.md b/keyboards/kingly_keys/romac_plus/readme.md
new file mode 100644
index 000000000..4411701ca
--- /dev/null
+++ b/keyboards/kingly_keys/romac_plus/readme.md
@@ -0,0 +1,16 @@
1
2# RoMac+
3
4![RoMac+](https://i.imgur.com/YJ2nCrS.png)
5
6An Upgraded “Plaid” Inspired 12-Key (3x4) Macropad With Fancy Features.
7
8- Keyboard Maintainer: [Garret G.](https://github.com/TheRoyalSweatshirt)
9- Hardware Supported: RoMac+ Rev3.0, Pro Micro, Elite-C, Proton C, BlueMicro.
10- Hardware Availability: Through Online Store [Kingly-Keys](https://kingly-keys.xyz/) (Stock Varies).
11
12Make example for this keyboard (after setting up your build environment):
13
14 make romac_plus:default
15
16See 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/kingly_keys/romac_plus/romac_plus.c b/keyboards/kingly_keys/romac_plus/romac_plus.c
new file mode 100644
index 000000000..1e95f36c7
--- /dev/null
+++ b/keyboards/kingly_keys/romac_plus/romac_plus.c
@@ -0,0 +1,2 @@
1#include "romac_plus.h"
2 \ No newline at end of file
diff --git a/keyboards/kingly_keys/romac_plus/romac_plus.h b/keyboards/kingly_keys/romac_plus/romac_plus.h
new file mode 100644
index 000000000..e6fb9694d
--- /dev/null
+++ b/keyboards/kingly_keys/romac_plus/romac_plus.h
@@ -0,0 +1,16 @@
1#pragma once
2
3#include "quantum.h"
4
5#define LAYOUT( \
6 K00, K01, K02, \
7 K10, K11, K12, \
8 K20, K21, K22, \
9 K30, K31, K32 \
10) \
11{ \
12 { K00, K01, K02 }, \
13 { K10, K11, K12 }, \
14 { K20, K21, K22 }, \
15 { K30, K31, K32 } \
16}
diff --git a/keyboards/kingly_keys/romac_plus/rules.mk b/keyboards/kingly_keys/romac_plus/rules.mk
new file mode 100644
index 000000000..d0aab2dd1
--- /dev/null
+++ b/keyboards/kingly_keys/romac_plus/rules.mk
@@ -0,0 +1,24 @@
1MCU = atmega32u4
2
3BOOTLOADER = caterina
4
5# Build Options
6# change yes to no to disable
7#
8BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
9MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
10EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
11# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
12SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
13# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
14NKRO_ENABLE = no # USB Nkey Rollover
15BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
16RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
17MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
18UNICODE_ENABLE = no # Unicode
19BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
20AUDIO_ENABLE = no # Audio output on port C6
21FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
22HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
23ENCODER_ENABLE = yes # Enable support for EC11 Rotary Encoder
24OLED_DRIVER_ENABLE = yes # Enable Support for SSD1306 or SH1106 OLED Displays; Communicating over I2C
diff --git a/keyboards/kingly_keys/ropro/config.h b/keyboards/kingly_keys/ropro/config.h
new file mode 100644
index 000000000..3784ebc62
--- /dev/null
+++ b/keyboards/kingly_keys/ropro/config.h
@@ -0,0 +1,60 @@
1#pragma once
2
3/* Copyright 2019 Garret G. (TheRoyalSweatshirt)
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.#pragma once
17 */
18
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0xFEED
23#define PRODUCT_ID 0x0002
24#define DEVICE_VER 0x0001
25#define MANUFACTURER Kingly-Keys
26#define PRODUCT The_RoPro
27#define DESCRIPTION A 75-key ortholinear keyboard with rotary encoder
28
29 /* key matrix size */
30#define MATRIX_ROWS 7
31#define MATRIX_COLS 14
32
33#define ENCODERS_PAD_A { B7 }
34#define ENCODERS_PAD_B { D5 }
35
36 /* key matrix pins */
37#define MATRIX_ROW_PINS { F4, F5, F6, F7, B1, F1, NO_PIN }
38#define MATRIX_COL_PINS { F0, D1, D0, D4, C6, D7, E6, B4, B5, B3, B2, B6, D2, C7 }
39#define UNUSED_PINS
40
41 /* COL2ROW or ROW2COL */
42#define DIODE_DIRECTION COL2ROW
43
44 /* Set 0 if debouncing isn't needed */
45#define DEBOUNCE 5
46
47 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
48#define LOCKING_SUPPORT_ENABLE
49
50 /* Locking resynchronize hack */
51#define LOCKING_RESYNC_ENABLE
52
53/* ws2812 RGB LED --- DIN Pin Routed to VIA on main PCB marked "RGB" */
54#define RGB_DI_PIN D3
55
56#define RGBLED_NUM 18
57
58#define RGBLIGHT_ANIMATIONS
59
60
diff --git a/keyboards/kingly_keys/ropro/info.json b/keyboards/kingly_keys/ropro/info.json
new file mode 100644
index 000000000..f7b62f664
--- /dev/null
+++ b/keyboards/kingly_keys/ropro/info.json
@@ -0,0 +1,13 @@
1{
2 "keyboard_name": "ropro",
3 "url": "https://github.com/TheRoyalSweatshirt/The_RoPro",
4 "maintainer": "[TheRoyalSweatshirt](https://github.com/TheRoyalSweatshirt)",
5 "width": 13,
6 "height": 6,
7 "layouts": {
8 "LAYOUT": {
9 "key_count": 76,
10 "layout": [{"label":"F1", "x":1, "y":0}, {"label":"F2", "x":2, "y":0}, {"label":"F3", "x":3, "y":0}, {"label":"F4", "x":4, "y":0}, {"label":"F5", "x":5, "y":0}, {"label":"F6", "x":6, "y":0}, {"label":"F7", "x":7, "y":0}, {"label":"F8", "x":8, "y":0}, {"label":"F9", "x":9, "y":0}, {"label":"F10", "x":10, "y":0}, {"label":"F11", "x":11, "y":0}, {"label":"F12", "x":12, "y":0}, {"label":"Esc", "x":1, "y":1}, {"label":"1", "x":2, "y":1}, {"label":"2", "x":3, "y":1}, {"label":"3", "x":4, "y":1}, {"label":"4", "x":5, "y":1}, {"label":"5", "x":6, "y":1}, {"label":"6;", "x":7, "y":1}, {"label":"7", "x":8, "y":1}, {"label":"8", "x":9, "y":1}, {"label":"9", "x":10, "y":1}, {"label":"0", "x":11, "y":1}, {"label":"-", "x":12, "y":1}, {"label":"CAPS", "x":0, "y":2}, {"label":"Tab", "x":1, "y":2}, {"label":"Q", "x":2, "y":2}, {"label":"W", "x":3, "y":2}, {"label":"E", "x":4, "y":2}, {"label":"R", "x":5, "y":2}, {"label":"T", "x":6, "y":2}, {"label":"Y", "x":7, "y":2}, {"label":"U", "x":8, "y":2}, {"label":"I", "x":9, "y":2}, {"label":"O", "x":10, "y":2}, {"label":"P", "x":11, "y":2}, {"label":"Bksp", "x":12, "y":2}, {"label":"PgUp", "x":0, "y":3}, {"label":"Ctrl", "x":1, "y":3}, {"label":"A", "x":2, "y":3}, {"label":"S", "x":3, "y":3}, {"label":"D", "x":4, "y":3}, {"label":"F", "x":5, "y":3}, {"label":"G", "x":6, "y":3}, {"label":"H;", "x":7, "y":3}, {"label":"J", "x":8, "y":3}, {"label":"K", "x":9, "y":3}, {"label":"L", "x":10, "y":3}, {"label":";", "x":11, "y":3}, {"label":"'", "x":12, "y":3}, {"label":"Home", "x":0, "y":4}, {"label":"Shift", "x":1, "y":4}, {"label":"Z", "x":2, "y":4}, {"label":"X", "x":3, "y":4}, {"label":"C", "x":4, "y":4}, {"label":"V", "x":5, "y":4}, {"label":"B", "x":6, "y":4}, {"label":"N", "x":7, "y":4}, {"label":"M", "x":8, "y":4}, {"label":",", "x":9, "y":4}, {"label":".", "x":10, "y":4}, {"label":"/", "x":11, "y":4}, {"label":"Enter", "x":12, "y":4}, {"label":"PgDn", "x":0, "y":5}, {"label":"Del", "x":1, "y":5}, {"label":"Ctrl", "x":2, "y":5}, {"label":"GUI", "x":3, "y":5}, {"label":"Alt", "x":4, "y":5}, {"label":"Lower", "x":5, "y":5}, {"x":6, "y":5}, {"x":7, "y":5}, {"label":"End", "x":8, "y":5}, {"label":"Left", "x":9, "y":5}, {"label":"Down", "x":10, "y":5}, {"label":"Up", "x":11, "y":5}, {"label":"Right", "x":12, "y":5}]
11 }
12 }
13}
diff --git a/keyboards/kingly_keys/ropro/keymaps/default/keymap.c b/keyboards/kingly_keys/ropro/keymaps/default/keymap.c
new file mode 100644
index 000000000..1bbe1c262
--- /dev/null
+++ b/keyboards/kingly_keys/ropro/keymaps/default/keymap.c
@@ -0,0 +1,85 @@
1/* Copyright 2019 Garret G. (TheRoyalSweatshirt)
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#include QMK_KEYBOARD_H
18
19enum layer_names {
20 _BASE,
21 _LOWER
22};
23
24#define LOWER MO(_LOWER)
25
26const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
27
28 /* BASE
29 * ,-----------------------------------------------------------------------------------.
30 * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 |
31 * |------+------+------+------+------+-------------+------+------+------+------+------|
32 * | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - |
33 * |+------+------+------+------+-----+------+------+------+------+------+------+------|
34 * RotEn | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
35 * ,------+------+------+------+------+------+------+------+------+------+------+------+------|
36 * | PgUp | Ctrl | A | S | D | F | G | H | J | K | L | ; | " |
37 * |------+------+------+------+------+------+-------------+------+------+------+------+------|
38 * | Lower| Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
39 * |------+------+------+------+------+------+------+------+------+------+------+------+------|
40 * | PgDn | Del | Ctrl | GUI | ALT |Lower |SPACE |SPACE | End | Left | Down | Up |Right |
41 * `------------------------------------------------------------------------------------------'
42 */
43 [_BASE] = LAYOUT(
44 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
45 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS,
46 KC_NO, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
47 KC_PGUP, KC_LCTRL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
48 KC_HOME, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
49 KC_PGDN, KC_DEL, KC_RCTRL, KC_LGUI, KC_LALT, LOWER, KC_SPC, KC_SPC, KC_END, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
50 ),
51
52 /* LOWER
53 * ,-----------------------------------------------------------------------------------.
54 * |TOGRGB| | | |Sat(-)|Hue(-)|Hue(+)|Sat(+)| | |Brght-|Brght+|
55 * |------+------+------+------+------+-------------+------+------+------+------+------|
56 * | ` | | | | | | | | | | | = |
57 * |+------+------+------+------+-----+------+------+------+------+------+------+------|
58 * RotEn | | | Up | | | | | | | [ | ] | \ |
59 * ,------+------+------+------+------+------+------+------+------+------+------+------+------|
60 * | Home | | Left | Down |Right | | | | | | | | |
61 * |------+------+------+------+------+------+-------------+------+------+------+------+------|
62 * | | | | | | | | | | | | | |
63 * |------+------+------+------+------+------+------+------+------+------+------+------+------|
64 * | End | | | | | | | | | | | |PrScn |
65 * `------------------------------------------------------------------------------------------'
66 */
67 [_LOWER] = LAYOUT(
68 RGB_TOG, KC_TRNS, KC_TRNS, KC_TRNS, RGB_SAD, RGB_HUD, RGB_HUI, RGB_SAI, KC_TRNS, KC_TRNS, RGB_VAD, RGB_VAI,
69 KC_GRAVE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_EQUAL,
70 KC_NLCK, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, KC_BSLS,
71 KC_HOME, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
72 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,
73 KC_END, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR
74 )
75};
76
77void encoder_update_user(uint8_t index, bool clockwise) {
78 if (index == 0) {
79 if (clockwise) {
80 tap_code(KC_WH_L);
81 } else {
82 tap_code(KC_WH_R);
83 }
84 }
85}
diff --git a/keyboards/kingly_keys/ropro/keymaps/default/readme.md b/keyboards/kingly_keys/ropro/keymaps/default/readme.md
new file mode 100644
index 000000000..5d7ff3dcc
--- /dev/null
+++ b/keyboards/kingly_keys/ropro/keymaps/default/readme.md
@@ -0,0 +1 @@
# The BASE Layout for the RoPro
diff --git a/keyboards/kingly_keys/ropro/readme.md b/keyboards/kingly_keys/ropro/readme.md
new file mode 100644
index 000000000..0a90c87f8
--- /dev/null
+++ b/keyboards/kingly_keys/ropro/readme.md
@@ -0,0 +1,16 @@
1The RoPro
2===
3
4![The_RoPro](https://i.imgur.com/hfOzBPI.jpg)
5
6A Compact 75-Key + Rotary Encoder Ortholinear keyboard by [Garret G.](https://github.com/TheRoyalSweatshirt) a.k.a. [/u/The_Royal](https://www.reddit.com/user/The_Royal)
7
8Keyboard Maintainer: [Garret G.](https://github.com/TheRoyalSweatshirt)
9Hardware Supported: The_RoPro rev1.0, rev1.5, rev2.0 PCB; Elite-C & Proton-C Compatible.
10Hardware Availability: [Kingly-Keys.xyz](https://kingly-keys.xyz/) - (Through GB or when in stock)
11
12Make example for this keyboard (after setting up your build environment):
13
14 make ropro:default
15
16See 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/kingly_keys/ropro/ropro.c b/keyboards/kingly_keys/ropro/ropro.c
new file mode 100644
index 000000000..ccb1ed0df
--- /dev/null
+++ b/keyboards/kingly_keys/ropro/ropro.c
@@ -0,0 +1 @@
#include "ropro.h"
diff --git a/keyboards/kingly_keys/ropro/ropro.h b/keyboards/kingly_keys/ropro/ropro.h
new file mode 100644
index 000000000..cb635cff3
--- /dev/null
+++ b/keyboards/kingly_keys/ropro/ropro.h
@@ -0,0 +1,39 @@
1/* Copyright 2019 Garret G. (TheRoyalSweatshirt)
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 * Note: Matrix is a little wacky with the rotary encoder click mapping being
17 * on the opposite side of the board. Remember to pay attention to
18 * the 13th column where the lone key mapped for rotary encoder click (K132).
19*/
20
21#pragma once
22
23#include "quantum.h"
24
25#define LAYOUT( \
26 K10, K20, K30, K40, K50, K60, K70, K80, K90, K100, K110, K120, \
27 K11, K21, K31, K41, K51, K61, K71, K81, K91, K101, K111, K121, \
28 K132, K12, K22, K32, K42, K52, K62, K72, K82, K92, K102, K112, K122, \
29 K03, K13, K23, K33, K43, K53, K63, K73, K83, K93, K103, K113, K123, \
30 K04, K14, K24, K34, K44, K54, K64, K74, K84, K94, K104, K114, K124, \
31 K05, K15, K25, K35, K45, K55, K65, K75, K85, K95, K105, K115, K125 \
32) { \
33 { KC_NO, K10, K20, K30, K40, K50, K60, K70, K80, K90, K100, K110, K120, KC_NO }, \
34 { KC_NO, K11, K21, K31, K41, K51, K61, K71, K81, K91, K101, K111, K121, KC_NO }, \
35 { KC_NO, K12, K22, K32, K42, K52, K62, K72, K82, K92, K102, K112, K122, K132 }, \
36 { K03, K13, K23, K33, K43, K53, K63, K73, K83, K93, K103, K113, K123, KC_NO }, \
37 { K04, K14, K24, K34, K44, K54, K64, K74, K84, K94, K104, K114, K124, KC_NO }, \
38 { K05, K15, K25, K35, K45, K55, K65, K75, K85, K95, K105, K115, K125, KC_NO } \
39}
diff --git a/keyboards/kingly_keys/ropro/rules.mk b/keyboards/kingly_keys/ropro/rules.mk
new file mode 100644
index 000000000..0819dbafa
--- /dev/null
+++ b/keyboards/kingly_keys/ropro/rules.mk
@@ -0,0 +1,33 @@
1# MCU name
2MCU = atmega32u4
3
4
5# Bootloader selection
6# Teensy halfkay
7# Pro Micro caterina
8# Atmel DFU atmel-dfu
9# LUFA DFU lufa-dfu
10# QMK DFU qmk-dfu
11# ATmega32A bootloadHID
12# ATmega328P USBasp
13BOOTLOADER = caterina
14
15
16# Build Options
17# change yes to no to disable
18#
19BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
20MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
21EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
22CONSOLE_ENABLE = no # Console for debug(+400)
23COMMAND_ENABLE = no # Commands for debug and configuration
24SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
25NKRO_ENABLE = yes # USB Nkey Rollover
26BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
27MIDI_ENABLE = no # MIDI controls
28UNICODE_ENABLE = no # Unicode
29BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
30AUDIO_ENABLE = no # Audio output on port C6
31ENCODER_ENABLE = yes
32RGBLIGHT_ENABLE = yes
33LAYOUTS_HAS_RGB = yes
diff --git a/keyboards/kingly_keys/smd_milk/2_milk.c b/keyboards/kingly_keys/smd_milk/2_milk.c
new file mode 100644
index 000000000..95fa50e02
--- /dev/null
+++ b/keyboards/kingly_keys/smd_milk/2_milk.c
@@ -0,0 +1,16 @@
1/* Copyright 2019 Sebastian Williams
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 "smd_milk.h"
diff --git a/keyboards/kingly_keys/smd_milk/2_milk.h b/keyboards/kingly_keys/smd_milk/2_milk.h
new file mode 100644
index 000000000..8f294817f
--- /dev/null
+++ b/keyboards/kingly_keys/smd_milk/2_milk.h
@@ -0,0 +1,26 @@
1/* Copyright 2019 Sebastian Williams
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#define LAYOUT( \
21 K00, \
22 K01 \
23) { \
24 { K00 }, \
25 { K01 } \
26}
diff --git a/keyboards/kingly_keys/smd_milk/config.h b/keyboards/kingly_keys/smd_milk/config.h
new file mode 100644
index 000000000..6e16d373d
--- /dev/null
+++ b/keyboards/kingly_keys/smd_milk/config.h
@@ -0,0 +1,56 @@
1/* Copyright 2019 Sebastian Williams
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#include "config_common.h"
18
19/* USB Device descriptor parameter */
20#define VENDOR_ID 0xFEED
21#define PRODUCT_ID 0xB195
22#define DEVICE_VER 0x0001
23#define MANUFACTURER Kingly-Keys
24#define PRODUCT SMD-2% Milk
25#define DESCRIPTION The SMD Ed. of the Milk themed 2% Keyboard by rionlion100
26
27/* key matrix size */
28#define MATRIX_ROWS 2
29#define MATRIX_COLS 1
30
31/* key matrix pins */
32#define MATRIX_ROW_PINS { C5, D2 }
33#define MATRIX_COL_PINS { D3 }
34#define UNUSED_PINS
35
36/* COL2ROW or ROW2COL */
37#define DIODE_DIRECTION ROW2COL
38
39/* Set 0 if debouncing isn't needed */
40#define DEBOUNCE 5
41#define FORCE_NKRO
42
43/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
44#define LOCKING_SUPPORT_ENABLE
45
46/* Locking resynchronize hack */
47#define LOCKING_RESYNC_ENABLE
48
49/* ws2812 RGB LED */
50#define RGB_DI_PIN B3
51#define RGBLED_NUM 4 // Number of LEDs
52
53#define RGBLIGHT_ANIMATIONS
54#define RGBLIGHT_HUE_STEP 6
55#define RGBLIGHT_SAT_STEP 4
56#define RGBLIGHT_VAL_STEP 10 \ No newline at end of file
diff --git a/keyboards/kingly_keys/smd_milk/info.json b/keyboards/kingly_keys/smd_milk/info.json
new file mode 100644
index 000000000..8d9dbab99
--- /dev/null
+++ b/keyboards/kingly_keys/smd_milk/info.json
@@ -0,0 +1,15 @@
1{
2 "keyboard_name": "smd_milk",
3 "keyboard_folder": "kinlgy_keys/smd_milk",
4 "url": "",
5 "maintainer": "TheRoyalSweatshirt",
6 "width": 1,
7 "height": 2,
8 "layouts": {
9 "LAYOUT": {
10 "key_count": 2,
11 "layout": [ {"x": 0, "y": 0 }, {"x": 0, "y": 1 }]
12 }
13 }
14}
15
diff --git a/keyboards/kingly_keys/smd_milk/keymaps/default/keymap.c b/keyboards/kingly_keys/smd_milk/keymaps/default/keymap.c
new file mode 100644
index 000000000..22fb9cad6
--- /dev/null
+++ b/keyboards/kingly_keys/smd_milk/keymaps/default/keymap.c
@@ -0,0 +1,8 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4 [0] = LAYOUT(
5 KC_HOME,
6 KC_END
7 )
8};
diff --git a/keyboards/kingly_keys/smd_milk/readme.md b/keyboards/kingly_keys/smd_milk/readme.md
new file mode 100644
index 000000000..98823d54a
--- /dev/null
+++ b/keyboards/kingly_keys/smd_milk/readme.md
@@ -0,0 +1,21 @@
1# 2% Milk
2
3![SMD_MILK](https://i.imgur.com/oAeKSGF.jpg)
4
5An SMD Version of the 2% Meme board themed around a milk carton and love
6
7Keyboard Maintainer: [Garret G.](https://github.com/TheRoyalSweatshirt) a.k.a. [/u/The_Royal](https://www.reddit.com/user/The_Royal)
8Hardware Availability: Through GB
9
10Make example for this keyboard (after setting up your build environment):
11
12 make kingly_keys/smd_milk:default
13
14See 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).
15
16### Credits
17+ Original Concept by rionlion100
18+ Case design by Soft
19+ Original 2% Milk PCB by PyroL
20+ new SMD PCB by The_Royal
21+ Name by jetpacktuxedo
diff --git a/keyboards/kingly_keys/smd_milk/rules.mk b/keyboards/kingly_keys/smd_milk/rules.mk
new file mode 100644
index 000000000..815f4866c
--- /dev/null
+++ b/keyboards/kingly_keys/smd_milk/rules.mk
@@ -0,0 +1,26 @@
1# MCU name
2MCU = atmega32u2
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# comment out to disable the options.
16#
17BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
18MOUSEKEY_ENABLE = no # Mouse keys(+4700)
19EXTRAKEY_ENABLE = no # Audio control and System control(+450)
20CONSOLE_ENABLE = yes # Console for debug(+400)
21COMMAND_ENABLE = yes # Commands for debug and configuration
22SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
23NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
24BACKLIGHT_ENABLE = no # Custom backlighting code is used, so this should not be enabled
25AUDIO_ENABLE = no # This can be enabled if a speaker is connected to the expansion port. Not compatible with RGBLIGHT below
26RGBLIGHT_ENABLE = yes # This can be enabled if a ws2812 strip is connected to the expansion port.
diff --git a/keyboards/kingly_keys/smd_milk/smd_milk.c b/keyboards/kingly_keys/smd_milk/smd_milk.c
new file mode 100644
index 000000000..95fa50e02
--- /dev/null
+++ b/keyboards/kingly_keys/smd_milk/smd_milk.c
@@ -0,0 +1,16 @@
1/* Copyright 2019 Sebastian Williams
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 "smd_milk.h"
diff --git a/keyboards/kingly_keys/smd_milk/smd_milk.h b/keyboards/kingly_keys/smd_milk/smd_milk.h
new file mode 100644
index 000000000..8f294817f
--- /dev/null
+++ b/keyboards/kingly_keys/smd_milk/smd_milk.h
@@ -0,0 +1,26 @@
1/* Copyright 2019 Sebastian Williams
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#define LAYOUT( \
21 K00, \
22 K01 \
23) { \
24 { K00 }, \
25 { K01 } \
26}
diff --git a/keyboards/kingly_keys/soap/README.md b/keyboards/kingly_keys/soap/README.md
new file mode 100644
index 000000000..0e32244d2
--- /dev/null
+++ b/keyboards/kingly_keys/soap/README.md
@@ -0,0 +1,16 @@
1SOAP
2===
3
4![SOAP](https://i.imgur.com/6h6O4QP.png)
5
6A Sanitary, "SOAP" Themed, Macro Pad by [Garret G.](https://github.com/TheRoyalSweatshirt) a.k.a. [/u/The_Royal](https://www.reddit.com/user/The_Royal)
7
8Keyboard Maintainer: [Garret G.](https://github.com/TheRoyalSweatshirt) a.k.a. [/u/The_Royal](https://www.reddit.com/user/The_Royal/) of Reddit.
9Hardware Supported: SOAP rev1.0, rev2.0 PCB
10Hardware Availability: [Kingly-Keys.xyz](https://kingly-keys.xyz/) - (Through GB)
11
12Make example for this keyboard (after setting up your build environment):
13
14 make kingly_keys/soap:default
15
16See 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/kingly_keys/soap/config.h b/keyboards/kingly_keys/soap/config.h
new file mode 100644
index 000000000..2ffbaacc7
--- /dev/null
+++ b/keyboards/kingly_keys/soap/config.h
@@ -0,0 +1,54 @@
1/* Copyright 2019 Garret G. (TheRoyalSweatshirt)
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/>.#pragma once
15 */
16
17#include "config_common.h"
18
19/* USB Device descriptor parameter */
20#define VENDOR_ID 0xFEED
21#define PRODUCT_ID 0x0003
22#define DEVICE_VER 0x0004
23#define MANUFACTURER Kingly-Keys
24#define PRODUCT SOAP
25#define DESCRIPTION A Sanitary "Soap" Themed Macropad with Rotary Encoder
26
27 /* key matrix size */
28#define MATRIX_ROWS 2
29#define MATRIX_COLS 4
30
31#define ENCODERS_PAD_A { D6 }
32#define ENCODERS_PAD_B { D7 }
33
34 /* key matrix pins */
35#define MATRIX_ROW_PINS { C7, C6 }
36#define MATRIX_COL_PINS { F4, F1, F0, D5 }
37#define UNUSED_PINS
38
39 /* COL2ROW or ROW2COL */
40#define DIODE_DIRECTION COL2ROW
41
42 /* Set 0 if debouncing isn't needed */
43#define DEBOUNCE 5
44
45 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
46#define LOCKING_SUPPORT_ENABLE
47
48 /* Locking resynchronize hack */
49#define LOCKING_RESYNC_ENABLE
50
51/* ws2812 RGB LED --- DIN Pin Routed to VIA on main PCB marked "RGB" */
52#define RGB_DI_PIN B6
53#define RGBLIGHT_ANIMATIONS
54#define RGBLED_NUM 3
diff --git a/keyboards/kingly_keys/soap/info.json b/keyboards/kingly_keys/soap/info.json
new file mode 100644
index 000000000..257391eea
--- /dev/null
+++ b/keyboards/kingly_keys/soap/info.json
@@ -0,0 +1,13 @@
1{
2 "keyboard_name": "soap",
3 "url": "https://github.com/TheRoyalSweatshirt/SOAP",
4 "maintainer": "[TheRoyalSweatshirt](https://github.com/TheRoyalSweatshirt)",
5 "width": 4,
6 "height": 2,
7 "layouts": {
8 "LAYOUT": {
9 "key_count": 8,
10 "layout": [{"label":"K00", "x":0, "y":0}, {"label":"K01", "x":1, "y":0}, {"label":"K02", "x":2, "y":0}, {"label":"K03", "x":4, "y":0}, {"label":"K10", "x":0, "y":1}, {"label":"K11", "x":1, "y":1}, {"label":"K12", "x":2, "y":1}, {"label":"K13", "x":4, "y":1}]
11 }
12 }
13}
diff --git a/keyboards/kingly_keys/soap/keymaps/default/keymap.c b/keyboards/kingly_keys/soap/keymaps/default/keymap.c
new file mode 100644
index 000000000..03966e42b
--- /dev/null
+++ b/keyboards/kingly_keys/soap/keymaps/default/keymap.c
@@ -0,0 +1,62 @@
1/* Copyright 2019 Garret G. (TheRoyalSweatshirt)
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#include QMK_KEYBOARD_H
18
19#define BASE 0
20#define FN 1
21#define RGB RGB_MOD
22#define XXX KC_NO
23#define KC_TR KC_TRANSPARENT
24const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
25
26 /* BASE
27 * ,----------------------------------------.
28 * | DEL | UP | ENTER | | RGB |
29 * |-------+-------+-------+-------+--------|
30 * | LEFT | DOWN | RIGHT | | FN |
31 * `----------------------------------------'
32 */
33 [BASE] = LAYOUT(
34 KC_DEL, KC_UP, KC_ENT, RGB,
35 KC_LEFT, KC_DOWN, KC_RIGHT, MO(1)
36 ),
37
38 /* FN
39 * ,----------------------------------------.
40 * | HU+ | Br+ | Sat+ | | |
41 * |-------+-------+-------+-------+--------|
42 * | HU- | Br- | Sat- | | |
43 * `----------------------------------------'
44 */
45 [FN] = LAYOUT(
46 RGB_HUI, RGB_VAI, RGB_SAI, KC_TR,
47 RGB_HUD, RGB_VAD, RGB_SAD, KC_TR
48 )
49};
50
51 /* Rotary Encoder Settings: */
52 /* - Current Value = Horizontal Scrolling */
53
54void encoder_update_user(uint8_t index, bool clockwise) {
55 if (index == 0) {
56 if (clockwise) {
57 tap_code(KC_WH_L);
58 } else {
59 tap_code(KC_WH_R);
60 }
61 }
62}
diff --git a/keyboards/kingly_keys/soap/rules.mk b/keyboards/kingly_keys/soap/rules.mk
new file mode 100644
index 000000000..7e98ab6eb
--- /dev/null
+++ b/keyboards/kingly_keys/soap/rules.mk
@@ -0,0 +1,32 @@
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
15# Build Options
16# change yes to no to disable
17#
18BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
19MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
20EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
21CONSOLE_ENABLE = no # Console for debug(+400)
22COMMAND_ENABLE = no # Commands for debug and configuration
23SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
24NKRO_ENABLE = yes # USB Nkey Rollover
25BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
26MIDI_ENABLE = no # MIDI controls
27UNICODE_ENABLE = no # Unicode
28BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
29AUDIO_ENABLE = no # Audio output on port C6
30ENCODER_ENABLE = yes
31RGBLIGHT_ENABLE = yes
32LAYOUTS_HAS_RGB = yes
diff --git a/keyboards/kingly_keys/soap/soap.c b/keyboards/kingly_keys/soap/soap.c
new file mode 100644
index 000000000..a467c54b7
--- /dev/null
+++ b/keyboards/kingly_keys/soap/soap.c
@@ -0,0 +1 @@
#include "soap.h"
diff --git a/keyboards/kingly_keys/soap/soap.h b/keyboards/kingly_keys/soap/soap.h
new file mode 100644
index 000000000..8d5eba3ad
--- /dev/null
+++ b/keyboards/kingly_keys/soap/soap.h
@@ -0,0 +1,32 @@
1/* Copyright 2019 Garret G. (TheRoyalSweatshirt)
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 * Note: Matrix is a little wacky with the rotary encoder click mapping being
17 * on the opposite side of the board. Remember to pay attention to
18 * the 13th column where the lone key mapped for rotary encoder click (K132).
19*/
20
21#pragma once
22
23#include "quantum.h"
24
25
26#define LAYOUT( \
27 K00, K01, K02, K03, \
28 K10, K11, K12, K13 \
29) { \
30 { K00, K01, K02, K03 }, \
31 { K10, K11, K12, K13 } \
32}