Browse Source

Adding LAYOUT_all and default keymaps for dygma raise

LAYOUT_all is just a copy of the iso layout, but as per docs, this is
recommended.
pull/13929/head
Islam Sharabash 2 years ago
parent
commit
ffa7aeb77c
7 changed files with 492 additions and 5 deletions
  1. +2
    -2
      keyboards/dygma/raise/config.h
  2. +372
    -1
      keyboards/dygma/raise/info.json
  3. +0
    -1
      keyboards/dygma/raise/keymaps/ansi/keymap.c
  4. +108
    -0
      keyboards/dygma/raise/keymaps/default/keymap.c
  5. +5
    -0
      keyboards/dygma/raise/keymaps/default/readme.md
  6. +0
    -1
      keyboards/dygma/raise/keymaps/iso/keymap.c
  7. +5
    -0
      keyboards/dygma/raise/keymaps/iso/readme.md

+ 2
- 2
keyboards/dygma/raise/config.h View File

@ -6,8 +6,8 @@
#define VENDOR_ID 0x1209
#define PRODUCT_ID 0x2201
#define DEVICE_VER 0x0001
#define MANUFACTURER dygma
#define PRODUCT raise
#define MANUFACTURER Dygma
#define PRODUCT Raise
/* key matrix size */
// rows are doubled for split


+ 372
- 1
keyboards/dygma/raise/info.json View File

@ -5,6 +5,377 @@
"width": 16.75,
"height": 6,
"layouts": {
"LAYOUT_all": {
"layout": [
{
"label": "esc",
"x": 0,
"y": 0
},
{
"label": "1",
"x": 1,
"y": 0
},
{
"label": "2",
"x": 2,
"y": 0
},
{
"label": "3",
"x": 3,
"y": 0
},
{
"label": "4",
"x": 4,
"y": 0
},
{
"label": "5",
"x": 5,
"y": 0
},
{
"label": "6",
"x": 6,
"y": 0
},
{
"label": "7",
"x": 8.75,
"y": 0
},
{
"label": "8",
"x": 9.75,
"y": 0
},
{
"label": "9",
"x": 10.75,
"y": 0
},
{
"label": "0",
"x": 11.75,
"y": 0
},
{
"label": "-",
"x": 12.75,
"y": 0
},
{
"label": "+",
"x": 13.75,
"y": 0
},
{
"label": "backspace",
"w": 2,
"x": 14.75,
"y": 0
},
{
"label": "tab",
"w": 1.5,
"x": 0,
"y": 1
},
{
"label": "Q",
"x": 1.5,
"y": 1
},
{
"label": "W",
"x": 2.5,
"y": 1
},
{
"label": "E",
"x": 3.5,
"y": 1
},
{
"label": "R",
"x": 4.5,
"y": 1
},
{
"label": "T",
"x": 5.5,
"y": 1
},
{
"label": "Y",
"x": 8.25,
"y": 1
},
{
"label": "U",
"x": 9.25,
"y": 1
},
{
"label": "I",
"x": 10.25,
"y": 1
},
{
"label": "O",
"x": 11.25,
"y": 1
},
{
"label": "P",
"x": 12.25,
"y": 1
},
{
"label": "[",
"x": 13.25,
"y": 1
},
{
"label": "]",
"x": 14.25,
"y": 1
},
{
"label": "enter",
"h": 2,
"w": 1.25,
"x": 15.5,
"y": 1
},
{
"label": "caps",
"w": 1.75,
"x": 0,
"y": 2
},
{
"label": "A",
"x": 1.75,
"y": 2
},
{
"label": "S",
"x": 2.75,
"y": 2
},
{
"label": "D",
"x": 3.75,
"y": 2
},
{
"label": "F",
"x": 4.75,
"y": 2
},
{
"label": "G",
"x": 5.75,
"y": 2
},
{
"label": "H",
"x": 8.5,
"y": 2
},
{
"label": "J",
"x": 9.5,
"y": 2
},
{
"label": "K",
"x": 10.5,
"y": 2
},
{
"label": "L",
"x": 11.5,
"y": 2
},
{
"label": ";",
"x": 12.5,
"y": 2
},
{
"label": "'",
"x": 13.5,
"y": 2
},
{
"label": "#",
"x": 14.5,
"y": 2
},
{
"label": "shift",
"w": 1.25,
"x": 0,
"y": 3
},
{
"label": "\\",
"x": 1.25,
"y": 3
},
{
"label": "Z",
"x": 2.25,
"y": 3
},
{
"label": "X",
"x": 3.25,
"y": 3
},
{
"label": "C",
"x": 4.25,
"y": 3
},
{
"label": "V",
"x": 5.25,
"y": 3
},
{
"label": "B",
"x": 6.25,
"y": 3
},
{
"label": "N",
"x": 9,
"y": 3
},
{
"label": "M",
"x": 10,
"y": 3
},
{
"label": ",",
"x": 11,
"y": 3
},
{
"label": ".",
"x": 12,
"y": 3
},
{
"label": "/",
"x": 13,
"y": 3
},
{
"label": "shift",
"w": 2.75,
"x": 14,
"y": 3
},
{
"label": "ctrl",
"w": 1.25,
"x": 0,
"y": 4
},
{
"label": "os",
"w": 1.25,
"x": 1.25,
"y": 4
},
{
"label": "alt",
"w": 1.25,
"x": 2.5,
"y": 4
},
{
"label": "...",
"w": 1.5,
"x": 3.75,
"y": 4
},
{
"label": "\u2014",
"w": 1.5,
"x": 5.25,
"y": 4
},
{
"label": "\u2014",
"w": 1.5,
"x": 8.75,
"y": 4
},
{
"label": "...",
"w": 1.5,
"x": 10.25,
"y": 4
},
{
"label": "alt",
"w": 1.25,
"x": 11.75,
"y": 4
},
{
"label": "fn",
"w": 1.25,
"x": 13,
"y": 4
},
{
"label": "os",
"w": 1.25,
"x": 14.25,
"y": 4
},
{
"label": "ctrl",
"w": 1.25,
"x": 15.5,
"y": 4
},
{
"label": "..",
"w": 1.5,
"x": 3.75,
"y": 5
},
{
"label": ".",
"w": 1.5,
"x": 5.25,
"y": 5
},
{
"label": ".",
"w": 1.5,
"x": 8.75,
"y": 5
},
{
"label": "..",
"w": 1.5,
"x": 10.25,
"y": 5
}
]
},
"LAYOUT_ansi": {
"layout": [
{
@ -511,6 +882,7 @@
"y": 1
},
{
"label": "enter",
"h": 2,
"w": 1.25,
"x": 15.5,
@ -741,6 +1113,5 @@
}
]
}
}
}

