Skip to content

Commit 3fbb408

Browse files
committed
Move more stuff for minisub into info json
1 parent b373b46 commit 3fbb408

File tree

3 files changed

+46
-77
lines changed

3 files changed

+46
-77
lines changed

firmware/minisub/config.h

+1-51
Original file line numberDiff line numberDiff line change
@@ -1,51 +1 @@
1-
/*
2-
Copyright 2022 Regan Palmer
3-
4-
This program is free software: you can redistribute it and/or modify
5-
it under the terms of the GNU General Public License as published by
6-
the Free Software Foundation, either version 2 of the License, or
7-
(at your option) any later version.
8-
9-
This program is distributed in the hope that it will be useful,
10-
but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
GNU General Public License for more details.
13-
14-
You should have received a copy of the GNU General Public License
15-
along with this program. If not, see <http://www.gnu.org/licenses/>.
16-
*/
17-
18-
#pragma once
19-
20-
/* USB Device descriptor parameter */
21-
#define VENDOR_ID 0x726B
22-
#define PRODUCT_ID 0x6D73
23-
#define DEVICE_VER 0x0001
24-
#define MANUFACTURER Rainkeebs
25-
#define PRODUCT Minisub
26-
27-
/* key matrix size */
28-
#define MATRIX_ROWS 4
29-
#define MATRIX_COLS 12
30-
31-
/* Matrix */
32-
33-
#define MATRIX_ROW_PINS { D7, B5, F7, D4 }
34-
#define MATRIX_COL_PINS { D2, D3, D5, D6, B4, B6, F6, F5, F4, F1, F0, B3 }
35-
#define UNUSED_PINS
36-
37-
/* COL2ROW or ROW2COL */
38-
#define DIODE_DIRECTION COL2ROW
39-
40-
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
41-
#define DEBOUNCE 5
42-
43-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
44-
#define LOCKING_SUPPORT_ENABLE
45-
/* Locking resynchronize hack */
46-
#define LOCKING_RESYNC_ENABLE
47-
48-
/* rgb */
49-
#define RGB_DI_PIN D0
50-
#define RGBLED_NUM 20
51-
1+
// This file intentionally left blank.

firmware/minisub/info.json

+44-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,49 @@
11
{
2-
"keyboard_name": "tv44",
3-
"url": "",
2+
"keyboard_name": "Minisub",
3+
"manufacturer": "Rainkeebs",
44
"maintainer": "qmk",
5+
"processor": "atmega32u4",
6+
"bootloader": "atmel-dfu",
7+
"usb": {
8+
"vid": "0x726B",
9+
"pid": "0x6D73",
10+
"device_version": "0.0.1"
11+
},
12+
"diode_direction": "COL2ROW",
13+
"matrix_pins": {
14+
"cols": [ "D2", "D3", "D5", "D6", "B4", "B6", "F6", "F5", "F4", "F1", "F0", "B3" ],
15+
"rows": [ "D7", "B5", "F7", "D4"]
16+
},
17+
"features": {
18+
"audio": false,
19+
"backlight": false,
20+
"bluetooth": false,
21+
"bootmagic": true,
22+
"command": true,
23+
"console": false,
24+
"extrakey": true,
25+
"midi": false,
26+
"mousekey": true,
27+
"nkro": true,
28+
"rgblight": true
29+
},
30+
"qmk": {
31+
"locking": {
32+
"enabled": true,
33+
"resync": true
34+
}
35+
},
36+
"rgblight": {
37+
"animations": {
38+
"breathing": true
39+
},
40+
"max_brightness": 255,
41+
"sleep": true,
42+
"led_count": 20
43+
},
44+
"ws2812": {
45+
"pin": "D0"
46+
},
547
"width": 12.75,
648
"height": 4,
749
"layouts": {

firmware/minisub/rules.mk

+1-24
Original file line numberDiff line numberDiff line change
@@ -1,24 +1 @@
1-
# MCU name
2-
MCU = atmega32u4
3-
4-
# Bootloader selection
5-
BOOTLOADER = atmel-dfu
6-
7-
# Build Options
8-
# change yes to no to disable
9-
#
10-
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
11-
MOUSEKEY_ENABLE = yes # Mouse keys
12-
EXTRAKEY_ENABLE = yes # Audio control and System control
13-
CONSOLE_ENABLE = no # Console for debug
14-
COMMAND_ENABLE = yes # Commands for debug and configuration
15-
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16-
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17-
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18-
NKRO_ENABLE = yes # USB Nkey Rollover
19-
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
20-
MIDI_ENABLE = no # MIDI controls
21-
UNICODE_ENABLE = no # Unicode
22-
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
23-
AUDIO_ENABLE = no # Audio output on port C6
24-
RGBLIGHT_ENABLE = yes # Enable support for RGB LEDs
1+
# This file intentionally left blank.

0 commit comments

Comments
 (0)