forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Keyboard] Add royal directory and add 2 keyboard releases (qmk#8877)
* add royal project folder and 2 released keyboards * fix iso keymap clarification * Apply suggestions from code review * Update keyboards/the_royal/schwann/schwann.h * Update keyboards/the_royal/liminal/liminal.h * Update keyboards/the_royal/schwann/keymaps/default/keymap.c * Apply suggestions from code review new * Update keymap.c * Update keymap.c * Apply suggestions from code review * Update rules.mk * add rules.mk to schwann default * Apply suggestions from code review * add rules.mk to shwann default
- Loading branch information
1 parent
a1d8d4f
commit 653fbd0
Showing
20 changed files
with
929 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#pragma once | ||
|
||
#include "config_common.h" | ||
|
||
/* USB Device descriptor parameter */ | ||
#define VENDOR_ID 0x4B4B | ||
#define PRODUCT_ID 0x0002 | ||
#define DEVICE_VER 0x0001 | ||
#define MANUFACTURER TheRoyalSweatshirt | ||
#define PRODUCT Liminal | ||
#define DESCRIPTION "A 50% keyboard with focused around spectacular keycap compatibility." | ||
|
||
/* key matrix size */ | ||
#define MATRIX_ROWS 4 | ||
#define MATRIX_COLS 14 | ||
|
||
#define MATRIX_ROW_PINS { C6, B6, B7, C7 } | ||
#define MATRIX_COL_PINS { D6, C4, D3, D2, D1, D0, C2, B0, B1, B2, B3, B4, D5, C5 } | ||
#define UNUSED_PINS | ||
|
||
/* COL2ROW or ROW2COL */ | ||
#define DIODE_DIRECTION COL2ROW | ||
|
||
/* Set 0 if debouncing isn't needed */ | ||
#define DEBOUNCE 5 | ||
|
||
/* 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 | ||
|
||
/* ws2812 RGB LED */ | ||
#define RGB_DI_PIN D4 | ||
#define RGBLED_NUM 1 // Number of LEDs | ||
|
||
#define RGBLIGHT_HUE_STEP 6 | ||
#define RGBLIGHT_SAT_STEP 4 | ||
#define RGBLIGHT_VAL_STEP 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"keyboard_name": "liminal", | ||
"url": "", | ||
"maintainer": "TheRoyalSweatshirt", | ||
"width": 15, | ||
"height": 4, | ||
"layouts": { | ||
"LAYOUT_base_kit_all": { | ||
"key_count": 52, | ||
"layout": [ | ||
{"label":"k01", "x":0, "y":0, "w":1}, | ||
{"label":"k02", "x":1, "y":0, "w":1.5}, | ||
{"label":"k03", "x":2.5, "y":0, "w":1}, | ||
{"label":"k04", "x":3.5, "y":0, "w":1}, | ||
{"label":"k05", "x":4.5, "y":0, "w":1}, | ||
{"label":"k06", "x":5.5, "y":0, "w":1}, | ||
{"label":"k07", "x":6.5, "y":0, "w":1}, | ||
{"label":"k08", "x":7.5, "y":0, "w":1}, | ||
{"label":"k09", "x":8.5, "y":0, "w":1}, | ||
{"label":"k010", "x":9.5, "y":0, "w":1}, | ||
{"label":"k011", "x":10.5, "y":0, "w":1}, | ||
{"label":"k012", "x":11.5, "y":0, "w":1}, | ||
{"label":"k013", "x":12.5, "y":0, "w":1}, | ||
{"label":"k014", "x":13.5, "y":0, "w":1.5}, | ||
{"label":"k11", "x":0, "y":1, "w":1}, | ||
{"label":"k12", "x":1, "y":1, "w":1.75}, | ||
{"label":"k13", "x":2.75, "y":1, "w":1}, | ||
{"label":"k14", "x":3.75, "y":1, "w":1}, | ||
{"label":"k15", "x":4.75, "y":1, "w":1}, | ||
{"label":"k16", "x":5.75, "y":1, "w":1}, | ||
{"label":"k17", "x":6.75, "y":1, "w":1}, | ||
{"label":"k18", "x":7.75, "y":1, "w":1}, | ||
{"label":"k19", "x":8.75, "y":1, "w":1}, | ||
{"label":"k110", "x":9.75, "y":1, "w":1}, | ||
{"label":"k111", "x":10.75, "y":1, "w":1}, | ||
{"label":"k112", "x":11.75, "y":1, "w":1}, | ||
{"label":"k113", "x":12.75, "y":1, "w":1}, | ||
{"label":"k114", "x":13.75, "y":1, "w":1.25}, | ||
{"label":"k21", "x":0, "y":2, "w":1}, | ||
{"label":"k22", "x":1, "y":2, "w":1.25}, | ||
{"label":"k23", "x":2.25, "y":2, "w":1}, | ||
{"label":"k24", "x":3.25, "y":2, "w":1}, | ||
{"label":"k25", "x":4.25, "y":2, "w":1}, | ||
{"label":"k26", "x":5.25, "y":2, "w":1}, | ||
{"label":"k27", "x":6.25, "y":2, "w":1}, | ||
{"label":"k28", "x":7.25, "y":2, "w":1}, | ||
{"label":"k29", "x":8.25, "y":2, "w":1}, | ||
{"label":"k210", "x":9.25, "y":2, "w":1}, | ||
{"label":"k211", "x":10.25, "y":2, "w":1}, | ||
{"label":"k212", "x":11.25, "y":2, "w":1}, | ||
{"label":"k213", "x":12.25, "y":2, "w":1}, | ||
{"label":"k214", "x":13.25, "y":2, "w":1.75}, | ||
{"label":"k31", "x":0, "y":3, "w":1}, | ||
{"label":"k32", "x":1, "y":3, "w":1.5}, | ||
{"label":"k33", "x":2.5, "y":3, "w":1.25}, | ||
{"label":"k34", "x":3.75, "y":3, "w":1.5}, | ||
{"label":"k35", "x":5.25, "y":3, "w":2}, | ||
{"label":"k38", "x":7.25, "y":3, "w":2.25}, | ||
{"label":"k310", "x":9.5, "y":3, "w":1.5}, | ||
{"label":"k311", "x":11, "y":3, "w":1.25}, | ||
{"label":"k313", "x":12.25, "y":3, "w":1.25}, | ||
{"label":"k314", "x":13.5, "y":3, "w":1.5} | ||
] | ||
} | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#pragma once | ||
|
||
|
||
#define PERMISSIVE_HOLD | ||
|
||
#define TAPPING_TERM_PER_KEY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
#include QMK_KEYBOARD_H | ||
|
||
enum layer_names { | ||
_QWERTY, | ||
_LOWER, | ||
_RAISE, | ||
_OTHER | ||
}; | ||
|
||
|
||
//Tap Dance Declarations | ||
enum { | ||
TD_RST, | ||
TD_DBQT | ||
}; | ||
|
||
void dance_rst_reset (qk_tap_dance_state_t *state, void *user_data) { | ||
if (state->count >= 2) { | ||
reset_keyboard(); | ||
reset_tap_dance(state); | ||
} | ||
} | ||
|
||
//All tap dance functions would go here. Only showing this one. | ||
qk_tap_dance_action_t tap_dance_actions[] = { | ||
[TD_RST] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, NULL, dance_rst_reset), | ||
[TD_DBQT] = ACTION_TAP_DANCE_DOUBLE (KC_QUOTE, KC_DQT) | ||
}; | ||
|
||
enum custom_keycodes { | ||
M_PAR = SAFE_RANGE, | ||
M_BKT | ||
}; | ||
|
||
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
switch (keycode) { | ||
case M_PAR: | ||
if (record->event.pressed) { | ||
SEND_STRING("()" SS_TAP(X_LEFT)); | ||
} | ||
break; | ||
case M_BKT: | ||
if (record->event.pressed) { | ||
SEND_STRING("[]" SS_TAP(X_LEFT)); | ||
} | ||
break; | ||
} | ||
return true; | ||
|
||
}; | ||
|
||
#define OTHER MO(_OTHER) | ||
#define LOWER MO(_LOWER) | ||
#define RAISE MO(_RAISE) | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
/* Default layer | ||
* ┌─────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬──────┐ | ||
* │ Esc │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ - │ BsPc │ | ||
* ├─────┼────┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴──────┤ | ||
* │PgUp │Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ Enter │ | ||
* ├─────┼─────┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬────────┤ | ||
* │PgDn │LShift │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Other │ | ||
* ├─────┼────┬──┴─┬──┴─┬──┴────┴────┴────┴────┴────┴───┬┴────┴┬───┴─┬──────┤ | ||
* │ END │Del │Gui │Alt │ Right KC = 7u/2.25u │Raise │Menu │ Lower│ | ||
* └─────┴────┴────┴────┴───────────────────────────────┴──────┴─────┴──────┘ | ||
*/ | ||
[_QWERTY] = LAYOUT_base_kit_all( | ||
KC_ESC, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINUS, KC_BSPC, | ||
KC_PGUP, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOTE, KC_ENT, | ||
KC_PGDN, KC_LSFT, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, OTHER, | ||
KC_END, KC_DEL, KC_LGUI, KC_LALT, LOWER, KC_SPACE, KC_CAPS, RAISE, KC_RGUI, LOWER | ||
), | ||
|
||
/* LOWER layer | ||
* ┌─────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬──────┐ | ||
* │ ` │ │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ _ │ │ | ||
* ├─────┼────┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴──────┤ | ||
* │ ~ │ │ ! │ @ │ # │ $ │ % │ ^ │ & │ * │(..)│[..]│ ' and " │ | ||
* ├─────┼─────┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬────────┤ | ||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │ | ||
* ├─────┼────┬──┴─┬──┴─┬──┴────┴────┴────┴────┴────┴───┬┴────┴┬───┴─┬──────┤ | ||
* │ │ │ │ │ │ │ │ │ | ||
* └─────┴────┴────┴────┴───────────────────────────────┴──────┴─────┴──────┘ | ||
*/ | ||
[_LOWER] = LAYOUT_base_kit_all( | ||
KC_GRAVE, _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_UNDS, _______, | ||
KC_TILD, _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, M_PAR, M_BKT, _______, TD(TD_DBQT), | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
), | ||
|
||
/* RAISE layer | ||
* ┌─────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬──────┐ | ||
* │ \ │ │ │ │ │ │ │ │ │ │ │ │ = │ │ | ||
* ├─────┼────┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴──────┤ | ||
* │ | │CAPS │ │ │ │ │ │ │ │ │ │ │ + │ | ||
* ├─────┼─────┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬────────┤ | ||
* │ │ │ │ │ │ │ │ │ │ │ [ │ ] │ │ | ||
* ├─────┼────┬──┴─┬──┴─┬──┴────┴────┴────┴────┴────┴───┬┴────┴┬───┴─┬──────┤ | ||
* │ │ │ │ │ │ │ │ │ | ||
* └─────┴────┴────┴────┴───────────────────────────────┴──────┴─────┴──────┘ | ||
*/ | ||
[_RAISE] = LAYOUT_base_kit_all( | ||
KC_BSLS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_EQUAL, _______, | ||
KC_PIPE, KC_CAPS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PLUS, | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LBRC, KC_RBRC, _______, | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
), | ||
|
||
/* OTHER layer | ||
* ┌─────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬──────┐ | ||
* │HOME │ │ │ │ │ │ │ │ │ │ │ UP │ │ │ | ||
* ├─────┼────┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴──────┤ | ||
* │END │ │ │ │ │ │ │ │ │ │LEFT│RGHT│ │ | ||
* ├─────┼─────┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬──┴─┬────────┤ | ||
* │ │ │ │ │ │ │ │ │ │ │DOWN│ │ │ | ||
* ├─────┼────┬──┴─┬──┴─┬──┴────┴────┴────┴────┴────┴───┬┴────┴┬───┴─┬──────┤ | ||
* │RESET│ │ │ │ │ │ │ │ | ||
* └─────┴────┴────┴────┴───────────────────────────────┴──────┴─────┴──────┘ | ||
*/ | ||
[_OTHER] = LAYOUT_base_kit_all( | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______, _______, | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_RIGHT, _______, _______, | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DOWN, _______, _______, | ||
TD(TD_RST), _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
) | ||
}; | ||
|
||
uint16_t get_tapping_term(uint16_t keycode) { | ||
switch (keycode) { | ||
case LT(_LOWER, KC_SPACE): | ||
return 160; | ||
case TD(TD_DBQT): | ||
return 230; | ||
default: | ||
#ifndef TAPPING_TERM | ||
return 200; | ||
#else | ||
return TAPPING_TERM; | ||
#endif | ||
} | ||
} | ||
|
||
layer_state_t layer_state_set_user(layer_state_t state) { | ||
switch (get_highest_layer(state)) { | ||
case _LOWER: | ||
rgblight_setrgb (RGB_CORAL); | ||
break; | ||
case _RAISE: | ||
rgblight_setrgb (RGB_RED); | ||
break; | ||
case _OTHER: | ||
rgblight_setrgb (RGB_BLUE); | ||
break; | ||
default: // for any other layers, or the default layer | ||
rgblight_setrgb (RGB_GREEN); | ||
break; | ||
} | ||
return state; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TAP_DANCE_ENABLE = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#pragma once | ||
|
||
|
||
#define PERMISSIVE_HOLD | ||
|
||
#define TAPPING_TERM_PER_KEY |
Oops, something went wrong.