aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/romac/config.h40
-rw-r--r--keyboards/romac/info.json13
-rw-r--r--keyboards/romac/keymaps/default/keymap.c37
-rw-r--r--keyboards/romac/readme.md16
-rw-r--r--keyboards/romac/romac.c1
-rw-r--r--keyboards/romac/romac.h16
-rw-r--r--keyboards/romac/rules.mk57
7 files changed, 180 insertions, 0 deletions
diff --git a/keyboards/romac/config.h b/keyboards/romac/config.h
new file mode 100644
index 000000000..b92785fd5
--- /dev/null
+++ b/keyboards/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 DEBOUNCING_DELAY 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/romac/info.json b/keyboards/romac/info.json
new file mode 100644
index 000000000..305785991
--- /dev/null
+++ b/keyboards/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/romac/keymaps/default/keymap.c b/keyboards/romac/keymaps/default/keymap.c
new file mode 100644
index 000000000..35636f36b
--- /dev/null
+++ b/keyboards/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(_FN1), KC_0, KC_ENT \
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_DOT \
36 )
37};
diff --git a/keyboards/romac/readme.md b/keyboards/romac/readme.md
new file mode 100644
index 000000000..98ed21502
--- /dev/null
+++ b/keyboards/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/romac/romac.c b/keyboards/romac/romac.c
new file mode 100644
index 000000000..24f4c1633
--- /dev/null
+++ b/keyboards/romac/romac.c
@@ -0,0 +1 @@
#include "romac.h"
diff --git a/keyboards/romac/romac.h b/keyboards/romac/romac.h
new file mode 100644
index 000000000..e6fb9694d
--- /dev/null
+++ b/keyboards/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/romac/rules.mk b/keyboards/romac/rules.mk
new file mode 100644
index 000000000..b500f1b88
--- /dev/null
+++ b/keyboards/romac/rules.mk
@@ -0,0 +1,57 @@
1# MCU name
2MCU = atmega32u4
3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Interrupt driven control endpoint task(+60)
37OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38
39
40# Boot Section Size in *bytes*
41OPT_DEFS += -DBOOTLOADER_SIZE=4096
42
43
44# Build Options
45# comment out to disable the options.
46#
47BOOTMAGIC_ENABLE = full # Virtual DIP switch configuration(+1000)
48MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
49EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
50CONSOLE_ENABLE = no # Console for debug(+400)
51COMMAND_ENABLE = no # Commands for debug and configuration
52SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
53NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
54BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
55AUDIO_ENABLE = no
56RGBLIGHT_ENABLE = no
57