summaryrefslogtreecommitdiffstats
path: root/keyboards/keebio/dilly/dilly.h
blob: c7cc4aa725a4f70c37e145eff886a8b0ba9e8de9 (plain)
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
31
#ifndef DILLY_H
#define DILLY_H

#include "quantum.h"

#define LAYOUT_ortho_3x10( \
    A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, \
    B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, \
    C1, C2, C3, C4, C5, C6, C7, C8, C9, C10 \
) { \
    { A1, A2, A3, A4, A5 }, \
    { B1, B2, B3, B4, B5 }, \
    { C1, C2, C3, C4, C5 }, \
    { A10, A9, A8, A7, A6 }, \
    { B10, B9, B8, B7, B6 }, \
    { C10, C9, C8, C7, C6 } \
}

// Used to create a keymap using only KC_ prefixed keys
#define LAYOUT_kc( \
    A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, \
    B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, \
    C1, C2, C3, C4, C5, C6, C7, C8, C9, C10 \
) \
    LAYOUT_ortho_3x10( \
        KC_##A1, KC_##A2, KC_##A3, KC_##A4, KC_##A5, KC_##A6, KC_##A7, KC_##A8, KC_##A9, KC_##A10, \
        KC_##B1, KC_##B2, KC_##B3, KC_##B4, KC_##B5, KC_##B6, KC_##B7, KC_##B8, KC_##B9, KC_##B10, \
        KC_##C1, KC_##C2, KC_##C3, KC_##C4, KC_##C5, KC_##C6, KC_##C7, KC_##C8, KC_##C9, KC_##C10 \
    )

#endif