+ 0
- 1
keyboards/dygma/raise/keymaps/ansi/keymap.c View File

@ -21,7 +21,6 @@ enum {
};
// TODO(ibash) should have different keymaps for ansi vs iso
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[QWERTY] = LAYOUT_ansi(
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC,


+ 108
- 0
keyboards/dygma/raise/keymaps/default/keymap.c View File

@ -0,0 +1,108 @@
/* Copyright (C) 2021 Islam Sharabash
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
enum {
QWERTY,
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[QWERTY] = LAYOUT_all(
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_ENT,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS,
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
KC_LCTL, RGB_MOD, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL,
KC_BSPC, KC_ENT, KC_NO, KC_DEL
)
};
/* template for new layouts:
LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______
)
*/
// LHK = Left Hand Keys
#define LHK 33
#define LEDS_PER_HAND 72
// taken from kaleidoscope "led_map"
// Note that LEDS_PER_HAND isn't _actually_ the number of leds, but instead it's
// a split point
#define LPH LEDS_PER_HAND
const uint8_t led_map[DRIVER_LED_TOTAL] = {
// left side - 33 keys
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 68, 69,
// right side - 36 keys
0 + LPH, 1 + LPH, 2 + LPH, 3 + LPH, 4 + LPH, 5 + LPH, 6 + LPH, 15 + LPH, 8 + LPH, 9 + LPH, 10 + LPH, 11 + LPH, 12 + LPH, 13 + LPH, 14 + LPH, 7 + LPH, 16 + LPH, 17 + LPH, 18 + LPH, 19 + LPH,
20 + LPH, 21 + LPH, 22 + LPH, 23 + LPH, 24 + LPH, 25 + LPH, 26 + LPH, 27 + LPH, 28 + LPH, 29 + LPH, 30 + LPH, 31 + LPH, 32 + LPH, 33 + LPH, 68 + LPH, 69 + LPH,
// left under glow - 30 keys
34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
// right underglow - 32 keys
34 + LPH, 35 + LPH, 36 + LPH, 37 + LPH, 38 + LPH, 39 + LPH, 40 + LPH, 41 + LPH, 42 + LPH, 43 + LPH, 44 + LPH, 45 + LPH, 46 + LPH, 47 + LPH, 48 + LPH, 49 + LPH, 50 + LPH, 51 + LPH,
52 + LPH, 53 + LPH, 54 + LPH, 55 + LPH, 56 + LPH, 57 + LPH, 58 + LPH, 59 + LPH, 60 + LPH, 61 + LPH, 62 + LPH, 63 + LPH, 64 + LPH, 65 + LPH, 0xff
};
// taken from "key_led_map" and reformatted
// ISO & ANSI (ANSI has no LED at 20, but this key can never be pressed so we can have just one map).
led_config_t g_led_config = { {
// left hand
{ 0 , 1 , 2 , 3 , 4 , 5 , 6 , NO_LED } ,
{ 7 , 8 , 9 , 10 , 11 , 12 , NO_LED , NO_LED } ,
{ 13 , 14 , 15 , 16 , 17 , 18 , NO_LED , NO_LED } ,
{ 19 , 20 , 21 , 22 , 23 , 24 , 25 , NO_LED } ,
{ 26 , 27 , 28 , 29 , 30 , NO_LED , 31 , 32 } ,
// right hand
{ NO_LED , 6 + LHK , 5 + LHK , 4 + LHK , 3 + LHK , 2 + LHK , 1 + LHK , 0 + LHK } ,
{ 14 + LHK , 13 + LHK , 12 + LHK , 11 + LHK , 10 + LHK , 9 + LHK , 8 + LHK , 7 + LHK } ,
{ NO_LED , 21 + LHK , 20 + LHK , 19 + LHK , 18 + LHK , 17 + LHK , 16 + LHK , 15 + LHK } ,
{ NO_LED , NO_LED , 27 + LHK , 26 + LHK , 25 + LHK , 24 + LHK , 23 + LHK , 22 + LHK } ,
{ 35 + LHK , 34 + LHK , 33 + LHK , 32 + LHK , 31 + LHK , 30 + LHK , 29 + LHK , 28 + LHK }
}, {
// generated from the svg image of the keyboard, see create-led-config.js
{82, 3}, {88, 3}, {94, 3}, {100, 3}, {106, 3}, {112, 3}, {118, 3}, {84, 10}, {91, 10}, {97, 10}, {103, 10}, {109, 10},
{115, 10}, {84, 16}, {92, 16}, {98, 16}, {104, 16}, {110, 16}, {116, 16}, {82, 22}, {88, 22}, {94, 22}, {100, 22},
{106, 22}, {112, 22}, {118, 22}, {83, 28}, {90, 28}, {98, 28}, {106, 28}, {116, 28}, {111, 34}, {118, 34}, {168, 3},
{159, 3}, {153, 3}, {147, 3}, {141, 3}, {135, 3}, {129, 3}, {170, 13}, {162, 10}, {156, 10}, {150, 10}, {144, 10},
{139, 10}, {133, 10}, {127, 10}, {164, 16}, {158, 16}, {152, 16}, {146, 16}, {140, 16}, {134, 16}, {128, 16}, {166, 22},
{154, 22}, {148, 22}, {142, 22}, {136, 22}, {130, 22}, {170, 28}, {163, 28}, {156, 28}, {149, 28}, {140, 28}, {131, 28},
{136, 34}, {128, 34}, {78, 13}, {78, 6}, {80, 0}, {87, 0}, {95, 0}, {103, 0}, {111, 0}, {119, 0}, {122, 3}, {121, 9},
{120, 15}, {122, 21}, {123, 27}, {123, 33}, {120, 38}, {116, 42}, {114, 48}, {112, 55}, {109, 61}, {103, 64}, {96, 64},
{88, 64}, {81, 63}, {76, 60}, {75, 52}, {75, 46}, {74, 38}, {74, 32}, {75, 27}, {77, 21}, {175, 10}, {175, 4}, {172, 0},
{164, 0}, {157, 0}, {149, 0}, {142, 0}, {134, 0}, {127, 0}, {123, 3}, {122, 8}, {122, 15}, {124, 21}, {124, 27}, {124, 33},
{126, 38}, {131, 42}, {134, 48}, {135, 55}, {137, 61}, {143, 63}, {150, 63}, {158, 63}, {166, 63}, {173, 63}, {177, 59},
{178, 49}, {179, 40}, {179, 31}, {177, 25}, {175, 20}, {175, 15}, {123, 54}
}, {
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4
}
};

+ 5
- 0
keyboards/dygma/raise/keymaps/default/readme.md View File

@ -0,0 +1,5 @@
# The default keymap for Dygma's Raise
```sh
make dygma/raise:default
```

+ 0
- 1
keyboards/dygma/raise/keymaps/iso/keymap.c View File

@ -21,7 +21,6 @@ enum {
};
// TODO(ibash) should have different keymaps for ansi vs iso
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[QWERTY] = LAYOUT_iso(
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC,


+ 5
- 0
keyboards/dygma/raise/keymaps/iso/readme.md View File

@ -0,0 +1,5 @@
# The iso keymap for Dygma's Raise
```sh
make dygma/raise:iso
```

Loading…
Cancel
Save