summaryrefslogtreecommitdiff
path: root/keyboards/thevankeyboards/roadkit
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/thevankeyboards/roadkit')
-rw-r--r--keyboards/thevankeyboards/roadkit/config.h31
-rw-r--r--keyboards/thevankeyboards/roadkit/info.json1
-rw-r--r--keyboards/thevankeyboards/roadkit/keymaps/flipphone/keymap.c46
-rw-r--r--keyboards/thevankeyboards/roadkit/keymaps/khord/keymap.c18
-rw-r--r--keyboards/thevankeyboards/roadkit/keymaps/mjt/keymap.c30
-rw-r--r--keyboards/thevankeyboards/roadkit/rules.mk2
6 files changed, 48 insertions, 80 deletions
diff --git a/keyboards/thevankeyboards/roadkit/config.h b/keyboards/thevankeyboards/roadkit/config.h
index 6fd9df7b52..bc55fbb322 100644
--- a/keyboards/thevankeyboards/roadkit/config.h
+++ b/keyboards/thevankeyboards/roadkit/config.h
@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-#include "config_common.h"
/* key matrix size */
#define MATRIX_ROWS 4
@@ -38,46 +37,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
-
-// #define BACKLIGHT_PIN B7
-// #define BACKLIGHT_BREATHING
-// #define BACKLIGHT_LEVELS 3
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5
-/* define if matrix has ghost (lacks anti-ghosting diodes) */
-//#define MATRIX_HAS_GHOST
-
-/* number of backlight levels */
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
/*
- * Force NKRO
- *
- * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
- * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
- * makefile for this to work.)
- *
- * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
- * until the next keyboard reset.
- *
- * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
- * fully operational during normal computer usage.
- *
- * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
- * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
- * bootmagic, NKRO mode will always be enabled until it is toggled again during a
- * power-up.
- *
- */
-//#define FORCE_NKRO
-
-/*
* Feature disable options
* These options are also useful to firmware size reduction.
*/
diff --git a/keyboards/thevankeyboards/roadkit/info.json b/keyboards/thevankeyboards/roadkit/info.json
index 0b00063bec..280e34ecb8 100644
--- a/keyboards/thevankeyboards/roadkit/info.json
+++ b/keyboards/thevankeyboards/roadkit/info.json
@@ -8,6 +8,7 @@
"pid": "0x8846",
"device_version": "0.0.1"
},
+ "community_layouts": ["numpad_4x4", "ortho_4x4"],
"layouts": {
"LAYOUT_numpad_4x4": {
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0, "h":2}, {"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":3, "y":2, "h":2}, {"x":0, "y":3, "w":2}, {"x":2, "y":3}]
diff --git a/keyboards/thevankeyboards/roadkit/keymaps/flipphone/keymap.c b/keyboards/thevankeyboards/roadkit/keymaps/flipphone/keymap.c
index 8629ccbd9c..45d58fee1d 100644
--- a/keyboards/thevankeyboards/roadkit/keymaps/flipphone/keymap.c
+++ b/keyboards/thevankeyboards/roadkit/keymaps/flipphone/keymap.c
@@ -42,34 +42,34 @@ enum roadkit_keycodes {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_NUMPAD] = LAYOUT_numpad_4x4( /* Numpad */
- KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS, \
- KC_KP_4, KC_KP_5, KC_KP_6, \
- KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ENTER, \
- LT(_ADJUST, KC_KP_0), KC_KP_DOT \
+ KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS,
+ KC_KP_4, KC_KP_5, KC_KP_6,
+ KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ENTER,
+ LT(_ADJUST, KC_KP_0), KC_KP_DOT
),
[_FPH] = LAYOUT_numpad_4x4( /* Quiet T9 */
- FPH_7, FPH_8, FPH_9, KC_KP_PLUS, \
- FPH_4, FPH_5, FPH_6, \
- FPH_1, FPH_2, FPH_3, SFT_T(KC_KP_ENTER), \
- LT(_ADJUST, KC_SPACE), KC_KP_DOT \
+ FPH_7, FPH_8, FPH_9, KC_KP_PLUS,
+ FPH_4, FPH_5, FPH_6,
+ FPH_1, FPH_2, FPH_3, SFT_T(KC_KP_ENTER),
+ LT(_ADJUST, KC_SPACE), KC_KP_DOT
),
[_FPHNOISY] = LAYOUT_numpad_4x4( /* Noisy T9 */
- FPH_7, FPH_8, FPH_9, KC_KP_PLUS, \
- FPH_4, FPH_5, FPH_6, \
- FPH_1, FPH_2, FPH_3, SFT_T(KC_KP_ENTER), \
- LT(_ADJUST, KC_SPACE), KC_KP_DOT \
+ FPH_7, FPH_8, FPH_9, KC_KP_PLUS,
+ FPH_4, FPH_5, FPH_6,
+ FPH_1, FPH_2, FPH_3, SFT_T(KC_KP_ENTER),
+ LT(_ADJUST, KC_SPACE), KC_KP_DOT
),
[_ADJUST] = LAYOUT_numpad_4x4( /* Adjustments */
- KC_NUM, TG(_FPHNOISY), TG(_FPH), TG(_NUMPAD), \
- KC_BSPC, BACKLIT, KC_DEL, \
- MACSLEEP, _______, _______, _______, \
- _______, MO(_DYN) \
+ KC_NUM, TG(_FPHNOISY), TG(_FPH), TG(_NUMPAD),
+ KC_BSPC, BACKLIT, KC_DEL,
+ MACSLEEP, _______, _______, _______,
+ _______, MO(_DYN)
),
[_DYN] = LAYOUT_numpad_4x4( /* DYNAMIC MACRO */
- DM_REC1, DM_REC2, _______, DM_RSTP, \
- _______, _______, _______, \
- DM_PLY1, DM_PLY2, _______, _______, \
- _______, _______ \
+ DM_REC1, DM_REC2, _______, DM_RSTP,
+ _______, _______, _______,
+ DM_PLY1, DM_PLY2, _______, _______,
+ _______, _______
),
};
@@ -133,9 +133,9 @@ uint16_t get_render_keycode(uint16_t keycode, uint16_t tap_qty){ // maybe replac
return kc[tap_qty % 4];}
break;
case FPH_1:
- {uint16_t kc[] = {KC_COMM, LSFT(KC_SLSH), KC_EXLM, KC_AT, KC_MINS, KC_UNDS, KC_PLUS, \
- KC_SCLN, LSFT(KC_SCLN), KC_QUOT, LSFT(KC_QUOT), KC_TILD, \
- KC_PIPE, KC_BSLS, KC_HASH, LSFT(KC_4), KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, \
+ {uint16_t kc[] = {KC_COMM, LSFT(KC_SLSH), KC_EXLM, KC_AT, KC_MINS, KC_UNDS, KC_PLUS,
+ KC_SCLN, LSFT(KC_SCLN), KC_QUOT, LSFT(KC_QUOT), KC_TILD,
+ KC_PIPE, KC_BSLS, KC_HASH, LSFT(KC_4), KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR,
KC_LBRC, KC_RBRC, KC_LCBR, KC_RCBR, LSFT(KC_COMM), LSFT(KC_DOT)};
return kc[tap_qty % 26];}
}
diff --git a/keyboards/thevankeyboards/roadkit/keymaps/khord/keymap.c b/keyboards/thevankeyboards/roadkit/keymaps/khord/keymap.c
index 867ca07c7c..eb7bb3ab76 100644
--- a/keyboards/thevankeyboards/roadkit/keymaps/khord/keymap.c
+++ b/keyboards/thevankeyboards/roadkit/keymaps/khord/keymap.c
@@ -29,9 +29,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* | L1 | L2 | | | Layer hold
*/
[_NP] = LAYOUT_ortho_4x4( /* Numpad */
- KC_P7, KC_P8, KC_P9, KC_BSPC, \
- KC_P4, KC_P5, KC_P6, KC_TAB, \
- KC_P1, KC_P2, KC_P3, KC_PENT, \
+ KC_P7, KC_P8, KC_P9, KC_BSPC,
+ KC_P4, KC_P5, KC_P6, KC_TAB,
+ KC_P1, KC_P2, KC_P3, KC_PENT,
LT(1, KC_P0), LT(2, KC_SPC), KC_PDOT, KC_PSLS
),
@@ -47,9 +47,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* `-----`-----`-----`-----'
*/
[_L1] = LAYOUT_ortho_4x4( /* LAYER 1 */
- QK_BOOT, XXXXXXX, XXXXXXX, KC_DEL, \
- KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, \
- STR192, STR255, XXXXXXX, XXXXXXX, \
+ QK_BOOT, XXXXXXX, XXXXXXX, KC_DEL,
+ KC_LEFT, KC_DOWN, KC_UP, KC_RGHT,
+ STR192, STR255, XXXXXXX, XXXXXXX,
_______, BL_STEP, _______, XXXXXXX
),
@@ -65,9 +65,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* `-----`-----`-----`-----'
*/
[_L2] = LAYOUT_ortho_4x4( /* LAYER 2 */
- XXXXXXX, XXXXXXX, ADMIN, SMSPC1, \
- XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
- XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, \
+ XXXXXXX, XXXXXXX, ADMIN, SMSPC1,
+ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
+ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
XXXXXXX, _______, XXXXXXX, XXXXXXX
)
};
diff --git a/keyboards/thevankeyboards/roadkit/keymaps/mjt/keymap.c b/keyboards/thevankeyboards/roadkit/keymaps/mjt/keymap.c
index 8b8719a315..db84674050 100644
--- a/keyboards/thevankeyboards/roadkit/keymaps/mjt/keymap.c
+++ b/keyboards/thevankeyboards/roadkit/keymaps/mjt/keymap.c
@@ -40,33 +40,33 @@ enum minivan_keycodes {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_NUMPAD] = LAYOUT_numpad_4x4( /* Numpad */
- KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS, \
- KC_KP_4, KC_KP_5, KC_KP_6, \
- KC_KP_1, KC_KP_2, KC_KP_3, NAVIGATION, \
+ KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS,
+ KC_KP_4, KC_KP_5, KC_KP_6,
+ KC_KP_1, KC_KP_2, KC_KP_3, NAVIGATION,
EXCEL, KC_KP_DOT
),
[_EXCEL] = LAYOUT_numpad_4x4( /* Excel related */
- KC_KP_SLASH, KC_KP_ASTERISK, KC_MINS, KC_TAB, \
- KC_QUOT, KC_KP_EQUAL, PARENS, \
- KC_DQT, BRACKETS, BRACES, _______, \
+ KC_KP_SLASH, KC_KP_ASTERISK, KC_MINS, KC_TAB,
+ KC_QUOT, KC_KP_EQUAL, PARENS,
+ KC_DQT, BRACKETS, BRACES, _______,
_______, MO(_DYN)
),
[_NAVIGATION] = LAYOUT_numpad_4x4( /* Navigation */
- KC_HOME, _______, KC_PGUP, KC_TAB, \
- KC_END, KC_UP, KC_PGDN, \
- KC_LEFT, KC_DOWN, KC_RIGHT, _______, \
+ KC_HOME, _______, KC_PGUP, KC_TAB,
+ KC_END, KC_UP, KC_PGDN,
+ KC_LEFT, KC_DOWN, KC_RIGHT, _______,
_______, MO(_DYN)
),
[_ADJUST] = LAYOUT_numpad_4x4( /* Adjustments */
- KC_NUM, MACSLEEP, BACKLIT, _______, \
- KC_BSPC, _______, KC_DEL, \
- EXCEL_LOCK, NUMPAD_LOCK, NAVIGATION_LOCK, _______, \
+ KC_NUM, MACSLEEP, BACKLIT, _______,
+ KC_BSPC, _______, KC_DEL,
+ EXCEL_LOCK, NUMPAD_LOCK, NAVIGATION_LOCK, _______,
_______, _______
),
[_DYN] = LAYOUT_numpad_4x4( /* DYNAMIC MACRO */
- DM_REC1, DM_REC2, _______, _______, \
- _______, _______, _______, \
- DM_PLY1, DM_PLY2, _______, _______, \
+ DM_REC1, DM_REC2, _______, _______,
+ _______, _______, _______,
+ DM_PLY1, DM_PLY2, _______, _______,
_______, _______
),
};
diff --git a/keyboards/thevankeyboards/roadkit/rules.mk b/keyboards/thevankeyboards/roadkit/rules.mk
index 9cc0fe8fa5..4615493faf 100644
--- a/keyboards/thevankeyboards/roadkit/rules.mk
+++ b/keyboards/thevankeyboards/roadkit/rules.mk
@@ -15,5 +15,3 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
NKRO_ENABLE = yes # Enable N-Key Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
AUDIO_ENABLE = no # Audio output
-
-LAYOUTS = numpad_4x4 ortho_4x4