aboutsummaryrefslogtreecommitdiff
path: root/keyboards/kingly_keys/romac_plus
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/kingly_keys/romac_plus')
-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
7 files changed, 182 insertions, 0 deletions
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