mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
Compare commits
108 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c1442766c | ||
|
|
816f2f9cc2 | ||
|
|
666623d39a | ||
|
|
0eabb01e27 | ||
|
|
b664db3cf3 | ||
|
|
a5ecd4eb87 | ||
|
|
f3f444c1df | ||
|
|
81c51ec51c | ||
|
|
b5a12fa6d3 | ||
|
|
29c82cfb33 | ||
|
|
2cd684f8e0 | ||
|
|
c4d05010cb | ||
|
|
6276f54752 | ||
|
|
8e820cde13 | ||
|
|
572395ac20 | ||
|
|
95c74ae4ae | ||
|
|
3fc710e0b1 | ||
|
|
dd0a35273c | ||
|
|
cf7404630e | ||
|
|
ef872595ae | ||
|
|
eac9ee8d3f | ||
|
|
1d706bd77c | ||
|
|
3e60997edb | ||
|
|
a74846a0db | ||
|
|
038d9118b6 | ||
|
|
be771e5fd2 | ||
|
|
1fbee7c316 | ||
|
|
8b39ae13c7 | ||
|
|
1bb6d8de6f | ||
|
|
a888057453 | ||
|
|
eae7343741 | ||
|
|
c59fb1b477 | ||
|
|
e7cb7bc737 | ||
|
|
1ed48c774e | ||
|
|
54b80ecf9f | ||
|
|
97a73637e0 | ||
|
|
653ecf91c2 | ||
|
|
b7870ae78c | ||
|
|
299008be36 | ||
|
|
723d9af04d | ||
|
|
6edcbdca19 | ||
|
|
2882ee9f55 | ||
|
|
78149505f9 | ||
|
|
7b07ce3fef | ||
|
|
d395c81606 | ||
|
|
be257b6f9f | ||
|
|
d4a8123267 | ||
|
|
e1a7027fe8 | ||
|
|
c5b0366a25 | ||
|
|
217e3a59c4 | ||
|
|
0ab88f5342 | ||
|
|
8dfe37a3a3 | ||
|
|
69eca63a84 | ||
|
|
a5576f9738 | ||
|
|
c833b77646 | ||
|
|
ed446360a4 | ||
|
|
9807225f90 | ||
|
|
9331c22620 | ||
|
|
cc84831cae | ||
|
|
f490777502 | ||
|
|
6e79767f5a | ||
|
|
3bc7f46412 | ||
|
|
8a2d3a8861 | ||
|
|
538194344a | ||
|
|
23765332fa | ||
|
|
163e9b02bf | ||
|
|
90f95de5c9 | ||
|
|
ffc4380b30 | ||
|
|
314ef9df03 | ||
|
|
563be8ca2a | ||
|
|
e527b375e8 | ||
|
|
4e8a218d17 | ||
|
|
57de02c9f2 | ||
|
|
3c4972a53f | ||
|
|
6af387ec6f | ||
|
|
554b73643d | ||
|
|
e941ae3811 | ||
|
|
f75420c209 | ||
|
|
d99806cc27 | ||
|
|
cd8497b9fb | ||
|
|
469b4b21d2 | ||
|
|
926389f3a7 | ||
|
|
52b7ebd6be | ||
|
|
2e50b34c67 | ||
|
|
a18e1305b3 | ||
|
|
0779c34db8 | ||
|
|
9e1d04fea7 | ||
|
|
b44bffe954 | ||
|
|
739925c902 | ||
|
|
45e6bb7add | ||
|
|
7b7689d307 | ||
|
|
aa73411c14 | ||
|
|
b96c18c952 | ||
|
|
225bff226f | ||
|
|
5d7ad69cd8 | ||
|
|
b8ad5f4249 | ||
|
|
63f9e7ee86 | ||
|
|
88dce24375 | ||
|
|
ea2a7c5ea4 | ||
|
|
0ad7833ca4 | ||
|
|
790f94533c | ||
|
|
9089244db7 | ||
|
|
aed8bace97 | ||
|
|
4f5e0dd325 | ||
|
|
6d8d20774f | ||
|
|
2aa38f5bd3 | ||
|
|
75fd6bd269 | ||
|
|
86e6be342c |
443
data/mappings/keyboard_aliases.json
Normal file
443
data/mappings/keyboard_aliases.json
Normal file
@@ -0,0 +1,443 @@
|
|||||||
|
{
|
||||||
|
# Format for each entry:
|
||||||
|
# <alias>: {
|
||||||
|
# target: <keyboard_folder>,
|
||||||
|
# layouts: {
|
||||||
|
# <layout_alias>: <layout_target>
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
#
|
||||||
|
# Both target and layouts are optional.
|
||||||
|
'2_milk': {
|
||||||
|
target: 'spaceman/2_milk'
|
||||||
|
},
|
||||||
|
'aeboards/ext65': {
|
||||||
|
target: 'aeboards/ext65/rev1'
|
||||||
|
},
|
||||||
|
'ai03/equinox': {
|
||||||
|
target: 'ai03/equinox/rev1'
|
||||||
|
},
|
||||||
|
aleth42: {
|
||||||
|
target: 'aleth42/rev1'
|
||||||
|
},
|
||||||
|
alice: {
|
||||||
|
target: 'tgr/alice'
|
||||||
|
},
|
||||||
|
angel17: {
|
||||||
|
target: 'angel17/alpha'
|
||||||
|
},
|
||||||
|
angel64: {
|
||||||
|
target: 'angel64/alpha'
|
||||||
|
},
|
||||||
|
at101_blackheart: {
|
||||||
|
target: 'at101_bh'
|
||||||
|
},
|
||||||
|
'atom47/rev2': {
|
||||||
|
target: 'maartenwut/atom47/rev2'
|
||||||
|
},
|
||||||
|
'atom47/rev3': {
|
||||||
|
target: 'maartenwut/atom47/rev3'
|
||||||
|
},
|
||||||
|
bear_face: {
|
||||||
|
target: 'bear_face/v1'
|
||||||
|
},
|
||||||
|
'bpiphany/pegasushoof': {
|
||||||
|
target: 'bpiphany/pegasushoof/2013'
|
||||||
|
},
|
||||||
|
chavdai40: {
|
||||||
|
target: 'chavdai40/rev1'
|
||||||
|
},
|
||||||
|
'candybar/lefty': {
|
||||||
|
target: 'tkc/candybar/lefty'
|
||||||
|
},
|
||||||
|
'candybar/righty': {
|
||||||
|
target: 'tkc/candybar/righty'
|
||||||
|
},
|
||||||
|
canoe: {
|
||||||
|
target: 'percent/canoe'
|
||||||
|
},
|
||||||
|
'cmm_studio/saka68': {
|
||||||
|
target: 'cmm_studio/saka68/solder'
|
||||||
|
},
|
||||||
|
'crkbd/rev1': {
|
||||||
|
target: 'crkbd/rev1/legacy'
|
||||||
|
},
|
||||||
|
'doro67/multi': {
|
||||||
|
layouts: {
|
||||||
|
LAYOUT_ansi: 'LAYOUT_65_ansi_blocker'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'doro67/regular': {
|
||||||
|
layouts: {
|
||||||
|
LAYOUT: 'LAYOUT_65_ansi_blocker'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'doro67/rgb': {
|
||||||
|
layouts: {
|
||||||
|
LAYOUT: 'LAYOUT_65_ansi_blocker'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
drakon: {
|
||||||
|
target: 'jagdpietr/drakon'
|
||||||
|
},
|
||||||
|
'dztech/dz60rgb': {
|
||||||
|
target: 'dztech/dz60rgb/v1'
|
||||||
|
},
|
||||||
|
'dztech/dz60rgb_ansi': {
|
||||||
|
target: 'dztech/dz60rgb_ansi/v1'
|
||||||
|
},
|
||||||
|
'dztech/dz60rgb_wkl': {
|
||||||
|
target: 'dztech/dz60rgb_wkl/v1'
|
||||||
|
},
|
||||||
|
'dztech/dz65rgb': {
|
||||||
|
target: 'dztech/dz65rgb/v1'
|
||||||
|
},
|
||||||
|
eek: {
|
||||||
|
target: 'eek/silk_down'
|
||||||
|
},
|
||||||
|
ergoinu: {
|
||||||
|
target: 'dm9records/ergoinu'
|
||||||
|
},
|
||||||
|
'exclusive/e85': {
|
||||||
|
target: 'exclusive/e85/hotswap'
|
||||||
|
},
|
||||||
|
gh60: {
|
||||||
|
target: 'gh60/revc'
|
||||||
|
},
|
||||||
|
'handwired/ferris': {
|
||||||
|
target: 'ferris/0_1'
|
||||||
|
},
|
||||||
|
'helix/pico/sc/back': {
|
||||||
|
target: 'helix/pico/sc'
|
||||||
|
},
|
||||||
|
'helix/pico/sc/under': {
|
||||||
|
target: 'helix/pico/sc'
|
||||||
|
},
|
||||||
|
'helix/rev2/back/oled': {
|
||||||
|
target: 'helix/rev2/back'
|
||||||
|
},
|
||||||
|
'helix/rev2/oled': {
|
||||||
|
target: 'helix/rev2'
|
||||||
|
},
|
||||||
|
'helix/rev2/oled/back': {
|
||||||
|
target: 'helix/rev2/back'
|
||||||
|
},
|
||||||
|
'helix/rev2/oled/under': {
|
||||||
|
target: 'helix/rev2/under'
|
||||||
|
},
|
||||||
|
'helix/rev2/sc/back': {
|
||||||
|
target: 'helix/rev2/sc'
|
||||||
|
},
|
||||||
|
'helix/rev2/sc/oled': {
|
||||||
|
target: 'helix/rev2/sc'
|
||||||
|
},
|
||||||
|
'helix/rev2/sc/oledback': {
|
||||||
|
target: 'helix/rev2/sc'
|
||||||
|
},
|
||||||
|
'helix/rev2/sc/oledunder': {
|
||||||
|
target: 'helix/rev2/sc'
|
||||||
|
},
|
||||||
|
'helix/rev2/sc/under': {
|
||||||
|
target: 'helix/rev2/sc'
|
||||||
|
},
|
||||||
|
'helix/rev2/under': {
|
||||||
|
target: 'helix/rev2/sc'
|
||||||
|
},
|
||||||
|
'helix/rev2/under/oled': {
|
||||||
|
target: 'helix/rev2/under'
|
||||||
|
},
|
||||||
|
id80: {
|
||||||
|
target: 'id80/ansi'
|
||||||
|
},
|
||||||
|
idb_60: {
|
||||||
|
target: 'idb/idb_60',
|
||||||
|
layouts: {
|
||||||
|
LAYOUT: 'LAYOUT_all'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
jones: {
|
||||||
|
target: 'jones/v03_1'
|
||||||
|
},
|
||||||
|
katana60: {
|
||||||
|
target: 'rominronin/katana60/rev1'
|
||||||
|
},
|
||||||
|
'kbdfans/kbd67mkiirgb': {
|
||||||
|
target: 'kbdfans/kbd67/mkiirgb',
|
||||||
|
layouts: {
|
||||||
|
LAYOUT: 'LAYOUT_65_ansi_blocker'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'kbdfans/kbd67/mkiirgb': {
|
||||||
|
target: 'kbdfans/kbd67/mkiirgb/v1'
|
||||||
|
},
|
||||||
|
'keebio/dsp40': {
|
||||||
|
target: 'keebio/dsp40/rev1'
|
||||||
|
},
|
||||||
|
'keycapsss/plaid_pad': {
|
||||||
|
target: 'keycapsss/plaid_pad/rev1'
|
||||||
|
},
|
||||||
|
kudox: {
|
||||||
|
target: 'kudox/rev1'
|
||||||
|
},
|
||||||
|
'lfkeyboards/lfk78': {
|
||||||
|
target: 'lfkeyboards/lfk78/revj'
|
||||||
|
},
|
||||||
|
'lfkeyboards/smk65': {
|
||||||
|
target: 'lfkeyboards/smk65/revb'
|
||||||
|
},
|
||||||
|
'maartenwut/atom47/rev2': {
|
||||||
|
target: 'evyd13/atom47/rev2'
|
||||||
|
},
|
||||||
|
'maartenwut/atom47/rev3': {
|
||||||
|
target: 'evyd13/atom47/rev3'
|
||||||
|
},
|
||||||
|
'maartenwut/eon40': {
|
||||||
|
target: 'evyd13/eon40'
|
||||||
|
},
|
||||||
|
'maartenwut/eon65': {
|
||||||
|
target: 'evyd13/eon65'
|
||||||
|
},
|
||||||
|
'maartenwut/eon75': {
|
||||||
|
target: 'evyd13/eon75'
|
||||||
|
},
|
||||||
|
'maartenwut/eon87': {
|
||||||
|
target: 'evyd13/eon87'
|
||||||
|
},
|
||||||
|
'maartenwut/eon95': {
|
||||||
|
target: 'evyd13/eon95'
|
||||||
|
},
|
||||||
|
'maartenwut/gh80_1800': {
|
||||||
|
target: 'evyd13/gh80_1800'
|
||||||
|
},
|
||||||
|
'maartenwut/gh80_3700': {
|
||||||
|
target: 'evyd13/gh80_3700'
|
||||||
|
},
|
||||||
|
'maartenwut/minitomic': {
|
||||||
|
target: 'evyd13/minitomic'
|
||||||
|
},
|
||||||
|
'maartenwut/mx5160': {
|
||||||
|
target: 'evyd13/mx5160'
|
||||||
|
},
|
||||||
|
'maartenwut/nt660': {
|
||||||
|
target: 'evyd13/nt660'
|
||||||
|
},
|
||||||
|
'maartenwut/omrontkl': {
|
||||||
|
target: 'evyd13/omrontkl'
|
||||||
|
},
|
||||||
|
'maartenwut/plain60': {
|
||||||
|
target: 'evyd13/plain60'
|
||||||
|
},
|
||||||
|
'maartenwut/pockettype': {
|
||||||
|
target: 'evyd13/pockettype'
|
||||||
|
},
|
||||||
|
'maartenwut/quackfire': {
|
||||||
|
target: 'evyd13/quackfire'
|
||||||
|
},
|
||||||
|
'maartenwut/solheim68': {
|
||||||
|
target: 'evyd13/solheim68'
|
||||||
|
},
|
||||||
|
'maartenwut/ta65': {
|
||||||
|
target: 'evyd13/ta65'
|
||||||
|
},
|
||||||
|
'maartenwut/wasdat': {
|
||||||
|
target: 'evyd13/wasdat'
|
||||||
|
},
|
||||||
|
'maartenwut/wasdat_code': {
|
||||||
|
target: 'evyd13/wasdat_code'
|
||||||
|
},
|
||||||
|
'maartenwut/wonderland': {
|
||||||
|
target: 'evyd13/wonderland'
|
||||||
|
},
|
||||||
|
'mechlovin/hannah910': {
|
||||||
|
target: 'mechlovin/hannah910/rev1'
|
||||||
|
},
|
||||||
|
'mechlovin/adelais/rgb_led': {
|
||||||
|
target: 'mechlovin/adelais/rgb_led/rev1'
|
||||||
|
},
|
||||||
|
'mechlovin/adelais/standard_led': {
|
||||||
|
target: 'mechlovin/adelais/standard_led/rev2'
|
||||||
|
},
|
||||||
|
'mechlovin/delphine': {
|
||||||
|
target: 'mechlovin/delphine/mono_led'
|
||||||
|
},
|
||||||
|
'mechlovin/hannah60rgb': {
|
||||||
|
target: 'mechlovin/hannah60rgb/rev1'
|
||||||
|
},
|
||||||
|
'melgeek/z70ultra': {
|
||||||
|
target: 'melgeek/z70ultra/rev1'
|
||||||
|
},
|
||||||
|
'mechlovin/hannah65': {
|
||||||
|
target: 'mechlovin/hannah65/rev1'
|
||||||
|
},
|
||||||
|
model01: {
|
||||||
|
target: 'keyboardio/model01'
|
||||||
|
},
|
||||||
|
m0lly: {
|
||||||
|
target: 'tkc/m0lly'
|
||||||
|
},
|
||||||
|
'montsinger/rebound': {
|
||||||
|
target: 'montsinger/rebound/rev1'
|
||||||
|
},
|
||||||
|
nomu30: {
|
||||||
|
target: 'nomu30/rev1'
|
||||||
|
},
|
||||||
|
'noxary/268_2': {
|
||||||
|
layouts: {
|
||||||
|
LAYOUT: 'LAYOUT_65_ansi_blocker'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
oddball: {
|
||||||
|
target: 'oddball/v1'
|
||||||
|
},
|
||||||
|
omnikey_blackheart: {
|
||||||
|
target: 'omnikey_bh'
|
||||||
|
},
|
||||||
|
'pabile/p20': {
|
||||||
|
target: 'pabile/p20/ver1'
|
||||||
|
},
|
||||||
|
'pancake/feather': {
|
||||||
|
target: 'spaceman/pancake/feather'
|
||||||
|
},
|
||||||
|
'pancake/promicro': {
|
||||||
|
target: 'spaceman/pancake/promicro'
|
||||||
|
},
|
||||||
|
'percent/canoe': {
|
||||||
|
layouts: {
|
||||||
|
LAYOUT_iso: 'LAYOUT_65_iso_blocker'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
plaid: {
|
||||||
|
target: 'dm9records/plaid'
|
||||||
|
},
|
||||||
|
plain60: {
|
||||||
|
target: 'maartenwut/plain60'
|
||||||
|
},
|
||||||
|
'ploopyco/trackball': {
|
||||||
|
target: 'ploopyco/trackball/rev1_005'
|
||||||
|
},
|
||||||
|
polilla: {
|
||||||
|
target: 'polilla/rev1'
|
||||||
|
},
|
||||||
|
'preonic/rev1': {
|
||||||
|
layouts: {
|
||||||
|
LAYOUT_preonic_grid: 'LAYOUT_ortho_5x12'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'preonic/rev2': {
|
||||||
|
layouts: {
|
||||||
|
LAYOUT_preonic_grid: 'LAYOUT_ortho_5x12'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'preonic/rev3': {
|
||||||
|
layouts: {
|
||||||
|
LAYOUT_preonic_grid: 'LAYOUT_ortho_5x12'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'primekb/prime_l': {
|
||||||
|
target: 'primekb/prime_l/v1'
|
||||||
|
},
|
||||||
|
'primekb/prime_l_v2': {
|
||||||
|
target: 'primekb/prime_l/v2'
|
||||||
|
},
|
||||||
|
'projectkb/alice': {
|
||||||
|
target: 'projectkb/alice/rev1'
|
||||||
|
},
|
||||||
|
'rama/koyu': {
|
||||||
|
target: 'wilba_tech/rama_works_koyu'
|
||||||
|
},
|
||||||
|
'rama/m6_a': {
|
||||||
|
target: 'wilba_tech/rama_works_m6_a'
|
||||||
|
},
|
||||||
|
'rama/m6_b': {
|
||||||
|
target: 'wilba_tech/rama_works_m6_b'
|
||||||
|
},
|
||||||
|
'rama/m10_b': {
|
||||||
|
target: 'wilba_tech/rama_works_m10_b'
|
||||||
|
},
|
||||||
|
'rama/m60_a': {
|
||||||
|
target: 'wilba_tech/rama_works_m60_a'
|
||||||
|
},
|
||||||
|
'rama/u80_a': {
|
||||||
|
target: 'wilba_tech/rama_works_u80_a'
|
||||||
|
},
|
||||||
|
'ramonimbao/herringbone': {
|
||||||
|
target: 'ramonimbao/herringbone/v1'
|
||||||
|
},
|
||||||
|
'rgbkb/pan': {
|
||||||
|
target: 'rgbkb/pan/rev1/32a'
|
||||||
|
},
|
||||||
|
'rgbkb/pan/rev1': {
|
||||||
|
target: 'rgbkb/pan/rev1/32a'
|
||||||
|
},
|
||||||
|
romac: {
|
||||||
|
target: 'kingly_keys/romac'
|
||||||
|
},
|
||||||
|
ropro: {
|
||||||
|
target: 'kingly_keys/ropro'
|
||||||
|
},
|
||||||
|
satan: {
|
||||||
|
target: 'gh60/satan'
|
||||||
|
},
|
||||||
|
skog: {
|
||||||
|
target: 'percent/skog'
|
||||||
|
},
|
||||||
|
speedo: {
|
||||||
|
target: 'cozykeys/speedo/v2'
|
||||||
|
},
|
||||||
|
stoutgat: {
|
||||||
|
target: 'tkw/stoutgat/v1'
|
||||||
|
},
|
||||||
|
suihankey: {
|
||||||
|
target: 'suihankey/split/alpha'
|
||||||
|
},
|
||||||
|
ta65: {
|
||||||
|
target: 'maartenwut/ta65'
|
||||||
|
},
|
||||||
|
tartan: {
|
||||||
|
target: 'dm9records/tartan'
|
||||||
|
},
|
||||||
|
tkc1800: {
|
||||||
|
target: 'tkc/tkc1800'
|
||||||
|
},
|
||||||
|
'tkw/stoutgat/v2': {
|
||||||
|
target: 'tkw/stoutgat/v2/f411'
|
||||||
|
},
|
||||||
|
underscore33: {
|
||||||
|
target: 'underscore33/rev1'
|
||||||
|
},
|
||||||
|
vinta: {
|
||||||
|
layouts: {
|
||||||
|
LAYOUT_67_ansi: 'LAYOUT_65_ansi_blocker'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
wasdat: {
|
||||||
|
target: 'maartenwut/wasdat'
|
||||||
|
},
|
||||||
|
'westfoxtrot/cypher': {
|
||||||
|
target: 'westfoxtrot/cypher/rev1'
|
||||||
|
},
|
||||||
|
'whale/sk': {
|
||||||
|
target: 'whale/sk/v3'
|
||||||
|
},
|
||||||
|
'xelus/dawn60': {
|
||||||
|
target: 'xelus/dawn60/rev1'
|
||||||
|
},
|
||||||
|
'xelus/valor': {
|
||||||
|
target: 'xelus/valor/rev1'
|
||||||
|
},
|
||||||
|
yd60mq: {
|
||||||
|
target: 'yd60mq/12led'
|
||||||
|
},
|
||||||
|
ymd75: {
|
||||||
|
target: 'ymd75/rev1'
|
||||||
|
},
|
||||||
|
z150_blackheart: {
|
||||||
|
target: 'z150_bh'
|
||||||
|
},
|
||||||
|
zeal60: {
|
||||||
|
target: 'wilba_tech/zeal60'
|
||||||
|
},
|
||||||
|
zeal65: {
|
||||||
|
target: 'wilba_tech/zeal65'
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -131,6 +131,16 @@ Check your environment and report problems only:
|
|||||||
|
|
||||||
qmk doctor -n
|
qmk doctor -n
|
||||||
|
|
||||||
|
## `qmk format-json`
|
||||||
|
|
||||||
|
Formats a JSON file in a (mostly) human-friendly way. Will usually correctly detect the format of the JSON (info.json or keymap.json) but you can override this with `--format` if neccesary.
|
||||||
|
|
||||||
|
**Usage**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk format-json [-f FORMAT] <json_file>
|
||||||
|
```
|
||||||
|
|
||||||
## `qmk info`
|
## `qmk info`
|
||||||
|
|
||||||
Displays information about keyboards and keymaps in QMK. You can use this to get information about a keyboard, show the layouts, display the underlying key matrix, or to pretty-print JSON keymaps.
|
Displays information about keyboards and keymaps in QMK. You can use this to get information about a keyboard, show the layouts, display the underlying key matrix, or to pretty-print JSON keymaps.
|
||||||
@@ -170,7 +180,7 @@ qmk json2c [-o OUTPUT] filename
|
|||||||
## `qmk c2json`
|
## `qmk c2json`
|
||||||
|
|
||||||
Creates a keymap.json from a keymap.c.
|
Creates a keymap.json from a keymap.c.
|
||||||
**Note:** Parsing C source files is not easy, therefore this subcommand may not work your keymap. In some cases not using the C pre-processor helps.
|
**Note:** Parsing C source files is not easy, therefore this subcommand may not work with your keymap. In some cases not using the C pre-processor helps.
|
||||||
|
|
||||||
**Usage**:
|
**Usage**:
|
||||||
|
|
||||||
|
|||||||
@@ -19,12 +19,10 @@ These functions allow you to activate layers in various ways. Note that layers a
|
|||||||
|
|
||||||
### Caveats :id=caveats
|
### Caveats :id=caveats
|
||||||
|
|
||||||
Currently, `LT()` and `MT()` are limited to the [Basic Keycode set](keycodes_basic.md), meaning you can't use keycodes like `LCTL()`, `KC_TILD`, or anything greater than `0xFF`. Specifically, dual function keys like `LT` and `MT` use a 16 bit keycode. 4 bits are used for the function identifier, the next 12 are divided into the parameters. Layer Tap uses 4 bits for the layer (and is why it's limited to layers 0-15, actually), while Mod Tap does the same, 4 bits for the identifier, 4 bits for which mods are used, and all of them use 8 bits for the keycode. Because of this, the keycode used is limited to `0xFF` (0-255), which are the basic keycodes only.
|
Currently, the `layer` argument of `LT()` is limited to layers 0-15, and the `kc` argument to the [Basic Keycode set](keycodes_basic.md), meaning you can't use keycodes like `LCTL()`, `KC_TILD`, or anything greater than `0xFF`. This is because QMK uses 16-bit keycodes, of which 4 bits are used for the function identifier and 4 bits for the layer, leaving only 8 bits for the keycode.
|
||||||
|
|
||||||
Expanding this would be complicated, at best. Moving to a 32-bit keycode would solve a lot of this, but would double the amount of space that the keymap matrix uses. And it could potentially cause issues, too. If you need to apply modifiers to your tapped keycode, [Tap Dance](feature_tap_dance.md#example-5-using-tap-dance-for-advanced-mod-tap-and-layer-tap-keys) can be used to accomplish this.
|
Expanding this would be complicated, at best. Moving to a 32-bit keycode would solve a lot of this, but would double the amount of space that the keymap matrix uses. And it could potentially cause issues, too. If you need to apply modifiers to your tapped keycode, [Tap Dance](feature_tap_dance.md#example-5-using-tap-dance-for-advanced-mod-tap-and-layer-tap-keys) can be used to accomplish this.
|
||||||
|
|
||||||
Additionally, if at least one right-handed modifier is specified in a Mod Tap or Layer Tap, it will cause all modifiers specified to become right-handed, so it is not possible to mix and match the two.
|
|
||||||
|
|
||||||
## Working with Layers :id=working-with-layers
|
## Working with Layers :id=working-with-layers
|
||||||
|
|
||||||
Care must be taken when switching layers, it's possible to lock yourself into a layer with no way to deactivate that layer (without unplugging your keyboard.) We've created some guidelines to help users avoid the most common problems.
|
Care must be taken when switching layers, it's possible to lock yourself into a layer with no way to deactivate that layer (without unplugging your keyboard.) We've created some guidelines to help users avoid the most common problems.
|
||||||
|
|||||||
@@ -281,8 +281,10 @@ You can disable a single effect by defining `DISABLE_[EFFECT_NAME]` in your `con
|
|||||||
|
|
||||||
|Define |Description |
|
|Define |Description |
|
||||||
|-------------------------------------------------------|-----------------------------------------------|
|
|-------------------------------------------------------|-----------------------------------------------|
|
||||||
|
|`#define DISABLE_RGB_MATRIX_SOLID_COLOR` |Disables `RGB_MATRIX_SOLID_COLOR` |
|
||||||
|`#define DISABLE_RGB_MATRIX_ALPHAS_MODS` |Disables `RGB_MATRIX_ALPHAS_MODS` |
|
|`#define DISABLE_RGB_MATRIX_ALPHAS_MODS` |Disables `RGB_MATRIX_ALPHAS_MODS` |
|
||||||
|`#define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN` |Disables `RGB_MATRIX_GRADIENT_UP_DOWN` |
|
|`#define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN` |Disables `RGB_MATRIX_GRADIENT_UP_DOWN` |
|
||||||
|
|`#define DISABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT` |Disables `MATRIX_GRADIENT_LEFT_RIGHT` |
|
||||||
|`#define DISABLE_RGB_MATRIX_BREATHING` |Disables `RGB_MATRIX_BREATHING` |
|
|`#define DISABLE_RGB_MATRIX_BREATHING` |Disables `RGB_MATRIX_BREATHING` |
|
||||||
|`#define DISABLE_RGB_MATRIX_BAND_SAT` |Disables `RGB_MATRIX_BAND_SAT` |
|
|`#define DISABLE_RGB_MATRIX_BAND_SAT` |Disables `RGB_MATRIX_BAND_SAT` |
|
||||||
|`#define DISABLE_RGB_MATRIX_BAND_VAL` |Disables `RGB_MATRIX_BAND_VAL` |
|
|`#define DISABLE_RGB_MATRIX_BAND_VAL` |Disables `RGB_MATRIX_BAND_VAL` |
|
||||||
@@ -293,20 +295,20 @@ You can disable a single effect by defining `DISABLE_[EFFECT_NAME]` in your `con
|
|||||||
|`#define DISABLE_RGB_MATRIX_CYCLE_ALL` |Disables `RGB_MATRIX_CYCLE_ALL` |
|
|`#define DISABLE_RGB_MATRIX_CYCLE_ALL` |Disables `RGB_MATRIX_CYCLE_ALL` |
|
||||||
|`#define DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT` |Disables `RGB_MATRIX_CYCLE_LEFT_RIGHT` |
|
|`#define DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT` |Disables `RGB_MATRIX_CYCLE_LEFT_RIGHT` |
|
||||||
|`#define DISABLE_RGB_MATRIX_CYCLE_UP_DOWN` |Disables `RGB_MATRIX_CYCLE_UP_DOWN` |
|
|`#define DISABLE_RGB_MATRIX_CYCLE_UP_DOWN` |Disables `RGB_MATRIX_CYCLE_UP_DOWN` |
|
||||||
|
|`#define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON` |Disables `RGB_MATRIX_RAINBOW_MOVING_CHEVRON` |
|
||||||
|`#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN` |Disables `RGB_MATRIX_CYCLE_OUT_IN` |
|
|`#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN` |Disables `RGB_MATRIX_CYCLE_OUT_IN` |
|
||||||
|`#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL` |Disables `RGB_MATRIX_CYCLE_OUT_IN_DUAL` |
|
|`#define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL` |Disables `RGB_MATRIX_CYCLE_OUT_IN_DUAL` |
|
||||||
|`#define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON` |Disables `RGB_MATRIX_RAINBOW_MOVING_CHEVRON` |
|
|
||||||
|`#define DISABLE_RGB_MATRIX_DUAL_BEACON` |Disables `RGB_MATRIX_DUAL_BEACON` |
|
|
||||||
|`#define DISABLE_RGB_MATRIX_CYCLE_PINWHEEL` |Disables `RGB_MATRIX_CYCLE_PINWHEEL` |
|
|`#define DISABLE_RGB_MATRIX_CYCLE_PINWHEEL` |Disables `RGB_MATRIX_CYCLE_PINWHEEL` |
|
||||||
|`#define DISABLE_RGB_MATRIX_CYCLE_SPIRAL` |Disables `RGB_MATRIX_CYCLE_SPIRAL` |
|
|`#define DISABLE_RGB_MATRIX_CYCLE_SPIRAL` |Disables `RGB_MATRIX_CYCLE_SPIRAL` |
|
||||||
|
|`#define DISABLE_RGB_MATRIX_DUAL_BEACON` |Disables `RGB_MATRIX_DUAL_BEACON` |
|
||||||
|`#define DISABLE_RGB_MATRIX_RAINBOW_BEACON` |Disables `RGB_MATRIX_RAINBOW_BEACON` |
|
|`#define DISABLE_RGB_MATRIX_RAINBOW_BEACON` |Disables `RGB_MATRIX_RAINBOW_BEACON` |
|
||||||
|`#define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS` |Disables `RGB_MATRIX_RAINBOW_PINWHEELS` |
|
|`#define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS` |Disables `RGB_MATRIX_RAINBOW_PINWHEELS` |
|
||||||
|`#define DISABLE_RGB_MATRIX_RAINDROPS` |Disables `RGB_MATRIX_RAINDROPS` |
|
|`#define DISABLE_RGB_MATRIX_RAINDROPS` |Disables `RGB_MATRIX_RAINDROPS` |
|
||||||
|`#define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS` |Disables `RGB_MATRIX_JELLYBEAN_RAINDROPS` |
|
|`#define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS` |Disables `RGB_MATRIX_JELLYBEAN_RAINDROPS` |
|
||||||
|`#define DISABLE_RGB_MATRIX_TYPING_HEATMAP` |Disables `RGB_MATRIX_TYPING_HEATMAP` |
|
|`#define DISABLE_RGB_MATRIX_TYPING_HEATMAP` |Disables `RGB_MATRIX_TYPING_HEATMAP` |
|
||||||
|`#define DISABLE_RGB_MATRIX_DIGITAL_RAIN` |Disables `RGB_MATRIX_DIGITAL_RAIN` |
|
|`#define DISABLE_RGB_MATRIX_DIGITAL_RAIN` |Disables `RGB_MATRIX_DIGITAL_RAIN` |
|
||||||
|`#define DISABLE_RGB_MATRIX_SOLID_REACTIVE` |Disables `RGB_MATRIX_SOLID_REACTIVE` |
|
|
||||||
|`#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE` |Disables `RGB_MATRIX_SOLID_REACTIVE_SIMPLE` |
|
|`#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE` |Disables `RGB_MATRIX_SOLID_REACTIVE_SIMPLE` |
|
||||||
|
|`#define DISABLE_RGB_MATRIX_SOLID_REACTIVE` |Disables `RGB_MATRIX_SOLID_REACTIVE` |
|
||||||
|`#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE` |Disables `RGB_MATRIX_SOLID_REACTIVE_WIDE` |
|
|`#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE` |Disables `RGB_MATRIX_SOLID_REACTIVE_WIDE` |
|
||||||
|`#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE` |Disables `RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE` |
|
|`#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE` |Disables `RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE` |
|
||||||
|`#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS` |Disables `RGB_MATRIX_SOLID_REACTIVE_CROSS` |
|
|`#define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS` |Disables `RGB_MATRIX_SOLID_REACTIVE_CROSS` |
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ qk_tap_dance_action_t tap_dance_actions[] = {
|
|||||||
[TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS),
|
[TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Add tap dance item in place of a key code
|
// Add tap dance item to your keymap in place of a keycode
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
// ...
|
// ...
|
||||||
TD(TD_ESC_CAPS)
|
TD(TD_ESC_CAPS)
|
||||||
@@ -206,20 +206,22 @@ You will need a few things that can be used for 'Quad Function Tap-Dance'.
|
|||||||
You'll need to add these to the top of your `keymap.c` file, before your keymap.
|
You'll need to add these to the top of your `keymap.c` file, before your keymap.
|
||||||
|
|
||||||
```c
|
```c
|
||||||
|
typedef enum {
|
||||||
|
TD_NONE,
|
||||||
|
TD_UNKNOWN,
|
||||||
|
TD_SINGLE_TAP,
|
||||||
|
TD_SINGLE_HOLD,
|
||||||
|
TD_DOUBLE_TAP,
|
||||||
|
TD_DOUBLE_HOLD,
|
||||||
|
TD_DOUBLE_SINGLE_TAP, // Send two single taps
|
||||||
|
TD_TRIPLE_TAP,
|
||||||
|
TD_TRIPLE_HOLD
|
||||||
|
} td_state_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
bool is_press_action;
|
bool is_press_action;
|
||||||
uint8_t state;
|
td_state_t state;
|
||||||
} tap;
|
} td_tap_t;
|
||||||
|
|
||||||
enum {
|
|
||||||
SINGLE_TAP = 1,
|
|
||||||
SINGLE_HOLD,
|
|
||||||
DOUBLE_TAP,
|
|
||||||
DOUBLE_HOLD,
|
|
||||||
DOUBLE_SINGLE_TAP, // Send two single taps
|
|
||||||
TRIPLE_TAP,
|
|
||||||
TRIPLE_HOLD
|
|
||||||
};
|
|
||||||
|
|
||||||
// Tap dance enums
|
// Tap dance enums
|
||||||
enum {
|
enum {
|
||||||
@@ -227,7 +229,7 @@ enum {
|
|||||||
SOME_OTHER_DANCE
|
SOME_OTHER_DANCE
|
||||||
};
|
};
|
||||||
|
|
||||||
uint8_t cur_dance(qk_tap_dance_state_t *state);
|
td_state_t cur_dance(qk_tap_dance_state_t *state);
|
||||||
|
|
||||||
// For the x tap dance. Put it here so it can be used in any keymap
|
// For the x tap dance. Put it here so it can be used in any keymap
|
||||||
void x_finished(qk_tap_dance_state_t *state, void *user_data);
|
void x_finished(qk_tap_dance_state_t *state, void *user_data);
|
||||||
@@ -261,61 +263,61 @@ Now, at the bottom of your `keymap.c` file, you'll need to add the following:
|
|||||||
* Letters used in common words as a double. For example 'p' in 'pepper'. If a tap dance function existed on the
|
* Letters used in common words as a double. For example 'p' in 'pepper'. If a tap dance function existed on the
|
||||||
* letter 'p', the word 'pepper' would be quite frustating to type.
|
* letter 'p', the word 'pepper' would be quite frustating to type.
|
||||||
*
|
*
|
||||||
* For the third point, there does exist the 'DOUBLE_SINGLE_TAP', however this is not fully tested
|
* For the third point, there does exist the 'TD_DOUBLE_SINGLE_TAP', however this is not fully tested
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
uint8_t cur_dance(qk_tap_dance_state_t *state) {
|
td_state_t cur_dance(qk_tap_dance_state_t *state) {
|
||||||
if (state->count == 1) {
|
if (state->count == 1) {
|
||||||
if (state->interrupted || !state->pressed) return SINGLE_TAP;
|
if (state->interrupted || !state->pressed) return TD_SINGLE_TAP;
|
||||||
// Key has not been interrupted, but the key is still held. Means you want to send a 'HOLD'.
|
// Key has not been interrupted, but the key is still held. Means you want to send a 'HOLD'.
|
||||||
else return SINGLE_HOLD;
|
else return TD_SINGLE_HOLD;
|
||||||
} else if (state->count == 2) {
|
} else if (state->count == 2) {
|
||||||
// DOUBLE_SINGLE_TAP is to distinguish between typing "pepper", and actually wanting a double tap
|
// TD_DOUBLE_SINGLE_TAP is to distinguish between typing "pepper", and actually wanting a double tap
|
||||||
// action when hitting 'pp'. Suggested use case for this return value is when you want to send two
|
// action when hitting 'pp'. Suggested use case for this return value is when you want to send two
|
||||||
// keystrokes of the key, and not the 'double tap' action/macro.
|
// keystrokes of the key, and not the 'double tap' action/macro.
|
||||||
if (state->interrupted) return DOUBLE_SINGLE_TAP;
|
if (state->interrupted) return TD_DOUBLE_SINGLE_TAP;
|
||||||
else if (state->pressed) return DOUBLE_HOLD;
|
else if (state->pressed) return TD_DOUBLE_HOLD;
|
||||||
else return DOUBLE_TAP;
|
else return TD_DOUBLE_TAP;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assumes no one is trying to type the same letter three times (at least not quickly).
|
// Assumes no one is trying to type the same letter three times (at least not quickly).
|
||||||
// If your tap dance key is 'KC_W', and you want to type "www." quickly - then you will need to add
|
// If your tap dance key is 'KC_W', and you want to type "www." quickly - then you will need to add
|
||||||
// an exception here to return a 'TRIPLE_SINGLE_TAP', and define that enum just like 'DOUBLE_SINGLE_TAP'
|
// an exception here to return a 'TD_TRIPLE_SINGLE_TAP', and define that enum just like 'TD_DOUBLE_SINGLE_TAP'
|
||||||
if (state->count == 3) {
|
if (state->count == 3) {
|
||||||
if (state->interrupted || !state->pressed) return TRIPLE_TAP;
|
if (state->interrupted || !state->pressed) return TD_TRIPLE_TAP;
|
||||||
else return TRIPLE_HOLD;
|
else return TD_TRIPLE_HOLD;
|
||||||
} else return 8; // Magic number. At some point this method will expand to work for more presses
|
} else return TD_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create an instance of 'tap' for the 'x' tap dance.
|
// Create an instance of 'td_tap_t' for the 'x' tap dance.
|
||||||
static tap xtap_state = {
|
static td_tap_t xtap_state = {
|
||||||
.is_press_action = true,
|
.is_press_action = true,
|
||||||
.state = 0
|
.state = TD_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
void x_finished(qk_tap_dance_state_t *state, void *user_data) {
|
void x_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
xtap_state.state = cur_dance(state);
|
xtap_state.state = cur_dance(state);
|
||||||
switch (xtap_state.state) {
|
switch (xtap_state.state) {
|
||||||
case SINGLE_TAP: register_code(KC_X); break;
|
case TD_SINGLE_TAP: register_code(KC_X); break;
|
||||||
case SINGLE_HOLD: register_code(KC_LCTRL); break;
|
case TD_SINGLE_HOLD: register_code(KC_LCTRL); break;
|
||||||
case DOUBLE_TAP: register_code(KC_ESC); break;
|
case TD_DOUBLE_TAP: register_code(KC_ESC); break;
|
||||||
case DOUBLE_HOLD: register_code(KC_LALT); break;
|
case TD_DOUBLE_HOLD: register_code(KC_LALT); break;
|
||||||
// Last case is for fast typing. Assuming your key is `f`:
|
// Last case is for fast typing. Assuming your key is `f`:
|
||||||
// For example, when typing the word `buffer`, and you want to make sure that you send `ff` and not `Esc`.
|
// For example, when typing the word `buffer`, and you want to make sure that you send `ff` and not `Esc`.
|
||||||
// In order to type `ff` when typing fast, the next character will have to be hit within the `TAPPING_TERM`, which by default is 200ms.
|
// In order to type `ff` when typing fast, the next character will have to be hit within the `TAPPING_TERM`, which by default is 200ms.
|
||||||
case DOUBLE_SINGLE_TAP: tap_code(KC_X); register_code(KC_X);
|
case TD_DOUBLE_SINGLE_TAP: tap_code(KC_X); register_code(KC_X);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void x_reset(qk_tap_dance_state_t *state, void *user_data) {
|
void x_reset(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
switch (xtap_state.state) {
|
switch (xtap_state.state) {
|
||||||
case SINGLE_TAP: unregister_code(KC_X); break;
|
case TD_SINGLE_TAP: unregister_code(KC_X); break;
|
||||||
case SINGLE_HOLD: unregister_code(KC_LCTRL); break;
|
case TD_SINGLE_HOLD: unregister_code(KC_LCTRL); break;
|
||||||
case DOUBLE_TAP: unregister_code(KC_ESC); break;
|
case TD_DOUBLE_TAP: unregister_code(KC_ESC); break;
|
||||||
case DOUBLE_HOLD: unregister_code(KC_LALT);
|
case TD_DOUBLE_HOLD: unregister_code(KC_LALT);
|
||||||
case DOUBLE_SINGLE_TAP: unregister_code(KC_X);
|
case TD_DOUBLE_SINGLE_TAP: unregister_code(KC_X);
|
||||||
}
|
}
|
||||||
xtap_state.state = 0;
|
xtap_state.state = TD_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
qk_tap_dance_action_t tap_dance_actions[] = {
|
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||||
@@ -343,9 +345,11 @@ enum td_keycodes {
|
|||||||
|
|
||||||
// Define a type containing as many tapdance states as you need
|
// Define a type containing as many tapdance states as you need
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SINGLE_TAP,
|
TD_NONE,
|
||||||
SINGLE_HOLD,
|
TD_UNKNOWN,
|
||||||
DOUBLE_SINGLE_TAP
|
TD_SINGLE_TAP,
|
||||||
|
TD_SINGLE_HOLD,
|
||||||
|
TD_DOUBLE_SINGLE_TAP
|
||||||
} td_state_t;
|
} td_state_t;
|
||||||
|
|
||||||
// Create a global instance of the tapdance state type
|
// Create a global instance of the tapdance state type
|
||||||
@@ -354,7 +358,7 @@ static td_state_t td_state;
|
|||||||
// Declare your tapdance functions:
|
// Declare your tapdance functions:
|
||||||
|
|
||||||
// Function to determine the current tapdance state
|
// Function to determine the current tapdance state
|
||||||
uint8_t cur_dance(qk_tap_dance_state_t *state);
|
td_state_t cur_dance(qk_tap_dance_state_t *state);
|
||||||
|
|
||||||
// `finished` and `reset` functions for each tapdance keycode
|
// `finished` and `reset` functions for each tapdance keycode
|
||||||
void altlp_finished(qk_tap_dance_state_t *state, void *user_data);
|
void altlp_finished(qk_tap_dance_state_t *state, void *user_data);
|
||||||
@@ -365,14 +369,14 @@ Below your `LAYOUT`, define each of the tapdance functions:
|
|||||||
|
|
||||||
```c
|
```c
|
||||||
// Determine the tapdance state to return
|
// Determine the tapdance state to return
|
||||||
uint8_t cur_dance(qk_tap_dance_state_t *state) {
|
td_state_t cur_dance(qk_tap_dance_state_t *state) {
|
||||||
if (state->count == 1) {
|
if (state->count == 1) {
|
||||||
if (state->interrupted || !state->pressed) return SINGLE_TAP;
|
if (state->interrupted || !state->pressed) return TD_SINGLE_TAP;
|
||||||
else return SINGLE_HOLD;
|
else return TD_SINGLE_HOLD;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state->count == 2) return DOUBLE_SINGLE_TAP;
|
if (state->count == 2) return TD_DOUBLE_SINGLE_TAP;
|
||||||
else return 3; // Any number higher than the maximum state value you return above
|
else return TD_UNKNOWN; // Any number higher than the maximum state value you return above
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle the possible states for each tapdance keycode you define:
|
// Handle the possible states for each tapdance keycode you define:
|
||||||
@@ -380,13 +384,13 @@ uint8_t cur_dance(qk_tap_dance_state_t *state) {
|
|||||||
void altlp_finished(qk_tap_dance_state_t *state, void *user_data) {
|
void altlp_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
td_state = cur_dance(state);
|
td_state = cur_dance(state);
|
||||||
switch (td_state) {
|
switch (td_state) {
|
||||||
case SINGLE_TAP:
|
case TD_SINGLE_TAP:
|
||||||
register_code16(KC_LPRN);
|
register_code16(KC_LPRN);
|
||||||
break;
|
break;
|
||||||
case SINGLE_HOLD:
|
case TD_SINGLE_HOLD:
|
||||||
register_mods(MOD_BIT(KC_LALT)); // For a layer-tap key, use `layer_on(_MY_LAYER)` here
|
register_mods(MOD_BIT(KC_LALT)); // For a layer-tap key, use `layer_on(_MY_LAYER)` here
|
||||||
break;
|
break;
|
||||||
case DOUBLE_SINGLE_TAP: // Allow nesting of 2 parens `((` within tapping term
|
case TD_DOUBLE_SINGLE_TAP: // Allow nesting of 2 parens `((` within tapping term
|
||||||
tap_code16(KC_LPRN);
|
tap_code16(KC_LPRN);
|
||||||
register_code16(KC_LPRN);
|
register_code16(KC_LPRN);
|
||||||
}
|
}
|
||||||
@@ -394,13 +398,13 @@ void altlp_finished(qk_tap_dance_state_t *state, void *user_data) {
|
|||||||
|
|
||||||
void altlp_reset(qk_tap_dance_state_t *state, void *user_data) {
|
void altlp_reset(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
switch (td_state) {
|
switch (td_state) {
|
||||||
case SINGLE_TAP:
|
case TD_SINGLE_TAP:
|
||||||
unregister_code16(KC_LPRN);
|
unregister_code16(KC_LPRN);
|
||||||
break;
|
break;
|
||||||
case SINGLE_HOLD:
|
case TD_SINGLE_HOLD:
|
||||||
unregister_mods(MOD_BIT(KC_LALT)); // For a layer-tap key, use `layer_off(_MY_LAYER)` here
|
unregister_mods(MOD_BIT(KC_LALT)); // For a layer-tap key, use `layer_off(_MY_LAYER)` here
|
||||||
break;
|
break;
|
||||||
case DOUBLE_SINGLE_TAP:
|
case TD_DOUBLE_SINGLE_TAP:
|
||||||
unregister_code16(KC_LPRN);
|
unregister_code16(KC_LPRN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -420,17 +424,19 @@ Tap Dance can be used to mimic MO(layer) and TG(layer) functionality. For this e
|
|||||||
The first step is to include the following code towards the beginning of your `keymap.c`:
|
The first step is to include the following code towards the beginning of your `keymap.c`:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
|
// Define a type for as many tap dance states as you need
|
||||||
|
typedef enum {
|
||||||
|
TD_NONE,
|
||||||
|
TD_UNKNOWN,
|
||||||
|
TD_SINGLE_TAP,
|
||||||
|
TD_SINGLE_HOLD,
|
||||||
|
TD_DOUBLE_TAP
|
||||||
|
} td_state_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
bool is_press_action;
|
bool is_press_action;
|
||||||
uint8_t state;
|
td_state_t state;
|
||||||
} tap;
|
} td_tap_t;
|
||||||
|
|
||||||
// Define a type for as many tap dance states as you need
|
|
||||||
enum {
|
|
||||||
SINGLE_TAP = 1,
|
|
||||||
SINGLE_HOLD,
|
|
||||||
DOUBLE_TAP
|
|
||||||
};
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
QUOT_LAYR, // Our custom tap dance key; add any other tap dance keys to this enum
|
QUOT_LAYR, // Our custom tap dance key; add any other tap dance keys to this enum
|
||||||
@@ -439,7 +445,7 @@ enum {
|
|||||||
// Declare the functions to be used with your tap dance key(s)
|
// Declare the functions to be used with your tap dance key(s)
|
||||||
|
|
||||||
// Function associated with all tap dances
|
// Function associated with all tap dances
|
||||||
uint8_t cur_dance(qk_tap_dance_state_t *state);
|
td_state_t cur_dance(qk_tap_dance_state_t *state);
|
||||||
|
|
||||||
// Functions associated with individual tap dances
|
// Functions associated with individual tap dances
|
||||||
void ql_finished(qk_tap_dance_state_t *state, void *user_data);
|
void ql_finished(qk_tap_dance_state_t *state, void *user_data);
|
||||||
@@ -450,31 +456,31 @@ Towards the bottom of your `keymap.c`, include the following code:
|
|||||||
|
|
||||||
```c
|
```c
|
||||||
// Determine the current tap dance state
|
// Determine the current tap dance state
|
||||||
uint8_t cur_dance(qk_tap_dance_state_t *state) {
|
td_state_t cur_dance(qk_tap_dance_state_t *state) {
|
||||||
if (state->count == 1) {
|
if (state->count == 1) {
|
||||||
if (!state->pressed) return SINGLE_TAP;
|
if (!state->pressed) return TD_SINGLE_TAP;
|
||||||
else return SINGLE_HOLD;
|
else return TD_SINGLE_HOLD;
|
||||||
} else if (state->count == 2) return DOUBLE_TAP;
|
} else if (state->count == 2) return TD_DOUBLE_TAP;
|
||||||
else return 8;
|
else return TD_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize tap structure associated with example tap dance key
|
// Initialize tap structure associated with example tap dance key
|
||||||
static tap ql_tap_state = {
|
static td_tap_t ql_tap_state = {
|
||||||
.is_press_action = true,
|
.is_press_action = true,
|
||||||
.state = 0
|
.state = TD_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
// Functions that control what our tap dance key does
|
// Functions that control what our tap dance key does
|
||||||
void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
|
void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
ql_tap_state.state = cur_dance(state);
|
ql_tap_state.state = cur_dance(state);
|
||||||
switch (ql_tap_state.state) {
|
switch (ql_tap_state.state) {
|
||||||
case SINGLE_TAP:
|
case TD_SINGLE_TAP:
|
||||||
tap_code(KC_QUOT);
|
tap_code(KC_QUOT);
|
||||||
break;
|
break;
|
||||||
case SINGLE_HOLD:
|
case TD_SINGLE_HOLD:
|
||||||
layer_on(_MY_LAYER);
|
layer_on(_MY_LAYER);
|
||||||
break;
|
break;
|
||||||
case DOUBLE_TAP:
|
case TD_DOUBLE_TAP:
|
||||||
// Check to see if the layer is already set
|
// Check to see if the layer is already set
|
||||||
if (layer_state_is(_MY_LAYER)) {
|
if (layer_state_is(_MY_LAYER)) {
|
||||||
// If already set, then switch it off
|
// If already set, then switch it off
|
||||||
@@ -489,10 +495,10 @@ void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
|
|||||||
|
|
||||||
void ql_reset(qk_tap_dance_state_t *state, void *user_data) {
|
void ql_reset(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
// If the key was held down and now is released then switch off the layer
|
// If the key was held down and now is released then switch off the layer
|
||||||
if (ql_tap_state.state == SINGLE_HOLD) {
|
if (ql_tap_state.state == TD_SINGLE_HOLD) {
|
||||||
layer_off(_MY_LAYER);
|
layer_off(_MY_LAYER);
|
||||||
}
|
}
|
||||||
ql_tap_state.state = 0;
|
ql_tap_state.state = TD_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Associate our tap dance key with its functionality
|
// Associate our tap dance key with its functionality
|
||||||
@@ -505,7 +511,7 @@ The above code is similar to that used in previous examples. The one point to no
|
|||||||
|
|
||||||
The use of `cur_dance()` and `ql_tap_state` mirrors the above examples.
|
The use of `cur_dance()` and `ql_tap_state` mirrors the above examples.
|
||||||
|
|
||||||
The `case:SINGLE_TAP` in `ql_finished` is similar to the above examples. The `SINGLE_HOLD` case works in conjunction with `ql_reset()` to switch to `_MY_LAYER` while the tap dance key is held, and to switch away from `_MY_LAYER` when the key is released. This mirrors the use of `MO(_MY_LAYER)`. The `DOUBLE_TAP` case works by checking whether `_MY_LAYER` is the active layer, and toggling it on or off accordingly. This mirrors the use of `TG(_MY_LAYER)`.
|
The `case: TD_SINGLE_TAP` in `ql_finished` is similar to the above examples. The `TD_SINGLE_HOLD` case works in conjunction with `ql_reset()` to switch to `_MY_LAYER` while the tap dance key is held, and to switch away from `_MY_LAYER` when the key is released. This mirrors the use of `MO(_MY_LAYER)`. The `TD_DOUBLE_TAP` case works by checking whether `_MY_LAYER` is the active layer, and toggling it on or off accordingly. This mirrors the use of `TG(_MY_LAYER)`.
|
||||||
|
|
||||||
`tap_dance_actions[]` works similar to the above examples. Note that I used `ACTION_TAP_DANCE_FN_ADVANCED_TIME()` instead of `ACTION_TAP_DANCE_FN_ADVANCED()`. This is because I like my `TAPPING_TERM` to be short (\~175ms) for my non-tap-dance keys but find that this is too quick for me to reliably complete tap dance actions - thus the increased time of 275ms here.
|
`tap_dance_actions[]` works similar to the above examples. Note that I used `ACTION_TAP_DANCE_FN_ADVANCED_TIME()` instead of `ACTION_TAP_DANCE_FN_ADVANCED()`. This is because I like my `TAPPING_TERM` to be short (\~175ms) for my non-tap-dance keys but find that this is too quick for me to reliably complete tap dance actions - thus the increased time of 275ms here.
|
||||||
|
|
||||||
|
|||||||
@@ -50,11 +50,13 @@ For convenience, QMK includes some Mod-Tap shortcuts to make common combinations
|
|||||||
|
|
||||||
## Caveats
|
## Caveats
|
||||||
|
|
||||||
Unfortunately, these keycodes cannot be used in Mod-Taps or Layer-Taps, since any modifiers specified in the keycode are ignored.
|
Currently, the `kc` argument of `MT()` is limited to the [Basic Keycode set](keycodes_basic.md), meaning you can't use keycodes like `LCTL()`, `KC_TILD`, or anything greater than `0xFF`. This is because QMK uses 16-bit keycodes, of which 3 bits are used for the function identifier, 1 bit for selecting right or left mods, and 4 bits to tell which mods are used, leaving only 8 bits for the keycode. Additionally, if at least one right-handed modifier is specified in a Mod-Tap, it will cause all modifiers specified to become right-handed, so it is not possible to mix and match the two - for example, Left Control and Right Shift would become Right Control and Right Shift.
|
||||||
|
|
||||||
Additionally, you may run into issues when using Remote Desktop Connection on Windows. Because these codes send shift very fast, Remote Desktop may miss the codes.
|
Expanding this would be complicated, at best. Moving to a 32-bit keycode would solve a lot of this, but would double the amount of space that the keymap matrix uses. And it could potentially cause issues, too. If you need to apply modifiers to your tapped keycode, [Tap Dance](feature_tap_dance.md#example-5-using-tap-dance-for-advanced-mod-tap-and-layer-tap-keys) can be used to accomplish this.
|
||||||
|
|
||||||
To fix this, open Remote Desktop Connection, click on "Show Options", open the the "Local Resources" tab. In the keyboard section, change the drop down to "On this Computer". This will fix the issue, and allow the characters to work correctly.
|
You may also run into issues when using Remote Desktop Connection on Windows. Because these keycodes send key events faster than a human, Remote Desktop could miss them.
|
||||||
|
To fix this, open Remote Desktop Connection, click on "Show Options", open the the "Local Resources" tab, and in the keyboard section, change the drop down to "On this Computer". This will fix the issue, and allow the characters to work correctly.
|
||||||
|
It can also be mitigated by increasing [`TAP_CODE_DELAY`](config_options.md#behaviors-that-can-be-configured).
|
||||||
|
|
||||||
## Other Resources
|
## Other Resources
|
||||||
|
|
||||||
|
|||||||
25
keyboards/2key2crawl/info.json
Normal file
25
keyboards/2key2crawl/info.json
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "2Key2CrawlPad",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "qmk",
|
||||||
|
"width": 6.5,
|
||||||
|
"height": 2,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"K00", "x":0, "y":0},
|
||||||
|
{"label":"K01", "x":1, "y":0},
|
||||||
|
{"label":"K02", "x":2, "y":0},
|
||||||
|
{"label":"K03", "x":3, "y":0},
|
||||||
|
{"label":"K15", "x":4, "y":0},
|
||||||
|
|
||||||
|
{"label":"K10", "x":0, "y":1},
|
||||||
|
{"label":"K11", "x":1, "y":1},
|
||||||
|
{"label":"K12", "x":2, "y":1},
|
||||||
|
{"label":"K13", "x":3, "y":1},
|
||||||
|
{"label":"K14", "x":4, "y":1},
|
||||||
|
{"label":"K16", "x":5.5, "y":0.5}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
197
keyboards/40percentclub/4x4/info.json
Normal file
197
keyboards/40percentclub/4x4/info.json
Normal file
@@ -0,0 +1,197 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "40percent.club 4x4",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "qmk",
|
||||||
|
"height": 4,
|
||||||
|
"width": 4,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_ortho_4x4": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
|
||||||
|
{"x":0, "y":1},
|
||||||
|
{"x":1, "y":1},
|
||||||
|
{"x":2, "y":1},
|
||||||
|
{"x":3, "y":1},
|
||||||
|
|
||||||
|
{"x":0, "y":2},
|
||||||
|
{"x":1, "y":2},
|
||||||
|
{"x":2, "y":2},
|
||||||
|
{"x":3, "y":2},
|
||||||
|
|
||||||
|
{"x":0, "y":3},
|
||||||
|
{"x":1, "y":3},
|
||||||
|
{"x":2, "y":3},
|
||||||
|
{"x":3, "y":3}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_ortho_4x8": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
{"x":4, "y":0},
|
||||||
|
{"x":5, "y":0},
|
||||||
|
{"x":6, "y":0},
|
||||||
|
{"x":7, "y":0},
|
||||||
|
|
||||||
|
{"x":0, "y":1},
|
||||||
|
{"x":1, "y":1},
|
||||||
|
{"x":2, "y":1},
|
||||||
|
{"x":3, "y":1},
|
||||||
|
{"x":4, "y":1},
|
||||||
|
{"x":5, "y":1},
|
||||||
|
{"x":6, "y":1},
|
||||||
|
{"x":7, "y":1},
|
||||||
|
|
||||||
|
{"x":0, "y":2},
|
||||||
|
{"x":1, "y":2},
|
||||||
|
{"x":2, "y":2},
|
||||||
|
{"x":3, "y":2},
|
||||||
|
{"x":4, "y":2},
|
||||||
|
{"x":5, "y":2},
|
||||||
|
{"x":6, "y":2},
|
||||||
|
{"x":7, "y":2},
|
||||||
|
|
||||||
|
{"x":0, "y":3},
|
||||||
|
{"x":1, "y":3},
|
||||||
|
{"x":2, "y":3},
|
||||||
|
{"x":3, "y":3},
|
||||||
|
{"x":4, "y":3},
|
||||||
|
{"x":5, "y":3},
|
||||||
|
{"x":6, "y":3},
|
||||||
|
{"x":7, "y":3}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_ortho_4x12": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
{"x":4, "y":0},
|
||||||
|
{"x":5, "y":0},
|
||||||
|
{"x":6, "y":0},
|
||||||
|
{"x":7, "y":0},
|
||||||
|
{"x":8, "y":0},
|
||||||
|
{"x":9, "y":0},
|
||||||
|
{"x":10, "y":0},
|
||||||
|
{"x":11, "y":0},
|
||||||
|
|
||||||
|
{"x":0, "y":1},
|
||||||
|
{"x":1, "y":1},
|
||||||
|
{"x":2, "y":1},
|
||||||
|
{"x":3, "y":1},
|
||||||
|
{"x":4, "y":1},
|
||||||
|
{"x":5, "y":1},
|
||||||
|
{"x":6, "y":1},
|
||||||
|
{"x":7, "y":1},
|
||||||
|
{"x":8, "y":1},
|
||||||
|
{"x":9, "y":1},
|
||||||
|
{"x":10, "y":1},
|
||||||
|
{"x":11, "y":1},
|
||||||
|
|
||||||
|
{"x":0, "y":2},
|
||||||
|
{"x":1, "y":2},
|
||||||
|
{"x":2, "y":2},
|
||||||
|
{"x":3, "y":2},
|
||||||
|
{"x":4, "y":2},
|
||||||
|
{"x":5, "y":2},
|
||||||
|
{"x":6, "y":2},
|
||||||
|
{"x":7, "y":2},
|
||||||
|
{"x":8, "y":2},
|
||||||
|
{"x":9, "y":2},
|
||||||
|
{"x":10, "y":2},
|
||||||
|
{"x":11, "y":2},
|
||||||
|
|
||||||
|
{"x":0, "y":3},
|
||||||
|
{"x":1, "y":3},
|
||||||
|
{"x":2, "y":3},
|
||||||
|
{"x":3, "y":3},
|
||||||
|
{"x":4, "y":3},
|
||||||
|
{"x":5, "y":3},
|
||||||
|
{"x":6, "y":3},
|
||||||
|
{"x":7, "y":3},
|
||||||
|
{"x":8, "y":3},
|
||||||
|
{"x":9, "y":3},
|
||||||
|
{"x":10, "y":3},
|
||||||
|
{"x":11, "y":3}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_ortho_4x16": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
{"x":4, "y":0},
|
||||||
|
{"x":5, "y":0},
|
||||||
|
{"x":6, "y":0},
|
||||||
|
{"x":7, "y":0},
|
||||||
|
{"x":8, "y":0},
|
||||||
|
{"x":9, "y":0},
|
||||||
|
{"x":10, "y":0},
|
||||||
|
{"x":11, "y":0},
|
||||||
|
{"x":12, "y":0},
|
||||||
|
{"x":13, "y":0},
|
||||||
|
{"x":14, "y":0},
|
||||||
|
{"x":15, "y":0},
|
||||||
|
|
||||||
|
{"x":0, "y":1},
|
||||||
|
{"x":1, "y":1},
|
||||||
|
{"x":2, "y":1},
|
||||||
|
{"x":3, "y":1},
|
||||||
|
{"x":4, "y":1},
|
||||||
|
{"x":5, "y":1},
|
||||||
|
{"x":6, "y":1},
|
||||||
|
{"x":7, "y":1},
|
||||||
|
{"x":8, "y":1},
|
||||||
|
{"x":9, "y":1},
|
||||||
|
{"x":10, "y":1},
|
||||||
|
{"x":11, "y":1},
|
||||||
|
{"x":12, "y":1},
|
||||||
|
{"x":13, "y":1},
|
||||||
|
{"x":14, "y":1},
|
||||||
|
{"x":15, "y":1},
|
||||||
|
|
||||||
|
{"x":0, "y":2},
|
||||||
|
{"x":1, "y":2},
|
||||||
|
{"x":2, "y":2},
|
||||||
|
{"x":3, "y":2},
|
||||||
|
{"x":4, "y":2},
|
||||||
|
{"x":5, "y":2},
|
||||||
|
{"x":6, "y":2},
|
||||||
|
{"x":7, "y":2},
|
||||||
|
{"x":8, "y":2},
|
||||||
|
{"x":9, "y":2},
|
||||||
|
{"x":10, "y":2},
|
||||||
|
{"x":11, "y":2},
|
||||||
|
{"x":12, "y":2},
|
||||||
|
{"x":13, "y":2},
|
||||||
|
{"x":14, "y":2},
|
||||||
|
{"x":15, "y":2},
|
||||||
|
|
||||||
|
{"x":0, "y":3},
|
||||||
|
{"x":1, "y":3},
|
||||||
|
{"x":2, "y":3},
|
||||||
|
{"x":3, "y":3},
|
||||||
|
{"x":4, "y":3},
|
||||||
|
{"x":5, "y":3},
|
||||||
|
{"x":6, "y":3},
|
||||||
|
{"x":7, "y":3},
|
||||||
|
{"x":8, "y":3},
|
||||||
|
{"x":9, "y":3},
|
||||||
|
{"x":10, "y":3},
|
||||||
|
{"x":11, "y":3},
|
||||||
|
{"x":12, "y":3},
|
||||||
|
{"x":13, "y":3},
|
||||||
|
{"x":14, "y":3},
|
||||||
|
{"x":15, "y":3}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
183
keyboards/40percentclub/5x5/info.json
Normal file
183
keyboards/40percentclub/5x5/info.json
Normal file
@@ -0,0 +1,183 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "40percent.club 4x4",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "qmk",
|
||||||
|
"height": 4,
|
||||||
|
"width": 4,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_ortho_5x5": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
{"x":4, "y":0},
|
||||||
|
|
||||||
|
{"x":0, "y":1},
|
||||||
|
{"x":1, "y":1},
|
||||||
|
{"x":2, "y":1},
|
||||||
|
{"x":3, "y":1},
|
||||||
|
{"x":4, "y":1},
|
||||||
|
|
||||||
|
{"x":0, "y":2},
|
||||||
|
{"x":1, "y":2},
|
||||||
|
{"x":2, "y":2},
|
||||||
|
{"x":3, "y":2},
|
||||||
|
{"x":4, "y":2},
|
||||||
|
|
||||||
|
{"x":0, "y":3},
|
||||||
|
{"x":1, "y":3},
|
||||||
|
{"x":2, "y":3},
|
||||||
|
{"x":3, "y":3},
|
||||||
|
{"x":4, "y":3},
|
||||||
|
|
||||||
|
{"x":0, "y":4},
|
||||||
|
{"x":1, "y":4},
|
||||||
|
{"x":2, "y":4},
|
||||||
|
{"x":3, "y":4},
|
||||||
|
{"x":4, "y":4}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_ortho_5x10": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
{"x":4, "y":0},
|
||||||
|
{"x":5, "y":0},
|
||||||
|
{"x":6, "y":0},
|
||||||
|
{"x":7, "y":0},
|
||||||
|
{"x":8, "y":0},
|
||||||
|
{"x":9, "y":0},
|
||||||
|
|
||||||
|
{"x":0, "y":1},
|
||||||
|
{"x":1, "y":1},
|
||||||
|
{"x":2, "y":1},
|
||||||
|
{"x":3, "y":1},
|
||||||
|
{"x":4, "y":1},
|
||||||
|
{"x":5, "y":1},
|
||||||
|
{"x":6, "y":1},
|
||||||
|
{"x":7, "y":1},
|
||||||
|
{"x":8, "y":1},
|
||||||
|
{"x":9, "y":1},
|
||||||
|
|
||||||
|
{"x":0, "y":2},
|
||||||
|
{"x":1, "y":2},
|
||||||
|
{"x":2, "y":2},
|
||||||
|
{"x":3, "y":2},
|
||||||
|
{"x":4, "y":2},
|
||||||
|
{"x":5, "y":2},
|
||||||
|
{"x":6, "y":2},
|
||||||
|
{"x":7, "y":2},
|
||||||
|
{"x":8, "y":2},
|
||||||
|
{"x":9, "y":2},
|
||||||
|
|
||||||
|
{"x":0, "y":3},
|
||||||
|
{"x":1, "y":3},
|
||||||
|
{"x":2, "y":3},
|
||||||
|
{"x":3, "y":3},
|
||||||
|
{"x":4, "y":3},
|
||||||
|
{"x":5, "y":3},
|
||||||
|
{"x":6, "y":3},
|
||||||
|
{"x":7, "y":3},
|
||||||
|
{"x":8, "y":3},
|
||||||
|
{"x":9, "y":3},
|
||||||
|
|
||||||
|
{"x":0, "y":4},
|
||||||
|
{"x":1, "y":4},
|
||||||
|
{"x":2, "y":4},
|
||||||
|
{"x":3, "y":4},
|
||||||
|
{"x":4, "y":4},
|
||||||
|
{"x":5, "y":4},
|
||||||
|
{"x":6, "y":4},
|
||||||
|
{"x":7, "y":4},
|
||||||
|
{"x":8, "y":4},
|
||||||
|
{"x":9, "y":4}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_ortho_5x15": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
{"x":4, "y":0},
|
||||||
|
{"x":5, "y":0},
|
||||||
|
{"x":6, "y":0},
|
||||||
|
{"x":7, "y":0},
|
||||||
|
{"x":8, "y":0},
|
||||||
|
{"x":9, "y":0},
|
||||||
|
{"x":10, "y":0},
|
||||||
|
{"x":11, "y":0},
|
||||||
|
{"x":12, "y":0},
|
||||||
|
{"x":13, "y":0},
|
||||||
|
{"x":14, "y":0},
|
||||||
|
|
||||||
|
{"x":0, "y":1},
|
||||||
|
{"x":1, "y":1},
|
||||||
|
{"x":2, "y":1},
|
||||||
|
{"x":3, "y":1},
|
||||||
|
{"x":4, "y":1},
|
||||||
|
{"x":5, "y":1},
|
||||||
|
{"x":6, "y":1},
|
||||||
|
{"x":7, "y":1},
|
||||||
|
{"x":8, "y":1},
|
||||||
|
{"x":9, "y":1},
|
||||||
|
{"x":10, "y":1},
|
||||||
|
{"x":11, "y":1},
|
||||||
|
{"x":12, "y":1},
|
||||||
|
{"x":13, "y":1},
|
||||||
|
{"x":14, "y":1},
|
||||||
|
|
||||||
|
{"x":0, "y":2},
|
||||||
|
{"x":1, "y":2},
|
||||||
|
{"x":2, "y":2},
|
||||||
|
{"x":3, "y":2},
|
||||||
|
{"x":4, "y":2},
|
||||||
|
{"x":5, "y":2},
|
||||||
|
{"x":6, "y":2},
|
||||||
|
{"x":7, "y":2},
|
||||||
|
{"x":8, "y":2},
|
||||||
|
{"x":9, "y":2},
|
||||||
|
{"x":10, "y":2},
|
||||||
|
{"x":11, "y":2},
|
||||||
|
{"x":12, "y":2},
|
||||||
|
{"x":13, "y":2},
|
||||||
|
{"x":14, "y":2},
|
||||||
|
|
||||||
|
{"x":0, "y":3},
|
||||||
|
{"x":1, "y":3},
|
||||||
|
{"x":2, "y":3},
|
||||||
|
{"x":3, "y":3},
|
||||||
|
{"x":4, "y":3},
|
||||||
|
{"x":5, "y":3},
|
||||||
|
{"x":6, "y":3},
|
||||||
|
{"x":7, "y":3},
|
||||||
|
{"x":8, "y":3},
|
||||||
|
{"x":9, "y":3},
|
||||||
|
{"x":10, "y":3},
|
||||||
|
{"x":11, "y":3},
|
||||||
|
{"x":12, "y":3},
|
||||||
|
{"x":13, "y":3},
|
||||||
|
{"x":14, "y":3},
|
||||||
|
|
||||||
|
{"x":0, "y":4},
|
||||||
|
{"x":1, "y":4},
|
||||||
|
{"x":2, "y":4},
|
||||||
|
{"x":3, "y":4},
|
||||||
|
{"x":4, "y":4},
|
||||||
|
{"x":5, "y":4},
|
||||||
|
{"x":6, "y":4},
|
||||||
|
{"x":7, "y":4},
|
||||||
|
{"x":8, "y":4},
|
||||||
|
{"x":9, "y":4},
|
||||||
|
{"x":10, "y":4},
|
||||||
|
{"x":11, "y":4},
|
||||||
|
{"x":12, "y":4},
|
||||||
|
{"x":13, "y":4},
|
||||||
|
{"x":14, "y":4}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
81
keyboards/4pplet/aekiso60/rev_a/info.json
Normal file
81
keyboards/4pplet/aekiso60/rev_a/info.json
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "AEKISO60 Rev A",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "4pplet",
|
||||||
|
"width": 15,
|
||||||
|
"height": 5,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_all": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0, "w":1.25},
|
||||||
|
{"x":1.25, "y":0},
|
||||||
|
{"x":2.25, "y":0},
|
||||||
|
{"x":3.25, "y":0},
|
||||||
|
{"x":4.25, "y":0},
|
||||||
|
{"x":5.25, "y":0},
|
||||||
|
{"x":6.25, "y":0},
|
||||||
|
{"x":7.25, "y":0},
|
||||||
|
{"x":8.25, "y":0},
|
||||||
|
{"x":9.25, "y":0},
|
||||||
|
{"x":10.25, "y":0},
|
||||||
|
{"x":11.25, "y":0},
|
||||||
|
{"x":12.25, "y":0},
|
||||||
|
{"x":13.25, "y":0, "w":1.75},
|
||||||
|
|
||||||
|
{"x":0, "y":1, "w":1.75},
|
||||||
|
{"x":1.75, "y":1},
|
||||||
|
{"x":2.75, "y":1},
|
||||||
|
{"x":3.75, "y":1},
|
||||||
|
{"x":4.75, "y":1},
|
||||||
|
{"x":5.75, "y":1},
|
||||||
|
{"x":6.75, "y":1},
|
||||||
|
{"x":7.75, "y":1},
|
||||||
|
{"x":8.75, "y":1},
|
||||||
|
{"x":9.75, "y":1},
|
||||||
|
{"x":10.75, "y":1},
|
||||||
|
{"x":11.75, "y":1},
|
||||||
|
{"x":12.75, "y":1},
|
||||||
|
|
||||||
|
{"x":0, "y":2, "w":2},
|
||||||
|
{"x":2, "y":2},
|
||||||
|
{"x":3, "y":2},
|
||||||
|
{"x":4, "y":2},
|
||||||
|
{"x":5, "y":2},
|
||||||
|
{"x":6, "y":2},
|
||||||
|
{"x":7, "y":2},
|
||||||
|
{"x":8, "y":2},
|
||||||
|
{"x":9, "y":2},
|
||||||
|
{"x":10, "y":2},
|
||||||
|
{"x":11, "y":2},
|
||||||
|
{"x":12, "y":2},
|
||||||
|
{"x":13, "y":2},
|
||||||
|
{"x":14, "y":1, "h":2},
|
||||||
|
|
||||||
|
{"x":0, "y":3, "w":1.5},
|
||||||
|
{"x":1.5, "y":3},
|
||||||
|
{"x":2.5, "y":3},
|
||||||
|
{"x":3.5, "y":3},
|
||||||
|
{"x":4.5, "y":3},
|
||||||
|
{"x":5.5, "y":3},
|
||||||
|
{"x":6.5, "y":3},
|
||||||
|
{"x":7.5, "y":3},
|
||||||
|
{"x":8.5, "y":3},
|
||||||
|
{"x":9.5, "y":3},
|
||||||
|
{"x":10.5, "y":3},
|
||||||
|
{"x":11.5, "y":3},
|
||||||
|
{"x":12.5, "y":3, "w":1.5},
|
||||||
|
{"x":14, "y":3},
|
||||||
|
|
||||||
|
{"x":0, "y":4, "w":1.5},
|
||||||
|
{"x":1.5, "y":4, "w":1.25},
|
||||||
|
{"x":2.75, "y":4, "w":1.5},
|
||||||
|
{"x":4.25, "y":4, "w":2.75},
|
||||||
|
{"x":7, "y":4},
|
||||||
|
{"x":8, "y":4, "w":2.75},
|
||||||
|
{"x":10.75, "y":4, "w":1.5},
|
||||||
|
{"x":12.25, "y":4, "w":1.25},
|
||||||
|
{"x":13.5, "y":4, "w":1.5}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
87
keyboards/4pplet/steezy60/rev_a/info.json
Normal file
87
keyboards/4pplet/steezy60/rev_a/info.json
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Steezy60 Rev A",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "4pplet",
|
||||||
|
"width": 15,
|
||||||
|
"height": 5,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_all": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
{"x":4, "y":0},
|
||||||
|
{"x":5, "y":0},
|
||||||
|
{"x":6, "y":0},
|
||||||
|
{"x":7, "y":0},
|
||||||
|
{"x":8, "y":0},
|
||||||
|
{"x":9, "y":0},
|
||||||
|
{"x":10, "y":0},
|
||||||
|
{"x":11, "y":0},
|
||||||
|
{"x":12, "y":0},
|
||||||
|
{"x":13, "y":0},
|
||||||
|
{"x":14, "y":0},
|
||||||
|
|
||||||
|
{"x":0, "y":1, "w":1.5},
|
||||||
|
{"x":1.5, "y":1},
|
||||||
|
{"x":2.5, "y":1},
|
||||||
|
{"x":3.5, "y":1},
|
||||||
|
{"x":4.5, "y":1},
|
||||||
|
{"x":5.5, "y":1},
|
||||||
|
{"x":6.5, "y":1},
|
||||||
|
{"x":7.5, "y":1},
|
||||||
|
{"x":8.5, "y":1},
|
||||||
|
{"x":9.5, "y":1},
|
||||||
|
{"x":10.5, "y":1},
|
||||||
|
{"x":11.5, "y":1},
|
||||||
|
{"x":12.5, "y":1},
|
||||||
|
{"x":13.5, "y":1, "w":1.5},
|
||||||
|
|
||||||
|
{"x":0, "y":2, "w":1.75},
|
||||||
|
{"x":1.75, "y":2},
|
||||||
|
{"x":2.75, "y":2},
|
||||||
|
{"x":3.75, "y":2},
|
||||||
|
{"x":4.75, "y":2},
|
||||||
|
{"x":5.75, "y":2},
|
||||||
|
{"x":6.75, "y":2},
|
||||||
|
{"x":7.75, "y":2},
|
||||||
|
{"x":8.75, "y":2},
|
||||||
|
{"x":9.75, "y":2},
|
||||||
|
{"x":10.75, "y":2},
|
||||||
|
{"x":11.75, "y":2},
|
||||||
|
{"x":12.75, "y":2},
|
||||||
|
{"x":13.75, "y":2, "w":1.25},
|
||||||
|
|
||||||
|
{"x":0, "y":3},
|
||||||
|
{"x":1, "y":3},
|
||||||
|
{"x":2, "y":3},
|
||||||
|
{"x":3, "y":3},
|
||||||
|
{"x":4, "y":3},
|
||||||
|
{"x":5, "y":3},
|
||||||
|
{"x":6, "y":3},
|
||||||
|
{"x":7, "y":3},
|
||||||
|
{"x":8, "y":3},
|
||||||
|
{"x":9, "y":3},
|
||||||
|
{"x":10, "y":3},
|
||||||
|
{"x":11, "y":3},
|
||||||
|
{"x":12, "y":3},
|
||||||
|
{"x":13, "y":3},
|
||||||
|
{"x":14, "y":3},
|
||||||
|
|
||||||
|
{"x":0, "y":4},
|
||||||
|
{"x":1, "y":4},
|
||||||
|
{"x":2, "y":4},
|
||||||
|
{"x":3, "y":4},
|
||||||
|
{"x":4, "y":4, "w":2.25},
|
||||||
|
{"x":6.25, "y":4, "w":1.5},
|
||||||
|
{"x":7.75, "y":4, "w":2.25},
|
||||||
|
{"x":10, "y":4},
|
||||||
|
{"x":11, "y":4},
|
||||||
|
{"x":12, "y":4},
|
||||||
|
{"x":13, "y":4},
|
||||||
|
{"x":14, "y":4}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
20
keyboards/6ball/info.json
Normal file
20
keyboards/6ball/info.json
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "6-Ball",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "qmk",
|
||||||
|
"width": 3,
|
||||||
|
"height": 3,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0.5},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0.5},
|
||||||
|
|
||||||
|
{"x":0, "y":1.5},
|
||||||
|
{"x":1, "y":2},
|
||||||
|
{"x":2, "y":1.5}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
210
keyboards/7c8/framework/info.json
Normal file
210
keyboards/7c8/framework/info.json
Normal file
@@ -0,0 +1,210 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Framework",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "stevennguyen",
|
||||||
|
"width": 12,
|
||||||
|
"height": 5,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_ortho_5x12": {
|
||||||
|
"layout": [
|
||||||
|
{"x": 0, "y": 0},
|
||||||
|
{"x": 1, "y": 0},
|
||||||
|
{"x": 2, "y": 0},
|
||||||
|
{"x": 3, "y": 0},
|
||||||
|
{"x": 4, "y": 0},
|
||||||
|
{"x": 5, "y": 0},
|
||||||
|
{"x": 6, "y": 0},
|
||||||
|
{"x": 7, "y": 0},
|
||||||
|
{"x": 8, "y": 0},
|
||||||
|
{"x": 9, "y": 0},
|
||||||
|
{"x": 10, "y": 0},
|
||||||
|
{"x": 11, "y": 0},
|
||||||
|
|
||||||
|
{"x": 0, "y": 1},
|
||||||
|
{"x": 1, "y": 1},
|
||||||
|
{"x": 2, "y": 1},
|
||||||
|
{"x": 3, "y": 1},
|
||||||
|
{"x": 4, "y": 1},
|
||||||
|
{"x": 5, "y": 1},
|
||||||
|
{"x": 6, "y": 1},
|
||||||
|
{"x": 7, "y": 1},
|
||||||
|
{"x": 8, "y": 1},
|
||||||
|
{"x": 9, "y": 1},
|
||||||
|
{"x": 10, "y": 1},
|
||||||
|
{"x": 11, "y": 1},
|
||||||
|
|
||||||
|
{"x": 0, "y": 2},
|
||||||
|
{"x": 1, "y": 2},
|
||||||
|
{"x": 2, "y": 2},
|
||||||
|
{"x": 3, "y": 2},
|
||||||
|
{"x": 4, "y": 2},
|
||||||
|
{"x": 5, "y": 2},
|
||||||
|
{"x": 6, "y": 2},
|
||||||
|
{"x": 7, "y": 2},
|
||||||
|
{"x": 8, "y": 2},
|
||||||
|
{"x": 9, "y": 2},
|
||||||
|
{"x": 10, "y": 2},
|
||||||
|
{"x": 11, "y": 2},
|
||||||
|
|
||||||
|
{"x": 0, "y": 3},
|
||||||
|
{"x": 1, "y": 3},
|
||||||
|
{"x": 2, "y": 3},
|
||||||
|
{"x": 3, "y": 3},
|
||||||
|
{"x": 4, "y": 3},
|
||||||
|
{"x": 5, "y": 3},
|
||||||
|
{"x": 6, "y": 3},
|
||||||
|
{"x": 7, "y": 3},
|
||||||
|
{"x": 8, "y": 3},
|
||||||
|
{"x": 9, "y": 3},
|
||||||
|
{"x": 10, "y": 3},
|
||||||
|
{"x": 11, "y": 3},
|
||||||
|
|
||||||
|
{"x": 0, "y": 4},
|
||||||
|
{"x": 1, "y": 4},
|
||||||
|
{"x": 2, "y": 4},
|
||||||
|
{"x": 3, "y": 4},
|
||||||
|
{"x": 4, "y": 4},
|
||||||
|
{"x": 5, "y": 4},
|
||||||
|
{"x": 6, "y": 4},
|
||||||
|
{"x": 7, "y": 4},
|
||||||
|
{"x": 8, "y": 4},
|
||||||
|
{"x": 9, "y": 4},
|
||||||
|
{"x": 10, "y": 4},
|
||||||
|
{"x": 11, "y": 4}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_ortho_5x12_1x2uC": {
|
||||||
|
"layout": [
|
||||||
|
{"x": 0, "y": 0},
|
||||||
|
{"x": 1, "y": 0},
|
||||||
|
{"x": 2, "y": 0},
|
||||||
|
{"x": 3, "y": 0},
|
||||||
|
{"x": 4, "y": 0},
|
||||||
|
{"x": 5, "y": 0},
|
||||||
|
{"x": 6, "y": 0},
|
||||||
|
{"x": 7, "y": 0},
|
||||||
|
{"x": 8, "y": 0},
|
||||||
|
{"x": 9, "y": 0},
|
||||||
|
{"x": 10, "y": 0},
|
||||||
|
{"x": 11, "y": 0},
|
||||||
|
|
||||||
|
{"x": 0, "y": 1},
|
||||||
|
{"x": 1, "y": 1},
|
||||||
|
{"x": 2, "y": 1},
|
||||||
|
{"x": 3, "y": 1},
|
||||||
|
{"x": 4, "y": 1},
|
||||||
|
{"x": 5, "y": 1},
|
||||||
|
{"x": 6, "y": 1},
|
||||||
|
{"x": 7, "y": 1},
|
||||||
|
{"x": 8, "y": 1},
|
||||||
|
{"x": 9, "y": 1},
|
||||||
|
{"x": 10, "y": 1},
|
||||||
|
{"x": 11, "y": 1},
|
||||||
|
|
||||||
|
{"x": 0, "y": 2},
|
||||||
|
{"x": 1, "y": 2},
|
||||||
|
{"x": 2, "y": 2},
|
||||||
|
{"x": 3, "y": 2},
|
||||||
|
{"x": 4, "y": 2},
|
||||||
|
{"x": 5, "y": 2},
|
||||||
|
{"x": 6, "y": 2},
|
||||||
|
{"x": 7, "y": 2},
|
||||||
|
{"x": 8, "y": 2},
|
||||||
|
{"x": 9, "y": 2},
|
||||||
|
{"x": 10, "y": 2},
|
||||||
|
{"x": 11, "y": 2},
|
||||||
|
|
||||||
|
{"x": 0, "y": 3},
|
||||||
|
{"x": 1, "y": 3},
|
||||||
|
{"x": 2, "y": 3},
|
||||||
|
{"x": 3, "y": 3},
|
||||||
|
{"x": 4, "y": 3},
|
||||||
|
{"x": 5, "y": 3},
|
||||||
|
{"x": 6, "y": 3},
|
||||||
|
{"x": 7, "y": 3},
|
||||||
|
{"x": 8, "y": 3},
|
||||||
|
{"x": 9, "y": 3},
|
||||||
|
{"x": 10, "y": 3},
|
||||||
|
{"x": 11, "y": 3},
|
||||||
|
|
||||||
|
{"x": 0, "y": 4},
|
||||||
|
{"x": 1, "y": 4},
|
||||||
|
{"x": 2, "y": 4},
|
||||||
|
{"x": 3, "y": 4},
|
||||||
|
{"x": 4, "y": 4},
|
||||||
|
{"x": 5, "y": 4, "w": 2},
|
||||||
|
{"x": 7, "y": 4},
|
||||||
|
{"x": 8, "y": 4},
|
||||||
|
{"x": 9, "y": 4},
|
||||||
|
{"x": 10, "y": 4},
|
||||||
|
{"x": 11, "y": 4}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_preonic_2x2u": {
|
||||||
|
"layout": [
|
||||||
|
{"x": 0, "y": 0},
|
||||||
|
{"x": 1, "y": 0},
|
||||||
|
{"x": 2, "y": 0},
|
||||||
|
{"x": 3, "y": 0},
|
||||||
|
{"x": 4, "y": 0},
|
||||||
|
{"x": 5, "y": 0},
|
||||||
|
{"x": 6, "y": 0},
|
||||||
|
{"x": 7, "y": 0},
|
||||||
|
{"x": 8, "y": 0},
|
||||||
|
{"x": 9, "y": 0},
|
||||||
|
{"x": 10, "y": 0},
|
||||||
|
{"x": 11, "y": 0},
|
||||||
|
|
||||||
|
{"x": 0, "y": 1},
|
||||||
|
{"x": 1, "y": 1},
|
||||||
|
{"x": 2, "y": 1},
|
||||||
|
{"x": 3, "y": 1},
|
||||||
|
{"x": 4, "y": 1},
|
||||||
|
{"x": 5, "y": 1},
|
||||||
|
{"x": 6, "y": 1},
|
||||||
|
{"x": 7, "y": 1},
|
||||||
|
{"x": 8, "y": 1},
|
||||||
|
{"x": 9, "y": 1},
|
||||||
|
{"x": 10, "y": 1},
|
||||||
|
{"x": 11, "y": 1},
|
||||||
|
|
||||||
|
{"x": 0, "y": 2},
|
||||||
|
{"x": 1, "y": 2},
|
||||||
|
{"x": 2, "y": 2},
|
||||||
|
{"x": 3, "y": 2},
|
||||||
|
{"x": 4, "y": 2},
|
||||||
|
{"x": 5, "y": 2},
|
||||||
|
{"x": 6, "y": 2},
|
||||||
|
{"x": 7, "y": 2},
|
||||||
|
{"x": 8, "y": 2},
|
||||||
|
{"x": 9, "y": 2},
|
||||||
|
{"x": 10, "y": 2},
|
||||||
|
{"x": 11, "y": 2},
|
||||||
|
|
||||||
|
{"x": 0, "y": 3},
|
||||||
|
{"x": 1, "y": 3},
|
||||||
|
{"x": 2, "y": 3},
|
||||||
|
{"x": 3, "y": 3},
|
||||||
|
{"x": 4, "y": 3},
|
||||||
|
{"x": 5, "y": 3},
|
||||||
|
{"x": 6, "y": 3},
|
||||||
|
{"x": 7, "y": 3},
|
||||||
|
{"x": 8, "y": 3},
|
||||||
|
{"x": 9, "y": 3},
|
||||||
|
{"x": 10, "y": 3},
|
||||||
|
{"x": 11, "y": 3},
|
||||||
|
|
||||||
|
{"x": 0, "y": 4},
|
||||||
|
{"x": 1, "y": 4},
|
||||||
|
{"x": 2, "y": 4},
|
||||||
|
{"x": 3, "y": 4},
|
||||||
|
{"x": 4, "y": 4, "w": 2},
|
||||||
|
{"x": 6, "y": 4, "w": 2},
|
||||||
|
{"x": 8, "y": 4},
|
||||||
|
{"x": 9, "y": 4},
|
||||||
|
{"x": 10, "y": 4},
|
||||||
|
{"x": 11, "y": 4}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1 +1,2 @@
|
|||||||
VIA_ENABLE = yes
|
VIA_ENABLE = yes
|
||||||
|
LEADER_ENABLE = no
|
||||||
|
|||||||
85
keyboards/aeboards/constellation/info.json
Normal file
85
keyboards/aeboards/constellation/info.json
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Constellation",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "Xelus22",
|
||||||
|
"width": 16,
|
||||||
|
"height": 5,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_all": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
{"x":4, "y":0},
|
||||||
|
{"x":5, "y":0},
|
||||||
|
{"x":6, "y":0},
|
||||||
|
{"x":7, "y":0},
|
||||||
|
{"x":8, "y":0},
|
||||||
|
{"x":9, "y":0},
|
||||||
|
{"x":10, "y":0},
|
||||||
|
{"x":11, "y":0},
|
||||||
|
{"x":12, "y":0},
|
||||||
|
{"x":13, "y":0},
|
||||||
|
{"x":14, "y":0},
|
||||||
|
{"x":15, "y":0},
|
||||||
|
|
||||||
|
{"x":0, "y":1, "w":1.5},
|
||||||
|
{"x":1.5, "y":1},
|
||||||
|
{"x":2.5, "y":1},
|
||||||
|
{"x":3.5, "y":1},
|
||||||
|
{"x":4.5, "y":1},
|
||||||
|
{"x":5.5, "y":1},
|
||||||
|
{"x":6.5, "y":1},
|
||||||
|
{"x":7.5, "y":1},
|
||||||
|
{"x":8.5, "y":1},
|
||||||
|
{"x":9.5, "y":1},
|
||||||
|
{"x":10.5, "y":1},
|
||||||
|
{"x":11.5, "y":1},
|
||||||
|
{"x":12.5, "y":1},
|
||||||
|
{"x":13.5, "y":1, "w":1.5},
|
||||||
|
{"x":15, "y":1},
|
||||||
|
|
||||||
|
{"x":0, "y":2, "w":1.75},
|
||||||
|
{"x":1.75, "y":2},
|
||||||
|
{"x":2.75, "y":2},
|
||||||
|
{"x":3.75, "y":2},
|
||||||
|
{"x":4.75, "y":2},
|
||||||
|
{"x":5.75, "y":2},
|
||||||
|
{"x":6.75, "y":2},
|
||||||
|
{"x":7.75, "y":2},
|
||||||
|
{"x":8.75, "y":2},
|
||||||
|
{"x":9.75, "y":2},
|
||||||
|
{"x":10.75, "y":2},
|
||||||
|
{"label":"\"", "x":11.75, "y":2},
|
||||||
|
{"x":12.75, "y":2, "w":2.25},
|
||||||
|
{"x":15, "y":2},
|
||||||
|
|
||||||
|
{"x":0, "y":3, "w":2.25},
|
||||||
|
{"x":2.25, "y":3},
|
||||||
|
{"x":3.25, "y":3},
|
||||||
|
{"x":4.25, "y":3},
|
||||||
|
{"x":5.25, "y":3},
|
||||||
|
{"x":6.25, "y":3},
|
||||||
|
{"x":7.25, "y":3},
|
||||||
|
{"x":8.25, "y":3},
|
||||||
|
{"x":9.25, "y":3},
|
||||||
|
{"x":10.25, "y":3},
|
||||||
|
{"x":11.25, "y":3},
|
||||||
|
{"x":12.25, "y":3, "w":1.75},
|
||||||
|
{"x":14, "y":3},
|
||||||
|
{"x":15, "y":3},
|
||||||
|
|
||||||
|
{"x":0, "y":4, "w":1.25},
|
||||||
|
{"x":1.25, "y":4, "w":1.25},
|
||||||
|
{"x":2.5, "y":4, "w":1.25},
|
||||||
|
{"x":3.75, "y":4, "w":6.25},
|
||||||
|
{"x":10, "y":4, "w":1.5},
|
||||||
|
{"x":11.5, "y":4, "w":1.5},
|
||||||
|
{"x":13, "y":4},
|
||||||
|
{"x":14, "y":4},
|
||||||
|
{"x":15, "y":4}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
87
keyboards/afternoonlabs/breeze/keymaps/via/keymap.c
Normal file
87
keyboards/afternoonlabs/breeze/keymaps/via/keymap.c
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
/* Copyright 2021 eithanshavit
|
||||||
|
*
|
||||||
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
enum layer_names {
|
||||||
|
_MAIN,
|
||||||
|
_LOWER,
|
||||||
|
_RAISE,
|
||||||
|
};
|
||||||
|
|
||||||
|
#define LOWER MO(_LOWER)
|
||||||
|
#define RAISE MO(_RAISE)
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
[_MAIN] = LAYOUT(
|
||||||
|
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐┌────────┬────────┬────────┐
|
||||||
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, KC_MINS, KC_EQL, KC_GRV,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤├────────┼────────┼────────┤
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, KC_LBRC, KC_RBRC, KC_BSLS,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤├────────┼────────┼────────┤
|
||||||
|
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_UP,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤├────────┼────────┼────────┤
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_LEFT, KC_DOWN, KC_RIGHT,
|
||||||
|
//└────────┴────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┴────────┴────────┴────────┘└────────┴────────┴────────┘
|
||||||
|
KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_ENT, RAISE, LOWER, XXXXXXX
|
||||||
|
// └────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┘
|
||||||
|
),
|
||||||
|
|
||||||
|
[_LOWER] = LAYOUT(
|
||||||
|
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐┌────────┬────────┬────────┐
|
||||||
|
RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, KC_VOLD, KC_VOLU,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤├────────┼────────┼────────┤
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤├────────┼────────┼────────┤
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤├────────┼────────┼────────┤
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
//└────────┴────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┴────────┴────────┴────────┘└────────┴────────┴────────┘
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
// └────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┘
|
||||||
|
),
|
||||||
|
|
||||||
|
[_RAISE] = LAYOUT(
|
||||||
|
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐┌────────┬────────┬────────┐
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, KC_PEQL, KC_PSLS, KC_PAST, KC_PMNS, _______, _______, _______, _______,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤├────────┼────────┼────────┤
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, KC_P7, KC_P8, KC_P9, KC_PPLS, _______, _______, _______, _______,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤├────────┼────────┼────────┤
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, KC_P4, KC_P5, KC_P6, _______, _______, _______,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤├────────┼────────┼────────┤
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, KC_P1, KC_P2, KC_P3, _______, _______, _______, _______, _______,
|
||||||
|
//└────────┴────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┴────────┴────────┴────────┘└────────┴────────┴────────┘
|
||||||
|
_______, _______, _______, _______, _______, _______, KC_P0, KC_PDOT
|
||||||
|
// └────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┘
|
||||||
|
),
|
||||||
|
|
||||||
|
[3] = LAYOUT(
|
||||||
|
//┌────────┬────────┬────────┬────────┬────────┬────────┐ ┌────────┬────────┬────────┬────────┬────────┬────────┐┌────────┬────────┬────────┐
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤├────────┼────────┼────────┤
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤├────────┼────────┼────────┤
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
//├────────┼────────┼────────┼────────┼────────┼────────┤ ├────────┼────────┼────────┼────────┼────────┼────────┤├────────┼────────┼────────┤
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
//└────────┴────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┴────────┴────────┴────────┘└────────┴────────┴────────┘
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
// └────────┴────────┴────────┴────────┘ └────────┴────────┴────────┴────────┘
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
5
keyboards/afternoonlabs/breeze/keymaps/via/readme.md
Normal file
5
keyboards/afternoonlabs/breeze/keymaps/via/readme.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Default Breeze Layout + VIA support
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
This is the default suggested layout for Breeze Split Keyboard, with VIA support.
|
||||||
10
keyboards/afternoonlabs/breeze/keymaps/via/rules.mk
Normal file
10
keyboards/afternoonlabs/breeze/keymaps/via/rules.mk
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
VIA_ENABLE = yes
|
||||||
|
# LTO: link time optimization makes the build take slightly longer
|
||||||
|
# but makes the resulting .hex file smaller, which allows you to
|
||||||
|
# fit more features into smaller MCUs:
|
||||||
|
LTO_ENABLE = yes
|
||||||
|
# Support for these features make the hex file larger, but we want 'em:
|
||||||
|
MOUSEKEY_ENABLE = yes # Allow mapping of mouse control keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Allow audio & system control keys
|
||||||
|
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||||
|
NKRO_ENABLE = yes # Support USB N-key roll over.
|
||||||
@@ -2,11 +2,86 @@
|
|||||||
"keyboard_name": "zodiark",
|
"keyboard_name": "zodiark",
|
||||||
"url": "https://github.com/Aleblazer/qmk_firmware/tree/master/keyboards/zodiark",
|
"url": "https://github.com/Aleblazer/qmk_firmware/tree/master/keyboards/zodiark",
|
||||||
"maintainer": "Aleblazer",
|
"maintainer": "Aleblazer",
|
||||||
"width": 19,
|
"width": 18,
|
||||||
"height": 8.48,
|
"height": 6.25,
|
||||||
"layouts": {
|
"layouts": {
|
||||||
"LAYOUT": {
|
"LAYOUT": {
|
||||||
"layout": [{"label":"L03", "x":3, "y":0}, {"label":"R03", "x":15, "y":0}, {"label":"L02", "x":2, "y":0.125}, {"label":"L04", "x":4, "y":0.125}, {"label":"R02", "x":14, "y":0.125}, {"label":"R04", "x":16, "y":0.125}, {"label":"L05", "x":5, "y":0.25}, {"label":"R01", "x":13, "y":0.25}, {"label":"L00", "x":0, "y":0.53}, {"label":"L01", "x":1, "y":0.53}, {"label":"R05", "x":17, "y":0.53}, {"label":"R06", "x":18, "y":0.53}, {"label":"L13", "x":3, "y":1}, {"label":"R13", "x":15, "y":1}, {"label":"L12", "x":2, "y":1.125}, {"label":"L14", "x":4, "y":1.125}, {"label":"R12", "x":14, "y":1.125}, {"label":"R14", "x":16, "y":1.125}, {"label":"L15", "x":5, "y":1.25}, {"label":"R11", "x":13, "y":1.25}, {"label":"L10", "x":0, "y":1.53}, {"label":"L11", "x":1, "y":1.53}, {"label":"R15", "x":17, "y":1.53}, {"label":"R16", "x":18, "y":1.53}, {"label":"L06", "x":6, "y":1.7000000000000002}, {"label":"R00", "x":12, "y":1.7000000000000002}, {"label":"L23", "x":3, "y":2.0}, {"label":"R23", "x":15, "y":2.0}, {"label":"L22", "x":2, "y":2.125}, {"label":"L24", "x":4, "y":2.125}, {"label":"R22", "x":14, "y":2.125}, {"label":"R24", "x":16, "y":2.125}, {"label":"L25", "x":5, "y":2.25}, {"label":"R21", "x":13, "y":2.25}, {"label":"L20", "x":0, "y":2.5300000000000002}, {"label":"L21", "x":1, "y":2.5300000000000002}, {"label":"R25", "x":17, "y":2.5300000000000002}, {"label":"R26", "x":18, "y":2.5300000000000002}, {"label":"L16", "x":6, "y":2.7}, {"label":"R10", "x":12, "y":2.7}, {"label":"L33", "x":3, "y":3.0000000000000004}, {"label":"R33", "x":15, "y":3.0000000000000004}, {"label":"L32", "x":2, "y":3.1250000000000004}, {"label":"L34", "x":4, "y":3.1250000000000004}, {"label":"R32", "x":14, "y":3.1250000000000004}, {"label":"R34", "x":16, "y":3.1250000000000004}, {"label":"L35", "x":5, "y":3.2500000000000004}, {"label":"R31", "x":13, "y":3.2500000000000004}, {"label":"L30", "x":0, "y":3.5300000000000002}, {"label":"L31", "x":1, "y":3.5300000000000002}, {"label":"R35", "x":17, "y":3.5300000000000002}, {"label":"R36", "x":18, "y":3.5300000000000002}, {"label":"L43", "x":3, "y":4.0}, {"label":"R43", "x":15, "y":4.0}, {"label":"L42", "x":2, "y":4.125}, {"label":"R44", "x":16, "y":4.125}, {"label":"L44", "x":4, "y":4.13}, {"label":"R42", "x":14, "y":4.13}, {"label":"L40", "x":0, "y":4.53}, {"label":"L41", "x":1, "y":4.53}, {"label":"R45", "x":17, "y":4.53}, {"label":"R46", "x":18, "y":4.53}, {"label":"L26", "x":-0.33, "y":5.13}, {"label":"L36", "x":0.6699999999999999, "y":5.13}, {"label":"L45", "x":-0.83, "y":6.13, "w":1.5}, {"label":"L46", "x":0.67, "y":6.13}, {"label":"R30", "x":-2.1, "y":6.48}, {"label":"R20", "x":-1.1, "y":6.48}, {"label":"R40", "x":-2.1, "y":7.48}, {"label":"R41", "x":-1.1, "y":7.48, "w":1.5}]
|
"layout": [
|
||||||
|
{"x":0, "y":0.53},
|
||||||
|
{"x":1, "y":0.53},
|
||||||
|
{"x":2, "y":0.125},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
{"x":4, "y":0.125},
|
||||||
|
{"x":5, "y":0.25},
|
||||||
|
{"x":12, "y":0.25},
|
||||||
|
{"x":13, "y":0.125},
|
||||||
|
{"x":14, "y":0},
|
||||||
|
{"x":15, "y":0.125},
|
||||||
|
{"x":16, "y":0.53},
|
||||||
|
{"x":17, "y":0.53},
|
||||||
|
|
||||||
|
{"x":0, "y":1.53},
|
||||||
|
{"x":1, "y":1.53},
|
||||||
|
{"x":2, "y":1.125},
|
||||||
|
{"x":3, "y":1},
|
||||||
|
{"x":4, "y":1.125},
|
||||||
|
{"x":5, "y":1.25},
|
||||||
|
{"x":6, "y":1.7},
|
||||||
|
{"x":11, "y":1.7},
|
||||||
|
{"x":12, "y":1.25},
|
||||||
|
{"x":13, "y":1.125},
|
||||||
|
{"x":14, "y":1},
|
||||||
|
{"x":15, "y":1.125},
|
||||||
|
{"x":16, "y":1.53},
|
||||||
|
{"x":17, "y":1.53},
|
||||||
|
|
||||||
|
{"x":0, "y":2.53},
|
||||||
|
{"x":1, "y":2.53},
|
||||||
|
{"x":2, "y":2.125},
|
||||||
|
{"x":3, "y":2},
|
||||||
|
{"x":4, "y":2.125},
|
||||||
|
{"x":5, "y":2.25},
|
||||||
|
{"x":6, "y":2.7},
|
||||||
|
{"x":11, "y":2.7},
|
||||||
|
{"x":12, "y":2.25},
|
||||||
|
{"x":13, "y":2.125},
|
||||||
|
{"x":14, "y":2},
|
||||||
|
{"x":15, "y":2.125},
|
||||||
|
{"x":16, "y":2.53},
|
||||||
|
{"x":17, "y":2.53},
|
||||||
|
|
||||||
|
{"x":0, "y":3.53},
|
||||||
|
{"x":1, "y":3.53},
|
||||||
|
{"x":2, "y":3.125},
|
||||||
|
{"x":3, "y":3},
|
||||||
|
{"x":4, "y":3.125},
|
||||||
|
{"x":5, "y":3.25},
|
||||||
|
{"x":6.5, "y":4.25},
|
||||||
|
{"x":7.5, "y":4.25},
|
||||||
|
{"x":9.5, "y":4.25},
|
||||||
|
{"x":10.5, "y":4.25},
|
||||||
|
{"x":12, "y":3.25},
|
||||||
|
{"x":13, "y":3.125},
|
||||||
|
{"x":14, "y":3},
|
||||||
|
{"x":15, "y":3.125},
|
||||||
|
{"x":16, "y":3.53},
|
||||||
|
{"x":17, "y":3.53},
|
||||||
|
|
||||||
|
{"x":0, "y":4.53},
|
||||||
|
{"x":1, "y":4.53},
|
||||||
|
{"x":2, "y":4.125},
|
||||||
|
{"x":3, "y":4},
|
||||||
|
{"x":4, "y":4.125},
|
||||||
|
{"x":6, "y":5.25, "w":1.5},
|
||||||
|
{"x":7.5, "y":5.25},
|
||||||
|
{"x":9.5, "y":5.25},
|
||||||
|
{"x":10.5, "y":5.25, "w":1.5},
|
||||||
|
{"x":13, "y":4.125},
|
||||||
|
{"x":14, "y":4},
|
||||||
|
{"x":15, "y":4.125},
|
||||||
|
{"x":16, "y":4.53},
|
||||||
|
{"x":17, "y":4.53}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ A split keyboard with 5x7 including a thumbcluster, encoders on each side, per k
|
|||||||
|
|
||||||
Make example for this keyboard (after setting up your build environment):
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
make zodiark:default
|
make aleblazer/zodiark:default
|
||||||
|
|
||||||
Flashing example for this keyboard:
|
Flashing example for this keyboard:
|
||||||
|
|
||||||
make zodiark:default:flash
|
make aleblazer/zodiark:default:flash
|
||||||
|
|
||||||
Remove TRRS cable from halves, plug into one side, press reset button when asked. Repeat process on the other side.
|
Remove TRRS cable from halves, plug into one side, press reset button when asked. Repeat process on the other side.
|
||||||
|
|
||||||
|
|||||||
84
keyboards/alpine65/info.json
Normal file
84
keyboards/alpine65/info.json
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Alpine65",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "Gondolindrim",
|
||||||
|
"width": 16.25,
|
||||||
|
"height": 5.25,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
{"x":4, "y":0},
|
||||||
|
{"x":5, "y":0},
|
||||||
|
{"x":6, "y":0},
|
||||||
|
{"x":7, "y":0},
|
||||||
|
{"x":8, "y":0},
|
||||||
|
{"x":9, "y":0},
|
||||||
|
{"x":10, "y":0},
|
||||||
|
{"x":11, "y":0},
|
||||||
|
{"x":12, "y":0},
|
||||||
|
{"x":13, "y":0, "w":2},
|
||||||
|
|
||||||
|
{"x":0, "y":1, "w":1.5},
|
||||||
|
{"x":1.5, "y":1},
|
||||||
|
{"x":2.5, "y":1},
|
||||||
|
{"x":3.5, "y":1},
|
||||||
|
{"x":4.5, "y":1},
|
||||||
|
{"x":5.5, "y":1},
|
||||||
|
{"x":6.5, "y":1},
|
||||||
|
{"x":7.5, "y":1},
|
||||||
|
{"x":8.5, "y":1},
|
||||||
|
{"x":9.5, "y":1},
|
||||||
|
{"x":10.5, "y":1},
|
||||||
|
{"x":11.5, "y":1},
|
||||||
|
{"x":12.5, "y":1},
|
||||||
|
{"x":13.5, "y":1, "w":1.5},
|
||||||
|
{"x":15.25, "y":1.25},
|
||||||
|
|
||||||
|
{"x":0, "y":2, "w":1.75},
|
||||||
|
{"x":1.75, "y":2},
|
||||||
|
{"x":2.75, "y":2},
|
||||||
|
{"x":3.75, "y":2},
|
||||||
|
{"x":4.75, "y":2},
|
||||||
|
{"x":5.75, "y":2},
|
||||||
|
{"x":6.75, "y":2},
|
||||||
|
{"x":7.75, "y":2},
|
||||||
|
{"x":8.75, "y":2},
|
||||||
|
{"x":9.75, "y":2},
|
||||||
|
{"x":10.75, "y":2},
|
||||||
|
{"x":11.75, "y":2},
|
||||||
|
{"x":12.75, "y":2, "w":2.25},
|
||||||
|
{"x":15.25, "y":2.25},
|
||||||
|
|
||||||
|
{"x":0, "y":3, "w":2.25},
|
||||||
|
{"x":2.25, "y":3},
|
||||||
|
{"x":3.25, "y":3},
|
||||||
|
{"x":4.25, "y":3},
|
||||||
|
{"x":5.25, "y":3},
|
||||||
|
{"x":6.25, "y":3},
|
||||||
|
{"x":7.25, "y":3},
|
||||||
|
{"x":8.25, "y":3},
|
||||||
|
{"x":9.25, "y":3},
|
||||||
|
{"x":10.25, "y":3},
|
||||||
|
{"x":11.25, "y":3},
|
||||||
|
{"x":12.25, "y":3, "w":1.75},
|
||||||
|
{"x":14.25, "y":3.25},
|
||||||
|
{"x":15.25, "y":3.25},
|
||||||
|
|
||||||
|
{"x":0, "y":4, "w":1.25},
|
||||||
|
{"x":1.25, "y":4, "w":1.25},
|
||||||
|
{"x":2.5, "y":4, "w":1.25},
|
||||||
|
{"x":3.75, "y":4, "w":6.25},
|
||||||
|
{"x":10, "y":4},
|
||||||
|
{"x":11, "y":4},
|
||||||
|
{"x":12, "y":4},
|
||||||
|
{"x":13.25, "y":4.25},
|
||||||
|
{"x":14.25, "y":4.25},
|
||||||
|
{"x":15.25, "y":4.25}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
48
keyboards/anavi/macropad2/keymaps/git/keymap.c
Normal file
48
keyboards/anavi/macropad2/keymaps/git/keymap.c
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
/* Copyright 2021 Leon Anavi <leon@anavi.org>
|
||||||
|
*
|
||||||
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
enum custom_keycodes {
|
||||||
|
GITCOMMIT = SAFE_RANGE,
|
||||||
|
GITPUSH
|
||||||
|
};
|
||||||
|
|
||||||
|
void keyboard_post_init_user(void) {
|
||||||
|
// Set backlight to the maximum brightness
|
||||||
|
backlight_level(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case GITCOMMIT:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
SEND_STRING("git commit -s\n");
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case GITPUSH:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
SEND_STRING("git push\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT(
|
||||||
|
GITCOMMIT, GITPUSH
|
||||||
|
)
|
||||||
|
};
|
||||||
20
keyboards/aplyard/aplx6/info.json
Normal file
20
keyboards/aplyard/aplx6/info.json
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Aplx6",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "Aplyard",
|
||||||
|
"width": 3,
|
||||||
|
"height": 2,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
|
||||||
|
{"x":0, "y":1},
|
||||||
|
{"x":1, "y":1},
|
||||||
|
{"x":2, "y":1}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
52
keyboards/arch_36/info.json
Normal file
52
keyboards/arch_36/info.json
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Arch-36",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "obosob",
|
||||||
|
"width": 14,
|
||||||
|
"height": 5.1,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_split_3x5_3": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":1},
|
||||||
|
{"x":1, "y":0.25},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0.375},
|
||||||
|
{"x":4, "y":0.5},
|
||||||
|
{"x":9, "y":0.5},
|
||||||
|
{"x":10, "y":0.375},
|
||||||
|
{"x":11, "y":0},
|
||||||
|
{"x":12, "y":0.25},
|
||||||
|
{"x":13, "y":1},
|
||||||
|
|
||||||
|
{"x":0, "y":2},
|
||||||
|
{"x":1, "y":1.25},
|
||||||
|
{"x":2, "y":1},
|
||||||
|
{"x":3, "y":1.375},
|
||||||
|
{"x":4, "y":1.5},
|
||||||
|
{"x":9, "y":1.5},
|
||||||
|
{"x":10, "y":1.375},
|
||||||
|
{"x":11, "y":1},
|
||||||
|
{"x":12, "y":1.25},
|
||||||
|
{"x":13, "y":2},
|
||||||
|
|
||||||
|
{"x":0, "y":3},
|
||||||
|
{"x":1, "y":2.25},
|
||||||
|
{"x":2, "y":2},
|
||||||
|
{"x":3, "y":2.375},
|
||||||
|
{"x":4, "y":2.5},
|
||||||
|
{"x":9, "y":2.5},
|
||||||
|
{"x":10, "y":2.375},
|
||||||
|
{"x":11, "y":2},
|
||||||
|
{"x":12, "y":2.25},
|
||||||
|
{"x":13, "y":3},
|
||||||
|
|
||||||
|
{"x":3.5, "y":3.5},
|
||||||
|
{"x":4.5, "y":3.7},
|
||||||
|
{"x":5.5, "y":4.1},
|
||||||
|
{"x":7.5, "y":4.1},
|
||||||
|
{"x":8.5, "y":3.7},
|
||||||
|
{"x":9.5, "y":3.5}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -16,19 +16,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ares.h"
|
#include "ares.h"
|
||||||
|
|
||||||
void keyboard_pre_init_kb(void) {
|
|
||||||
led_init_ports();
|
|
||||||
keyboard_pre_init_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void led_init_ports(void) {
|
|
||||||
setPinOutput(D1);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool led_update_kb(led_t led_state) {
|
|
||||||
if (led_update_user(led_state)) {
|
|
||||||
writePin(D1, led_state.caps_lock);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define DIODE_DIRECTION COL2ROW
|
#define DIODE_DIRECTION COL2ROW
|
||||||
#define DEBOUNCE 5
|
#define DEBOUNCE 5
|
||||||
|
|
||||||
|
#define LED_CAPS_LOCK_PIN D1
|
||||||
|
|
||||||
#define BACKLIGHT_PIN D4
|
#define BACKLIGHT_PIN D4
|
||||||
#define BACKLIGHT_LEVELS 3
|
#define BACKLIGHT_LEVELS 3
|
||||||
|
|
||||||
|
|||||||
84
keyboards/arisu/info.json
Normal file
84
keyboards/arisu/info.json
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Arisu",
|
||||||
|
"url": "https://github.com/FateNozomi/arisu-pcb",
|
||||||
|
"maintainer": "FateNozomi",
|
||||||
|
"width": 18.3,
|
||||||
|
"height": 5.25,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
{"x":4, "y":0},
|
||||||
|
{"x":5, "y":0},
|
||||||
|
{"x":6, "y":0},
|
||||||
|
{"x":9, "y":0},
|
||||||
|
{"x":10, "y":0},
|
||||||
|
{"x":11, "y":0},
|
||||||
|
{"x":12, "y":0},
|
||||||
|
{"x":13, "y":0},
|
||||||
|
{"x":14, "y":0},
|
||||||
|
{"x":15, "y":0},
|
||||||
|
{"x":16, "y":0},
|
||||||
|
{"x":17.3, "y":0},
|
||||||
|
|
||||||
|
{"x":0, "y":1, "w":1.5},
|
||||||
|
{"x":1.5, "y":1},
|
||||||
|
{"x":2.5, "y":1},
|
||||||
|
{"x":3.5, "y":1},
|
||||||
|
{"x":4.5, "y":1},
|
||||||
|
{"x":5.5, "y":1},
|
||||||
|
{"x":8.5, "y":1},
|
||||||
|
{"x":9.5, "y":1},
|
||||||
|
{"x":10.5, "y":1},
|
||||||
|
{"x":11.5, "y":1},
|
||||||
|
{"x":12.5, "y":1},
|
||||||
|
{"x":13.5, "y":1},
|
||||||
|
{"x":14.5, "y":1},
|
||||||
|
{"x":15.5, "y":1, "w":1.5},
|
||||||
|
{"x":17.3, "y":1},
|
||||||
|
|
||||||
|
{"x":0, "y":2, "w":1.75},
|
||||||
|
{"x":1.75, "y":2},
|
||||||
|
{"x":2.75, "y":2},
|
||||||
|
{"x":3.75, "y":2},
|
||||||
|
{"x":4.75, "y":2},
|
||||||
|
{"x":5.75, "y":2},
|
||||||
|
{"x":8.75, "y":2},
|
||||||
|
{"x":9.75, "y":2},
|
||||||
|
{"x":10.75, "y":2},
|
||||||
|
{"x":11.75, "y":2},
|
||||||
|
{"x":12.75, "y":2},
|
||||||
|
{"x":13.75, "y":2},
|
||||||
|
{"x":14.75, "y":2, "w":2.25},
|
||||||
|
{"x":17.3, "y":2},
|
||||||
|
|
||||||
|
{"x":0, "y":3, "w":2.25},
|
||||||
|
{"x":2.25, "y":3},
|
||||||
|
{"x":3.25, "y":3},
|
||||||
|
{"x":4.25, "y":3},
|
||||||
|
{"x":5.25, "y":3},
|
||||||
|
{"x":6.25, "y":3},
|
||||||
|
{"x":9.25, "y":3},
|
||||||
|
{"x":10.25, "y":3},
|
||||||
|
{"x":11.25, "y":3},
|
||||||
|
{"x":12.25, "y":3},
|
||||||
|
{"x":13.25, "y":3},
|
||||||
|
{"x":14.25, "y":3, "w":1.75},
|
||||||
|
{"x":16.3, "y":3.25},
|
||||||
|
|
||||||
|
{"x":0, "y":4, "w":1.5},
|
||||||
|
{"x":3.25, "y":4, "w":1.5},
|
||||||
|
{"x":4.75, "y":4, "w":2},
|
||||||
|
{"x":6.75, "y":4, "w":1.25},
|
||||||
|
{"x":8.75, "y":4, "w":2.75},
|
||||||
|
{"x":11.5, "y":4, "w":1.5},
|
||||||
|
{"x":15.3, "y":4.25},
|
||||||
|
{"x":16.3, "y":4.25},
|
||||||
|
{"x":17.3, "y":4.25}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
16
keyboards/barleycorn_smd/barleycorn_smd.c
Normal file
16
keyboards/barleycorn_smd/barleycorn_smd.c
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
/* Copyright 2021 Matthew Dias
|
||||||
|
*
|
||||||
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include "barleycorn_smd.h"
|
||||||
63
keyboards/barleycorn_smd/barleycorn_smd.h
Normal file
63
keyboards/barleycorn_smd/barleycorn_smd.h
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
/* Copyright 2021 Matthew Dias
|
||||||
|
*
|
||||||
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define XXX KC_NO
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define LAYOUT_all( \
|
||||||
|
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K1D, K0E, K0F, K0G, K0H, \
|
||||||
|
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2C, K1E, K1F, K1G, K1H, \
|
||||||
|
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, K2E, K2F, K2G, K2H, \
|
||||||
|
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H, \
|
||||||
|
K40, K41, K42, K46, K4A, K4B, K4C, K4D, K4E, K4F, K4G, K4H \
|
||||||
|
) { \
|
||||||
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H }, \
|
||||||
|
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H }, \
|
||||||
|
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G, K2H }, \
|
||||||
|
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H }, \
|
||||||
|
{ K40, K41, K42, XXX, XXX, XXX, K46, XXX, XXX, XXX, K4A, K4B, K4C, K4D, K4E, K4F, K4G, K4H } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_ansi( \
|
||||||
|
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K1D, K0E, K0F, K0G, K0H, \
|
||||||
|
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K2C, K1E, K1F, K1G, K1H, \
|
||||||
|
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, K2E, K2F, K2G, K2H, \
|
||||||
|
K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H, \
|
||||||
|
K40, K41, K42, K46, K4A, K4B, K4C, K4D, K4E, K4F, K4G, K4H \
|
||||||
|
) { \
|
||||||
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H }, \
|
||||||
|
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H }, \
|
||||||
|
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G, K2H }, \
|
||||||
|
{ K30, XXX, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H }, \
|
||||||
|
{ K40, K41, K42, XXX, XXX, XXX, K46, XXX, XXX, XXX, K4A, K4B, K4C, K4D, K4E, K4F, K4G, K4H } \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define LAYOUT_iso( \
|
||||||
|
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K1D, K0E, K0F, K0G, K0H, \
|
||||||
|
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1E, K1F, K1G, K1H, \
|
||||||
|
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G, K2H, \
|
||||||
|
K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H, \
|
||||||
|
K40, K41, K42, K46, K4A, K4B, K4C, K4D, K4E, K4F, K4G, K4H \
|
||||||
|
) { \
|
||||||
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H }, \
|
||||||
|
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H }, \
|
||||||
|
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G, K2H }, \
|
||||||
|
{ K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H }, \
|
||||||
|
{ K40, K41, K42, XXX, XXX, XXX, K46, XXX, XXX, XXX, K4A, K4B, K4C, K4D, K4E, K4F, K4G, K4H } \
|
||||||
|
}
|
||||||
111
keyboards/barleycorn_smd/config.h
Normal file
111
keyboards/barleycorn_smd/config.h
Normal file
@@ -0,0 +1,111 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2021 Matthew Dias
|
||||||
|
|
||||||
|
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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
#define VENDOR_ID 0x7033
|
||||||
|
#define PRODUCT_ID 0x4749
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER P3D Store
|
||||||
|
#define PRODUCT Barleycorn SMD
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 5
|
||||||
|
#define MATRIX_COLS 18
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Keyboard Matrix Assignments
|
||||||
|
*
|
||||||
|
* Change this to how you wired your keyboard
|
||||||
|
* COLS: AVR pins used for columns, left to right
|
||||||
|
* ROWS: AVR pins used for rows, top to bottom
|
||||||
|
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
||||||
|
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* A Custom matrix.c is used to poll the port expander C6 shows that the pins are hardwired there */
|
||||||
|
#define MATRIX_ROW_PINS { F5, F4, F1, F0, F6 }
|
||||||
|
#define MATRIX_COL_PINS { D4, D6, D7, B4, B5, B6, C6, C7, D5, D5, D5, D5, D5, D5, D5, D5, D5, D5 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
#define PORT_EXPANDER_ADDRESS 0x20
|
||||||
|
|
||||||
|
#define RGB_DI_PIN E6
|
||||||
|
#define RGBLED_NUM 15
|
||||||
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
#define RGBLIGHT_LED_MAP { 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 5 }
|
||||||
|
|
||||||
|
#define LED_CAPS_LOCK_PIN B2
|
||||||
|
#define LED_NUM_LOCK_PIN B3
|
||||||
|
|
||||||
|
/* COL2ROW, ROW2COL*/
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
#define USB_MAX_POWER_CONSUMPTION 400
|
||||||
|
|
||||||
|
|
||||||
|
/* 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
|
||||||
|
|
||||||
|
/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
|
||||||
|
* This is userful for the Windows task manager shortcut (ctrl+shift+esc).
|
||||||
|
*/
|
||||||
|
// #define GRAVE_ESC_CTRL_OVERRIDE
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* disable debug print */
|
||||||
|
//#define NO_DEBUG
|
||||||
|
|
||||||
|
/* disable print */
|
||||||
|
//#define NO_PRINT
|
||||||
|
|
||||||
|
/* disable action features */
|
||||||
|
//#define NO_ACTION_LAYER
|
||||||
|
//#define NO_ACTION_TAPPING
|
||||||
|
//#define NO_ACTION_ONESHOT
|
||||||
|
//#define NO_ACTION_MACRO
|
||||||
|
//#define NO_ACTION_FUNCTION
|
||||||
283
keyboards/barleycorn_smd/info.json
Normal file
283
keyboards/barleycorn_smd/info.json
Normal file
@@ -0,0 +1,283 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Barleycorn SMD",
|
||||||
|
"maintainer": "matthewdias",
|
||||||
|
"width": 19.5,
|
||||||
|
"height": 5,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_all": {
|
||||||
|
"layout": [
|
||||||
|
{ "label": "0,0", "x": 0, "y": 0 },
|
||||||
|
{ "label": "0,1", "x": 1, "y": 0 },
|
||||||
|
{ "label": "0,2", "x": 2, "y": 0 },
|
||||||
|
{ "label": "0,3", "x": 3, "y": 0 },
|
||||||
|
{ "label": "0,4", "x": 4, "y": 0 },
|
||||||
|
{ "label": "0,5", "x": 5, "y": 0 },
|
||||||
|
{ "label": "0,6", "x": 6, "y": 0 },
|
||||||
|
{ "label": "0,7", "x": 7, "y": 0 },
|
||||||
|
{ "label": "0,8", "x": 8, "y": 0 },
|
||||||
|
{ "label": "0,9", "x": 9, "y": 0 },
|
||||||
|
{ "label": "0,10", "x": 10, "y": 0 },
|
||||||
|
{ "label": "0,11", "x": 11, "y": 0 },
|
||||||
|
{ "label": "0,12", "x": 12, "y": 0 },
|
||||||
|
{ "label": "0,13", "x": 13, "y": 0 },
|
||||||
|
{ "label": "1,13", "x": 14, "y": 0 },
|
||||||
|
{ "label": "0,14", "x": 15.5, "y": 0 },
|
||||||
|
{ "label": "0,15", "x": 16.5, "y": 0 },
|
||||||
|
{ "label": "0,16", "x": 17.5, "y": 0 },
|
||||||
|
{ "label": "0,17", "x": 18.5, "y": 0 },
|
||||||
|
|
||||||
|
{ "label": "1,0", "x": 0, "y": 1, "w": 1.5 },
|
||||||
|
{ "label": "1,1", "x": 1.5, "y": 1 },
|
||||||
|
{ "label": "1,2", "x": 2.5, "y": 1 },
|
||||||
|
{ "label": "1,3", "x": 3.5, "y": 1 },
|
||||||
|
{ "label": "1,4", "x": 4.5, "y": 1 },
|
||||||
|
{ "label": "1,5", "x": 5.5, "y": 1 },
|
||||||
|
{ "label": "1,6", "x": 6.5, "y": 1 },
|
||||||
|
{ "label": "1,7", "x": 7.5, "y": 1 },
|
||||||
|
{ "label": "1,8", "x": 8.5, "y": 1 },
|
||||||
|
{ "label": "1,9", "x": 9.5, "y": 1 },
|
||||||
|
{ "label": "1,10", "x": 10.5, "y": 1 },
|
||||||
|
{ "label": "1,11", "x": 11.5, "y": 1 },
|
||||||
|
{ "label": "1,12", "x": 12.5, "y": 1 },
|
||||||
|
{ "label": "2,12", "x": 13.5, "y": 1, "w": 1.5 },
|
||||||
|
{ "label": "1,14", "x": 15.5, "y": 1 },
|
||||||
|
{ "label": "1,15", "x": 16.5, "y": 1 },
|
||||||
|
{ "label": "1,16", "x": 17.5, "y": 1 },
|
||||||
|
{ "label": "1,17", "x": 18.5, "y": 1 },
|
||||||
|
|
||||||
|
{ "label": "2,0", "x": 0, "y": 2, "w": 1.75 },
|
||||||
|
{ "label": "2,1", "x": 1.75, "y": 2 },
|
||||||
|
{ "label": "2,2", "x": 2.75, "y": 2 },
|
||||||
|
{ "label": "2,3", "x": 3.75, "y": 2 },
|
||||||
|
{ "label": "2,4", "x": 4.75, "y": 2 },
|
||||||
|
{ "label": "2,5", "x": 5.75, "y": 2 },
|
||||||
|
{ "label": "2,6", "x": 6.75, "y": 2 },
|
||||||
|
{ "label": "2,7", "x": 7.75, "y": 2 },
|
||||||
|
{ "label": "2,8", "x": 8.75, "y": 2 },
|
||||||
|
{ "label": "2,9", "x": 9.75, "y": 2 },
|
||||||
|
{ "label": "2,10", "x": 10.75, "y": 2 },
|
||||||
|
{ "label": "2,11", "x": 11.75, "y": 2 },
|
||||||
|
{ "label": "2,13", "x": 12.75, "y": 2, "w": 2.25 },
|
||||||
|
{ "label": "2,14", "x": 15.5, "y": 2 },
|
||||||
|
{ "label": "2,15", "x": 16.5, "y": 2 },
|
||||||
|
{ "label": "2,16", "x": 17.5, "y": 2 },
|
||||||
|
{ "label": "2,17", "x": 18.5, "y": 2 },
|
||||||
|
|
||||||
|
{ "label": "3,0", "x": 0, "y": 3, "w": 1.25 },
|
||||||
|
{ "label": "3,1", "x": 1.25, "y": 3 },
|
||||||
|
{ "label": "3,2", "x": 2.25, "y": 3 },
|
||||||
|
{ "label": "3,3", "x": 3.25, "y": 3 },
|
||||||
|
{ "label": "3,4", "x": 4.25, "y": 3 },
|
||||||
|
{ "label": "3,5", "x": 5.25, "y": 3 },
|
||||||
|
{ "label": "3,6", "x": 6.25, "y": 3 },
|
||||||
|
{ "label": "3,7", "x": 7.25, "y": 3 },
|
||||||
|
{ "label": "3,8", "x": 8.25, "y": 3 },
|
||||||
|
{ "label": "3,9", "x": 9.25, "y": 3 },
|
||||||
|
{ "label": "3,10", "x": 10.25, "y": 3 },
|
||||||
|
{ "label": "3,11", "x": 11.25, "y": 3 },
|
||||||
|
{ "label": "3,12", "x": 12.25, "y": 3, "w": 1.75 },
|
||||||
|
{ "label": "3,13", "x": 14.25, "y": 3.25 },
|
||||||
|
{ "label": "3,14", "x": 15.5, "y": 3 },
|
||||||
|
{ "label": "3,15", "x": 16.5, "y": 3 },
|
||||||
|
{ "label": "3,16", "x": 17.5, "y": 3 },
|
||||||
|
{ "label": "3,17", "x": 18.5, "y": 3 },
|
||||||
|
|
||||||
|
{ "label": "4,0", "x": 0, "y": 4, "w": 1.25 },
|
||||||
|
{ "label": "4,1", "x": 1.25, "y": 4, "w": 1.25 },
|
||||||
|
{ "label": "4,2", "x": 2.5, "y": 4, "w": 1.25 },
|
||||||
|
{ "label": "4,6", "x": 3.75, "y": 4, "w": 6.25 },
|
||||||
|
{ "label": "4,10", "x": 10, "y": 4, "w": 1.5 },
|
||||||
|
{ "label": "4,11", "x": 11.5, "y": 4, "w": 1.5 },
|
||||||
|
{ "label": "4,12", "x": 13.25, "y": 4.25 },
|
||||||
|
{ "label": "4,13", "x": 14.25, "y": 4.25 },
|
||||||
|
{ "label": "4,14", "x": 15.25, "y": 4.25 },
|
||||||
|
{ "label": "4,15", "x": 16.5, "y": 4 },
|
||||||
|
{ "label": "4,16", "x": 17.5, "y": 4 },
|
||||||
|
{ "label": "4,17", "x": 18.5, "y": 4 }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_ansi": {
|
||||||
|
"layout": [
|
||||||
|
{ "label": "0,0", "x": 0, "y": 0 },
|
||||||
|
{ "label": "0,1", "x": 1, "y": 0 },
|
||||||
|
{ "label": "0,2", "x": 2, "y": 0 },
|
||||||
|
{ "label": "0,3", "x": 3, "y": 0 },
|
||||||
|
{ "label": "0,4", "x": 4, "y": 0 },
|
||||||
|
{ "label": "0,5", "x": 5, "y": 0 },
|
||||||
|
{ "label": "0,6", "x": 6, "y": 0 },
|
||||||
|
{ "label": "0,7", "x": 7, "y": 0 },
|
||||||
|
{ "label": "0,8", "x": 8, "y": 0 },
|
||||||
|
{ "label": "0,9", "x": 9, "y": 0 },
|
||||||
|
{ "label": "0,10", "x": 10, "y": 0 },
|
||||||
|
{ "label": "0,11", "x": 11, "y": 0 },
|
||||||
|
{ "label": "0,12", "x": 12, "y": 0 },
|
||||||
|
{ "label": "0,13", "x": 13, "y": 0 },
|
||||||
|
{ "label": "1,13", "x": 14, "y": 0 },
|
||||||
|
{ "label": "0,14", "x": 15.5, "y": 0 },
|
||||||
|
{ "label": "0,15", "x": 16.5, "y": 0 },
|
||||||
|
{ "label": "0,16", "x": 17.5, "y": 0 },
|
||||||
|
{ "label": "0,17", "x": 18.5, "y": 0 },
|
||||||
|
|
||||||
|
{ "label": "1,0", "x": 0, "y": 1, "w": 1.5 },
|
||||||
|
{ "label": "1,1", "x": 1.5, "y": 1 },
|
||||||
|
{ "label": "1,2", "x": 2.5, "y": 1 },
|
||||||
|
{ "label": "1,3", "x": 3.5, "y": 1 },
|
||||||
|
{ "label": "1,4", "x": 4.5, "y": 1 },
|
||||||
|
{ "label": "1,5", "x": 5.5, "y": 1 },
|
||||||
|
{ "label": "1,6", "x": 6.5, "y": 1 },
|
||||||
|
{ "label": "1,7", "x": 7.5, "y": 1 },
|
||||||
|
{ "label": "1,8", "x": 8.5, "y": 1 },
|
||||||
|
{ "label": "1,9", "x": 9.5, "y": 1 },
|
||||||
|
{ "label": "1,10", "x": 10.5, "y": 1 },
|
||||||
|
{ "label": "1,11", "x": 11.5, "y": 1 },
|
||||||
|
{ "label": "1,12", "x": 12.5, "y": 1 },
|
||||||
|
{ "label": "2,12", "x": 13.5, "y": 1, "w": 1.5 },
|
||||||
|
{ "label": "1,14", "x": 15.5, "y": 1 },
|
||||||
|
{ "label": "1,15", "x": 16.5, "y": 1 },
|
||||||
|
{ "label": "1,16", "x": 17.5, "y": 1 },
|
||||||
|
{ "label": "1,17", "x": 18.5, "y": 1 },
|
||||||
|
|
||||||
|
{ "label": "2,0", "x": 0, "y": 2, "w": 1.75 },
|
||||||
|
{ "label": "2,1", "x": 1.75, "y": 2 },
|
||||||
|
{ "label": "2,2", "x": 2.75, "y": 2 },
|
||||||
|
{ "label": "2,3", "x": 3.75, "y": 2 },
|
||||||
|
{ "label": "2,4", "x": 4.75, "y": 2 },
|
||||||
|
{ "label": "2,5", "x": 5.75, "y": 2 },
|
||||||
|
{ "label": "2,6", "x": 6.75, "y": 2 },
|
||||||
|
{ "label": "2,7", "x": 7.75, "y": 2 },
|
||||||
|
{ "label": "2,8", "x": 8.75, "y": 2 },
|
||||||
|
{ "label": "2,9", "x": 9.75, "y": 2 },
|
||||||
|
{ "label": "2,10", "x": 10.75, "y": 2 },
|
||||||
|
{ "label": "2,11", "x": 11.75, "y": 2 },
|
||||||
|
{ "label": "2,13", "x": 12.75, "y": 2, "w": 2.25 },
|
||||||
|
{ "label": "2,14", "x": 15.5, "y": 2 },
|
||||||
|
{ "label": "2,15", "x": 16.5, "y": 2 },
|
||||||
|
{ "label": "2,16", "x": 17.5, "y": 2 },
|
||||||
|
{ "label": "2,17", "x": 18.5, "y": 2 },
|
||||||
|
|
||||||
|
{ "label": "3,0", "x": 0, "y": 3, "w": 2.25 },
|
||||||
|
{ "label": "3,2", "x": 2.25, "y": 3 },
|
||||||
|
{ "label": "3,3", "x": 3.25, "y": 3 },
|
||||||
|
{ "label": "3,4", "x": 4.25, "y": 3 },
|
||||||
|
{ "label": "3,5", "x": 5.25, "y": 3 },
|
||||||
|
{ "label": "3,6", "x": 6.25, "y": 3 },
|
||||||
|
{ "label": "3,7", "x": 7.25, "y": 3 },
|
||||||
|
{ "label": "3,8", "x": 8.25, "y": 3 },
|
||||||
|
{ "label": "3,9", "x": 9.25, "y": 3 },
|
||||||
|
{ "label": "3,10", "x": 10.25, "y": 3 },
|
||||||
|
{ "label": "3,11", "x": 11.25, "y": 3 },
|
||||||
|
{ "label": "3,12", "x": 12.25, "y": 3, "w": 1.75 },
|
||||||
|
{ "label": "3,13", "x": 14.25, "y": 3.25 },
|
||||||
|
{ "label": "3,14", "x": 15.5, "y": 3 },
|
||||||
|
{ "label": "3,15", "x": 16.5, "y": 3 },
|
||||||
|
{ "label": "3,16", "x": 17.5, "y": 3 },
|
||||||
|
{ "label": "3,17", "x": 18.5, "y": 3 },
|
||||||
|
|
||||||
|
{ "label": "4,0", "x": 0, "y": 4, "w": 1.25 },
|
||||||
|
{ "label": "4,1", "x": 1.25, "y": 4, "w": 1.25 },
|
||||||
|
{ "label": "4,2", "x": 2.5, "y": 4, "w": 1.25 },
|
||||||
|
{ "label": "4,6", "x": 3.75, "y": 4, "w": 6.25 },
|
||||||
|
{ "label": "4,10", "x": 10, "y": 4, "w": 1.5 },
|
||||||
|
{ "label": "4,11", "x": 11.5, "y": 4, "w": 1.5 },
|
||||||
|
{ "label": "4,12", "x": 13.25, "y": 4.25 },
|
||||||
|
{ "label": "4,13", "x": 14.25, "y": 4.25 },
|
||||||
|
{ "label": "4,14", "x": 15.25, "y": 4.25 },
|
||||||
|
{ "label": "4,15", "x": 16.5, "y": 4 },
|
||||||
|
{ "label": "4,16", "x": 17.5, "y": 4 },
|
||||||
|
{ "label": "4,17", "x": 18.5, "y": 4 }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"LAYOUT_iso": {
|
||||||
|
"layout": [
|
||||||
|
{ "label": "0,0", "x": 0, "y": 0 },
|
||||||
|
{ "label": "0,1", "x": 1, "y": 0 },
|
||||||
|
{ "label": "0,2", "x": 2, "y": 0 },
|
||||||
|
{ "label": "0,3", "x": 3, "y": 0 },
|
||||||
|
{ "label": "0,4", "x": 4, "y": 0 },
|
||||||
|
{ "label": "0,5", "x": 5, "y": 0 },
|
||||||
|
{ "label": "0,6", "x": 6, "y": 0 },
|
||||||
|
{ "label": "0,7", "x": 7, "y": 0 },
|
||||||
|
{ "label": "0,8", "x": 8, "y": 0 },
|
||||||
|
{ "label": "0,9", "x": 9, "y": 0 },
|
||||||
|
{ "label": "0,10", "x": 10, "y": 0 },
|
||||||
|
{ "label": "0,11", "x": 11, "y": 0 },
|
||||||
|
{ "label": "0,12", "x": 12, "y": 0 },
|
||||||
|
{ "label": "0,13", "x": 13, "y": 0 },
|
||||||
|
{ "label": "1,13", "x": 14, "y": 0 },
|
||||||
|
{ "label": "0,14", "x": 15.5, "y": 0 },
|
||||||
|
{ "label": "0,15", "x": 16.5, "y": 0 },
|
||||||
|
{ "label": "0,16", "x": 17.5, "y": 0 },
|
||||||
|
{ "label": "0,17", "x": 18.5, "y": 0 },
|
||||||
|
|
||||||
|
{ "label": "1,0", "x": 0, "y": 1, "w": 1.5 },
|
||||||
|
{ "label": "1,1", "x": 1.5, "y": 1 },
|
||||||
|
{ "label": "1,2", "x": 2.5, "y": 1 },
|
||||||
|
{ "label": "1,3", "x": 3.5, "y": 1 },
|
||||||
|
{ "label": "1,4", "x": 4.5, "y": 1 },
|
||||||
|
{ "label": "1,5", "x": 5.5, "y": 1 },
|
||||||
|
{ "label": "1,6", "x": 6.5, "y": 1 },
|
||||||
|
{ "label": "1,7", "x": 7.5, "y": 1 },
|
||||||
|
{ "label": "1,8", "x": 8.5, "y": 1 },
|
||||||
|
{ "label": "1,9", "x": 9.5, "y": 1 },
|
||||||
|
{ "label": "1,10", "x": 10.5, "y": 1 },
|
||||||
|
{ "label": "1,11", "x": 11.5, "y": 1 },
|
||||||
|
{ "label": "1,12", "x": 12.5, "y": 1 },
|
||||||
|
{ "label": "1,14", "x": 15.5, "y": 1 },
|
||||||
|
{ "label": "1,15", "x": 16.5, "y": 1 },
|
||||||
|
{ "label": "1,16", "x": 17.5, "y": 1 },
|
||||||
|
{ "label": "1,17", "x": 18.5, "y": 1 },
|
||||||
|
|
||||||
|
{ "label": "2,0", "x": 0, "y": 2, "w": 1.75 },
|
||||||
|
{ "label": "2,1", "x": 1.75, "y": 2 },
|
||||||
|
{ "label": "2,2", "x": 2.75, "y": 2 },
|
||||||
|
{ "label": "2,3", "x": 3.75, "y": 2 },
|
||||||
|
{ "label": "2,4", "x": 4.75, "y": 2 },
|
||||||
|
{ "label": "2,5", "x": 5.75, "y": 2 },
|
||||||
|
{ "label": "2,6", "x": 6.75, "y": 2 },
|
||||||
|
{ "label": "2,7", "x": 7.75, "y": 2 },
|
||||||
|
{ "label": "2,8", "x": 8.75, "y": 2 },
|
||||||
|
{ "label": "2,9", "x": 9.75, "y": 2 },
|
||||||
|
{ "label": "2,10", "x": 10.75, "y": 2 },
|
||||||
|
{ "label": "2,11", "x": 11.75, "y": 2 },
|
||||||
|
{ "label": "2,12", "x": 12.75, "y": 2 },
|
||||||
|
{ "label": "2,13", "x": 13.75, "y": 1, "w": 1.25, "h": 2 },
|
||||||
|
{ "label": "2,14", "x": 15.5, "y": 2 },
|
||||||
|
{ "label": "2,15", "x": 16.5, "y": 2 },
|
||||||
|
{ "label": "2,16", "x": 17.5, "y": 2 },
|
||||||
|
{ "label": "2,17", "x": 18.5, "y": 2 },
|
||||||
|
|
||||||
|
{ "label": "3,0", "x": 0, "y": 3, "w": 1.25 },
|
||||||
|
{ "label": "3,1", "x": 1.25, "y": 3 },
|
||||||
|
{ "label": "3,2", "x": 2.25, "y": 3 },
|
||||||
|
{ "label": "3,3", "x": 3.25, "y": 3 },
|
||||||
|
{ "label": "3,4", "x": 4.25, "y": 3 },
|
||||||
|
{ "label": "3,5", "x": 5.25, "y": 3 },
|
||||||
|
{ "label": "3,6", "x": 6.25, "y": 3 },
|
||||||
|
{ "label": "3,7", "x": 7.25, "y": 3 },
|
||||||
|
{ "label": "3,8", "x": 8.25, "y": 3 },
|
||||||
|
{ "label": "3,9", "x": 9.25, "y": 3 },
|
||||||
|
{ "label": "3,10", "x": 10.25, "y": 3 },
|
||||||
|
{ "label": "3,11", "x": 11.25, "y": 3 },
|
||||||
|
{ "label": "3,12", "x": 12.25, "y": 3, "w": 1.75 },
|
||||||
|
{ "label": "3,13", "x": 14.25, "y": 3.25 },
|
||||||
|
{ "label": "3,14", "x": 15.5, "y": 3 },
|
||||||
|
{ "label": "3,15", "x": 16.5, "y": 3 },
|
||||||
|
{ "label": "3,16", "x": 17.5, "y": 3 },
|
||||||
|
{ "label": "3,17", "x": 18.5, "y": 3 },
|
||||||
|
|
||||||
|
{ "label": "4,0", "x": 0, "y": 4, "w": 1.25 },
|
||||||
|
{ "label": "4,1", "x": 1.25, "y": 4, "w": 1.25 },
|
||||||
|
{ "label": "4,2", "x": 2.5, "y": 4, "w": 1.25 },
|
||||||
|
{ "label": "4,6", "x": 3.75, "y": 4, "w": 6.25 },
|
||||||
|
{ "label": "4,10", "x": 10, "y": 4, "w": 1.5 },
|
||||||
|
{ "label": "4,11", "x": 11.5, "y": 4, "w": 1.5 },
|
||||||
|
{ "label": "4,12", "x": 13.25, "y": 4.25 },
|
||||||
|
{ "label": "4,13", "x": 14.25, "y": 4.25 },
|
||||||
|
{ "label": "4,14", "x": 15.25, "y": 4.25 },
|
||||||
|
{ "label": "4,15", "x": 16.5, "y": 4 },
|
||||||
|
{ "label": "4,16", "x": 17.5, "y": 4 },
|
||||||
|
{ "label": "4,17", "x": 18.5, "y": 4 }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
34
keyboards/barleycorn_smd/keymaps/default/keymap.c
Normal file
34
keyboards/barleycorn_smd/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
/* Copyright 2021 Matthew Dias
|
||||||
|
*
|
||||||
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
//This is the ANSI version of the PCB
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_ansi( /* Base */
|
||||||
|
KC_GESC, 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_DEL, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
|
||||||
|
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_BSLS, KC_P7, KC_P8, KC_P9, KC_PEQL,
|
||||||
|
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_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, KC_BSPC,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT),
|
||||||
|
|
||||||
|
[1] = LAYOUT_ansi( /* FN */
|
||||||
|
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_VOLU, KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
};
|
||||||
11
keyboards/barleycorn_smd/keymaps/default/readme.md
Normal file
11
keyboards/barleycorn_smd/keymaps/default/readme.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# The default keymap for Barleycorn
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Default layer is normal ANSI and Fn layer is used for Volume control and arrow cluster.
|
||||||
|
|
||||||
|
Alternative ANSI layouts:
|
||||||
|
|
||||||
|

|
||||||
34
keyboards/barleycorn_smd/keymaps/iso/keymap.c
Normal file
34
keyboards/barleycorn_smd/keymaps/iso/keymap.c
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
/* Copyright 2021 Matthew Dias
|
||||||
|
*
|
||||||
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
//This is the ISO version of the PCB
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_iso( /* Base */
|
||||||
|
KC_GESC, 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_DEL, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
|
||||||
|
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_P7, KC_P8, KC_P9, KC_PEQL,
|
||||||
|
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_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
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_UP, KC_P1, KC_P2, KC_P3, KC_BSPC,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT),
|
||||||
|
|
||||||
|
[1] = LAYOUT_iso( /* FN */
|
||||||
|
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_VOLU, KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
};
|
||||||
11
keyboards/barleycorn_smd/keymaps/iso/readme.md
Normal file
11
keyboards/barleycorn_smd/keymaps/iso/readme.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# The default keymap for ISO Barleycorn
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Default layer is normal ISO and Fn layer is used for Volume control and arrow cluster
|
||||||
|
|
||||||
|
Alternative ISO layouts:
|
||||||
|
|
||||||
|

|
||||||
48
keyboards/barleycorn_smd/keymaps/via/keymap.c
Normal file
48
keyboards/barleycorn_smd/keymaps/via/keymap.c
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
/* Copyright 2021 Matthew Dias
|
||||||
|
*
|
||||||
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
// This keymaps is used for VIA, it reflects the default keymap.
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_all( /* Base */
|
||||||
|
KC_GESC, 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_DEL, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
|
||||||
|
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_BSLS, KC_P7, KC_P8, KC_P9, KC_PEQL,
|
||||||
|
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_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||||
|
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_UP, KC_P1, KC_P2, KC_P3, KC_BSPC,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT, KC_PENT),
|
||||||
|
|
||||||
|
[1] = LAYOUT_all( /* FN */
|
||||||
|
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_VOLU, KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
|
||||||
|
[2] = LAYOUT_all( /* Empty for dynamic keymaps */
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
|
||||||
|
[3] = LAYOUT_all( /* Empty for dynamic keymaps */
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
|
||||||
|
};
|
||||||
1
keyboards/barleycorn_smd/keymaps/via/readme.md
Normal file
1
keyboards/barleycorn_smd/keymaps/via/readme.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# Compile with this keymap to use VIA
|
||||||
1
keyboards/barleycorn_smd/keymaps/via/rules.mk
Normal file
1
keyboards/barleycorn_smd/keymaps/via/rules.mk
Normal file
@@ -0,0 +1 @@
|
|||||||
|
VIA_ENABLE = yes
|
||||||
138
keyboards/barleycorn_smd/matrix.c
Normal file
138
keyboards/barleycorn_smd/matrix.c
Normal file
@@ -0,0 +1,138 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2021 Matthew Dias
|
||||||
|
|
||||||
|
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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include "wait.h"
|
||||||
|
#include "quantum.h"
|
||||||
|
#include "i2c_master.h"
|
||||||
|
|
||||||
|
static const pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
|
||||||
|
static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
|
||||||
|
|
||||||
|
static void unselect_rows(void) {
|
||||||
|
for(uint8_t x = 0; x < MATRIX_ROWS; x++) {
|
||||||
|
setPinInputHigh(row_pins[x]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void select_row(uint8_t row) {
|
||||||
|
setPinOutput(row_pins[row]);
|
||||||
|
writePinLow(row_pins[row]);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void unselect_row(uint8_t row) {
|
||||||
|
setPinInputHigh(row_pins[row]);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void init_pins(void) {
|
||||||
|
unselect_rows();
|
||||||
|
// Set I/O
|
||||||
|
uint8_t send_data[2] = { 0xFF, 0x03};
|
||||||
|
i2c_writeReg((PORT_EXPANDER_ADDRESS << 1), 0x00, &send_data[0], 2, 20);
|
||||||
|
// Set Pull-up
|
||||||
|
i2c_writeReg((PORT_EXPANDER_ADDRESS << 1), 0x0C, &send_data[0], 2, 20);
|
||||||
|
|
||||||
|
for (uint8_t x = 0; x < MATRIX_COLS; x++) {
|
||||||
|
if ( x < 8 ) {
|
||||||
|
setPinInputHigh(col_pins[x]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_init_custom(void) {
|
||||||
|
// TODO: initialize hardware here
|
||||||
|
// Initialize I2C
|
||||||
|
i2c_init();
|
||||||
|
|
||||||
|
// initialize key pins
|
||||||
|
init_pins();
|
||||||
|
wait_ms(50);
|
||||||
|
}
|
||||||
|
|
||||||
|
static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) {
|
||||||
|
// Store last value of row prior to reading
|
||||||
|
matrix_row_t last_row_value = current_matrix[current_row];
|
||||||
|
|
||||||
|
// Clear data in matrix row
|
||||||
|
current_matrix[current_row] = 0;
|
||||||
|
|
||||||
|
// Select row and wait for row selecton to stabilize
|
||||||
|
select_row(current_row);
|
||||||
|
matrix_io_delay();
|
||||||
|
|
||||||
|
uint8_t port_expander_col_buffer[2];
|
||||||
|
i2c_readReg((PORT_EXPANDER_ADDRESS << 1), 0x12, &port_expander_col_buffer[0], 2, 20);
|
||||||
|
|
||||||
|
// For each col...
|
||||||
|
for(uint8_t col_index = 0; col_index < MATRIX_COLS; col_index++) {
|
||||||
|
uint8_t pin_state;
|
||||||
|
// Select the col pin to read (active low)
|
||||||
|
switch (col_index) {
|
||||||
|
case 8 :
|
||||||
|
pin_state = port_expander_col_buffer[0] & (1 << 0);
|
||||||
|
break;
|
||||||
|
case 9 :
|
||||||
|
pin_state = port_expander_col_buffer[0] & (1 << 1);
|
||||||
|
break;
|
||||||
|
case 10 :
|
||||||
|
pin_state = port_expander_col_buffer[0] & (1 << 2);
|
||||||
|
break;
|
||||||
|
case 11 :
|
||||||
|
pin_state = port_expander_col_buffer[0] & (1 << 3);
|
||||||
|
break;
|
||||||
|
case 12 :
|
||||||
|
pin_state = port_expander_col_buffer[0] & (1 << 4);
|
||||||
|
break;
|
||||||
|
case 13 :
|
||||||
|
pin_state = port_expander_col_buffer[0] & (1 << 5);
|
||||||
|
break;
|
||||||
|
case 14 :
|
||||||
|
pin_state = port_expander_col_buffer[0] & (1 << 6);
|
||||||
|
break;
|
||||||
|
case 15 :
|
||||||
|
pin_state = port_expander_col_buffer[0] & (1 << 7);
|
||||||
|
break;
|
||||||
|
case 16 :
|
||||||
|
pin_state = port_expander_col_buffer[1] & (1 << 0);
|
||||||
|
break;
|
||||||
|
case 17 :
|
||||||
|
pin_state = port_expander_col_buffer[1] & (1 << 1);
|
||||||
|
break;
|
||||||
|
default :
|
||||||
|
pin_state = readPin(col_pins[col_index]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Populate the matrix row with the state of the col pin
|
||||||
|
current_matrix[current_row] |= pin_state ? 0 : (MATRIX_ROW_SHIFTER << col_index);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Unselect row
|
||||||
|
unselect_row(current_row);
|
||||||
|
|
||||||
|
return (last_row_value != current_matrix[current_row]);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool matrix_scan_custom(matrix_row_t current_matrix[]) {
|
||||||
|
bool matrix_has_changed = false;
|
||||||
|
|
||||||
|
// Set row, read cols
|
||||||
|
for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) {
|
||||||
|
matrix_has_changed |= read_cols_on_row(current_matrix, current_row);
|
||||||
|
}
|
||||||
|
|
||||||
|
return matrix_has_changed;
|
||||||
|
}
|
||||||
19
keyboards/barleycorn_smd/readme.md
Normal file
19
keyboards/barleycorn_smd/readme.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# Barleycorn SMD
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
An f-row less compact 1800 keyboard with SMD components. Based on Barleycorn by Yiancar.
|
||||||
|
|
||||||
|
- Keyboard Maintainer: matthewdias
|
||||||
|
- Hardware Supported: Barleycorn SMD
|
||||||
|
- Hardware Availability: https://p3dstore.com
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make barleycorn_smd:default
|
||||||
|
|
||||||
|
Flashing example for this keyboard:
|
||||||
|
|
||||||
|
make barleycorn_smd:default:flash
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
27
keyboards/barleycorn_smd/rules.mk
Normal file
27
keyboards/barleycorn_smd/rules.mk
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE = no # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth
|
||||||
|
AUDIO_ENABLE = no # Audio output
|
||||||
|
|
||||||
|
CUSTOM_MATRIX = lite
|
||||||
|
|
||||||
|
SRC += matrix.c
|
||||||
|
QUANTUM_LIB_SRC += i2c_master.c
|
||||||
@@ -29,3 +29,5 @@ NKRO_ENABLE = no # USB Nkey Rollover
|
|||||||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||||
OLED_DRIVER_ENABLE = yes # Disable OLED driver.
|
OLED_DRIVER_ENABLE = yes # Disable OLED driver.
|
||||||
UNICODE_ENABLE = no # Unicode
|
UNICODE_ENABLE = no # Unicode
|
||||||
|
|
||||||
|
LTO_ENABLE = yes
|
||||||
@@ -16,19 +16,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "bfake.h"
|
#include "bfake.h"
|
||||||
|
|
||||||
void keyboard_pre_init_kb(void) {
|
|
||||||
led_init_ports();
|
|
||||||
keyboard_pre_init_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void led_init_ports(void) {
|
|
||||||
setPinOutput(D1);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool led_update_kb(led_t led_state) {
|
|
||||||
if (led_update_user(led_state)) {
|
|
||||||
writePin(D1, led_state.caps_lock);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define DIODE_DIRECTION COL2ROW
|
#define DIODE_DIRECTION COL2ROW
|
||||||
#define DEBOUNCE 5
|
#define DEBOUNCE 5
|
||||||
|
|
||||||
|
#define LED_CAPS_LOCK_PIN D1
|
||||||
|
|
||||||
#define BACKLIGHT_PIN D4
|
#define BACKLIGHT_PIN D4
|
||||||
#define BACKLIGHT_LEVELS 3
|
#define BACKLIGHT_LEVELS 3
|
||||||
|
|
||||||
|
|||||||
@@ -39,4 +39,15 @@ led_config_t g_led_config = {
|
|||||||
2, 2, 2, 2, 2, 2
|
2, 2, 2, 2, 2, 2
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
void suspend_power_down_kb(void) {
|
||||||
|
rgb_matrix_set_suspend_state(true);
|
||||||
|
suspend_power_down_user();
|
||||||
|
}
|
||||||
|
|
||||||
|
void suspend_wakeup_init_kb(void) {
|
||||||
|
rgb_matrix_set_suspend_state(false);
|
||||||
|
suspend_wakeup_init_user();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -50,3 +50,6 @@
|
|||||||
#ifdef RGB_DI_PIN
|
#ifdef RGB_DI_PIN
|
||||||
#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
|
# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -26,34 +26,19 @@ led_config_t g_led_config = { {
|
|||||||
{ 58, 59, 60, NO_LED, NO_LED, NO_LED, 61, NO_LED, NO_LED, 62, 63, 64, 65, 66, 67 }
|
{ 58, 59, 60, NO_LED, NO_LED, NO_LED, 61, NO_LED, NO_LED, 62, 63, 64, 65, 66, 67 }
|
||||||
}, {
|
}, {
|
||||||
// LED Index to Physical Position
|
// LED Index to Physical Position
|
||||||
//I have no idea how to calculate this based on a templete, nor do have a good enough ruler to measure this.
|
{ 0, 0}, { 15, 0}, { 30, 0}, { 45, 0}, { 60, 0}, { 75, 0}, { 90, 0}, {105, 0}, {120, 0}, {135, 0}, {150, 0}, {165, 0}, {180, 0}, {202, 0}, {225, 0}, // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace, Delete
|
||||||
// Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace, Delete
|
{ 4, 16}, { 22, 16}, { 37, 16}, { 52, 16}, { 67, 16}, { 82, 16}, { 97, 16}, {112, 16}, {127, 16}, {142, 16}, {157, 16}, {172, 16}, {187, 16}, {206, 16}, {225, 16}, // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], backslash , Home
|
||||||
{ 0, 0 }, { 15, 0 }, { 30, 0 }, { 45, 0 }, { 60, 0 }, { 75, 0 }, { 90, 0 }, { 105, 0 }, { 120, 0 }, { 135, 0 }, { 150, 0 }, { 165, 0 }, { 180, 0 }, { 202, 0 }, { 225, 0 },
|
{ 6, 32}, { 26, 32}, { 41, 32}, { 56, 32}, { 71, 32}, { 86, 32}, {101, 32}, {116, 32}, {131, 32}, {146, 32}, {161, 32}, {176, 32}, {201, 32}, {225, 32}, // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter, Page up
|
||||||
// Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], backslash , Home
|
{ 9, 48}, { 34, 48}, { 49, 48}, { 64, 48}, { 79, 48}, { 94, 48}, {109, 48}, {124, 48}, {139, 48}, {154, 48}, {169, 48}, {189, 48}, { 10, 48}, {225, 48}, // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, Page Down
|
||||||
{ 4, 16 }, { 22, 16 }, { 37, 16 }, { 52, 16 }, { 67, 16 }, { 82, 16 }, { 97, 16 }, { 112, 16 }, { 127, 16 }, { 142, 16 }, { 157, 16 }, { 172, 16 }, { 187, 16 }, { 206, 16 }, { 225, 16 },
|
{ 2, 64}, { 21, 64}, { 39, 64}, { 94, 64}, {148, 64}, {163, 64}, {178, 64}, {193, 64}, {208, 64}, {225, 64}, // Ctrl, GUI, Alt, Space, RAlt, FN, Ctrl, Left, Down, Right
|
||||||
// Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter, Page up
|
{185, 45}, {160, 45}, {125, 45}, { 95, 45}, { 60, 45}, { 25, 45} // UNDERGLOW
|
||||||
{ 6, 32 }, { 26, 32 }, { 41, 32 }, { 56, 32 }, { 71, 32 }, { 86, 32 }, { 101, 32 }, { 116, 32 }, { 131, 32 }, { 146, 32 }, { 161, 32 }, { 176, 32 }, { 201, 32 }, { 225, 32 },
|
|
||||||
// LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, Page Down
|
|
||||||
{ 9, 48 }, { 34, 48 }, { 49, 48 }, { 64, 48 }, { 79, 48 }, { 94, 48 }, { 109, 48 }, { 124, 48 }, { 139, 48 }, { 154, 48 }, { 169, 48 }, { 189, 48 }, { 210, 48 }, { 225, 48 },
|
|
||||||
// Ctrl, GUI, Alt, Space, RAlt, FN, Ctrl, Left, Down, Right
|
|
||||||
{ 2, 64 }, { 21, 64 }, { 39, 64 }, { 94, 64 }, { 148, 64 }, { 163, 64 }, { 178, 64 }, { 193, 64 }, { 208, 64 }, { 225, 64 },
|
|
||||||
// UNDERGLOW
|
|
||||||
{ 185, 45 }, { 160, 45 }, { 125, 45 }, { 95, 45 }, { 60, 45 }, { 25, 45 }
|
|
||||||
}, {
|
}, {
|
||||||
// LED Index to Flag
|
// LED Index to Flag
|
||||||
//need to recheck what should be a modifier
|
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace, Delete
|
||||||
|
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], backslash , Home
|
||||||
// Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace, Delete
|
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter, Page up
|
||||||
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
|
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1, // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, Page Down
|
||||||
// Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], backslash , Home
|
1, 1, 1, 4, 1, 1, 1, 1, 1, 1, // Ctrl, GUI, Alt, Space, RAlt, FN, Ctrl, Left, Down, Right
|
||||||
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1,
|
2, 2, 2, 2, 2, 2 // UNDERGLOW
|
||||||
// Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter, Page up
|
|
||||||
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
|
|
||||||
// LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, Page Down
|
|
||||||
1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1,
|
|
||||||
// Ctrl, GUI, Alt, Space, RAlt, FN, Ctrl, Left, Down, Right
|
|
||||||
1, 1, 1, 4, 1, 1, 1, 1, 1, 1,
|
|
||||||
// UNDERGLOW
|
|
||||||
2, 2, 2, 2, 2, 2
|
|
||||||
} };
|
} };
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -56,30 +56,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
// The number of LEDs connected
|
// The number of LEDs connected
|
||||||
#define DRIVER_LED_TOTAL 74
|
#define DRIVER_LED_TOTAL 74
|
||||||
#ifdef RGB_DI_PIN
|
#ifdef RGB_DI_PIN
|
||||||
#define RGBLED_NUM 74
|
#define RGBLED_NUM 74
|
||||||
//# define RGBLIGHT_HUE_STEP 8
|
#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
||||||
//# define RGBLIGHT_SAT_STEP 8
|
|
||||||
//# define RGBLIGHT_VAL_STEP 8
|
|
||||||
//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
|
|
||||||
//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
|
||||||
/*== all animations enable ==*/
|
|
||||||
//# define RGBLIGHT_ANIMATIONS
|
|
||||||
/*== or choose animations ==*/
|
|
||||||
//# define RGBLIGHT_EFFECT_BREATHING
|
|
||||||
//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
|
||||||
//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
|
|
||||||
//# define RGBLIGHT_EFFECT_SNAKE
|
|
||||||
//# define RGBLIGHT_EFFECT_KNIGHT
|
|
||||||
//# define RGBLIGHT_EFFECT_CHRISTMAS
|
|
||||||
//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
|
|
||||||
//# define RGBLIGHT_EFFECT_RGB_TEST
|
|
||||||
//# define RGBLIGHT_EFFECT_ALTERNATING
|
|
||||||
/*== customize breathing effect ==*/
|
|
||||||
/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
|
|
||||||
//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
|
|
||||||
/*==== use exp() and sin() ====*/
|
|
||||||
//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
|
|
||||||
//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
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_DEL,
|
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_DEL,
|
||||||
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_BSLS, KC_HOME,
|
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_BSLS, KC_HOME,
|
||||||
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_ENT, KC_PGUP,
|
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_ENT, KC_PGUP,
|
||||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, KC_UP, KC_PGDN,
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,
|
||||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1),KC_RCTRL, KC_LEFT, KC_DOWN, KC_RGHT
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1),KC_RCTRL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
),
|
),
|
||||||
[1] = LAYOUT_65_ansi(
|
[1] = LAYOUT_65_ansi(
|
||||||
@@ -41,7 +41,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Templete
|
Template
|
||||||
[ ] = LAYOUT_65_ansi(
|
[ ] = LAYOUT_65_ansi(
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
|||||||
55
keyboards/bm68rgb/keymaps/via/keymap.c
Normal file
55
keyboards/bm68rgb/keymaps/via/keymap.c
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
/* Copyright 2021 peepeetee
|
||||||
|
*
|
||||||
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
// Defines names for use in layer keycodes and the keymap
|
||||||
|
// enum layer_names {
|
||||||
|
// _BASE,
|
||||||
|
// _FN
|
||||||
|
// };
|
||||||
|
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_65_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, KC_DEL,
|
||||||
|
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_BSLS, KC_HOME,
|
||||||
|
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_ENT, KC_PGUP,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, KC_UP, KC_PGDN,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1),KC_RCTRL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
|
),
|
||||||
|
[1] = LAYOUT_65_ansi(
|
||||||
|
KC_GRAVE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______,
|
||||||
|
_______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
[2] = LAYOUT_65_ansi(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
[3] = LAYOUT_65_ansi(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
|
||||||
|
};
|
||||||
1
keyboards/bm68rgb/keymaps/via/readme.md
Normal file
1
keyboards/bm68rgb/keymaps/via/readme.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# The default VIA keymap for bm68rgb
|
||||||
1
keyboards/bm68rgb/keymaps/via/rules.mk
Normal file
1
keyboards/bm68rgb/keymaps/via/rules.mk
Normal file
@@ -0,0 +1 @@
|
|||||||
|
VIA_ENABLE = yes
|
||||||
@@ -7,7 +7,7 @@ BOOTLOADER = atmel-dfu
|
|||||||
# Build Options
|
# Build Options
|
||||||
# change yes to no to disable
|
# change yes to no to disable
|
||||||
#
|
#
|
||||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
BOOTMAGIC_ENABLE = full # Virtual DIP switch configuration
|
||||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
CONSOLE_ENABLE = no # Console for debug
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
@@ -22,6 +22,6 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth
|
|||||||
AUDIO_ENABLE = no # Audio output
|
AUDIO_ENABLE = no # Audio output
|
||||||
RGB_MATRIX_ENABLE = yes
|
RGB_MATRIX_ENABLE = yes
|
||||||
RGB_MATRIX_DRIVER = WS2812
|
RGB_MATRIX_DRIVER = WS2812
|
||||||
#LTO_ENABLE = yes
|
LTO_ENABLE = yes
|
||||||
|
|
||||||
LAYOUTS = 65_ansi
|
LAYOUTS = 65_ansi
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"width": 12,
|
"width": 12,
|
||||||
"height": 5,
|
"height": 5,
|
||||||
"layouts": {
|
"layouts": {
|
||||||
"LAYOUT": {
|
"LAYOUT_ortho_5x12": {
|
||||||
"layout": [
|
"layout": [
|
||||||
{ "label": "K01", "x": 0, "y": 0 },
|
{ "label": "K01", "x": 0, "y": 0 },
|
||||||
{ "label": "K02", "x": 1, "y": 0 },
|
{ "label": "K02", "x": 1, "y": 0 },
|
||||||
|
|||||||
@@ -2,3 +2,4 @@ OLED_DRIVER_ENABLE = yes
|
|||||||
VIA_ENABLE = yes
|
VIA_ENABLE = yes
|
||||||
EXTRAKEY_ENABLE = yes
|
EXTRAKEY_ENABLE = yes
|
||||||
RGBLIGHT_ENABLE = yes
|
RGBLIGHT_ENABLE = yes
|
||||||
|
LTO_ENABLE = yes
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#ifdef RGB_MATRIX_ENABLE
|
#ifdef RGB_MATRIX_ENABLE
|
||||||
#define DRIVER_LED_TOTAL 24 // Number of LEDs
|
#define DRIVER_LED_TOTAL 24 // Number of LEDs
|
||||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
|
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
|
||||||
|
#define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -35,4 +35,15 @@ led_config_t g_led_config = { {
|
|||||||
LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL,
|
LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL,
|
||||||
LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL
|
LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL, LED_FLAG_ALL
|
||||||
} };
|
} };
|
||||||
|
|
||||||
|
|
||||||
|
void suspend_power_down_kb(void) {
|
||||||
|
rgb_matrix_set_suspend_state(true);
|
||||||
|
suspend_power_down_user();
|
||||||
|
}
|
||||||
|
|
||||||
|
void suspend_wakeup_init_kb(void) {
|
||||||
|
rgb_matrix_set_suspend_state(false);
|
||||||
|
suspend_wakeup_init_user();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,700 +1,27 @@
|
|||||||
|
/* Copyright 2020 QMK
|
||||||
|
*
|
||||||
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
|
* This file was auto-generated by:
|
||||||
|
* `qmk chibios-confmigrate -i keyboards/boston/chconf.h -r platforms/chibios/common/configs/chconf.h`
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @file rt/templates/chconf.h
|
|
||||||
* @brief Configuration file template.
|
|
||||||
* @details A copy of this file must be placed in each project directory, it
|
|
||||||
* contains the application specific kernel settings.
|
|
||||||
*
|
|
||||||
* @addtogroup config
|
|
||||||
* @details Kernel related settings and hooks.
|
|
||||||
* @{
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CHCONF_H
|
|
||||||
# define CHCONF_H
|
|
||||||
|
|
||||||
# define _CHIBIOS_RT_CONF_
|
|
||||||
# define _CHIBIOS_RT_CONF_VER_6_0_
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/**
|
|
||||||
* @name System timers settings
|
|
||||||
* @{
|
|
||||||
*/
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief System time counter resolution.
|
|
||||||
* @note Allowed values are 16 or 32 bits.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_ST_RESOLUTION)
|
|
||||||
# define CH_CFG_ST_RESOLUTION 32
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief System tick frequency.
|
|
||||||
* @details Frequency of the system timer that drives the system ticks. This
|
|
||||||
* setting also defines the system tick time unit.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_ST_FREQUENCY)
|
|
||||||
# define CH_CFG_ST_FREQUENCY 10000
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Time intervals data size.
|
|
||||||
* @note Allowed values are 16, 32 or 64 bits.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_INTERVALS_SIZE)
|
|
||||||
# define CH_CFG_INTERVALS_SIZE 32
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Time types data size.
|
|
||||||
* @note Allowed values are 16 or 32 bits.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_TIME_TYPES_SIZE)
|
|
||||||
# define CH_CFG_TIME_TYPES_SIZE 32
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Time delta constant for the tick-less mode.
|
|
||||||
* @note If this value is zero then the system uses the classic
|
|
||||||
* periodic tick. This value represents the minimum number
|
|
||||||
* of ticks that is safe to specify in a timeout directive.
|
|
||||||
* The value one is not valid, timeouts are rounded up to
|
|
||||||
* this value.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_ST_TIMEDELTA)
|
|
||||||
# define CH_CFG_ST_TIMEDELTA 2
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/**
|
|
||||||
* @name Kernel parameters and options
|
|
||||||
* @{
|
|
||||||
*/
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Round robin interval.
|
|
||||||
* @details This constant is the number of system ticks allowed for the
|
|
||||||
* threads before preemption occurs. Setting this value to zero
|
|
||||||
* disables the preemption for threads with equal priority and the
|
|
||||||
* round robin becomes cooperative. Note that higher priority
|
|
||||||
* threads can still preempt, the kernel is always preemptive.
|
|
||||||
* @note Disabling the round robin preemption makes the kernel more compact
|
|
||||||
* and generally faster.
|
|
||||||
* @note The round robin preemption is not supported in tickless mode and
|
|
||||||
* must be set to zero in that case.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_TIME_QUANTUM)
|
|
||||||
# define CH_CFG_TIME_QUANTUM 0
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Managed RAM size.
|
|
||||||
* @details Size of the RAM area to be managed by the OS. If set to zero
|
|
||||||
* then the whole available RAM is used. The core memory is made
|
|
||||||
* available to the heap allocator and/or can be used directly through
|
|
||||||
* the simplified core memory allocator.
|
|
||||||
*
|
|
||||||
* @note In order to let the OS manage the whole RAM the linker script must
|
|
||||||
* provide the @p __heap_base__ and @p __heap_end__ symbols.
|
|
||||||
* @note Requires @p CH_CFG_USE_MEMCORE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_MEMCORE_SIZE)
|
|
||||||
# define CH_CFG_MEMCORE_SIZE 0
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Idle thread automatic spawn suppression.
|
|
||||||
* @details When this option is activated the function @p chSysInit()
|
|
||||||
* does not spawn the idle thread. The application @p main()
|
|
||||||
* function becomes the idle thread and must implement an
|
|
||||||
* infinite loop.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_NO_IDLE_THREAD)
|
|
||||||
# define CH_CFG_NO_IDLE_THREAD FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/**
|
|
||||||
* @name Performance options
|
|
||||||
* @{
|
|
||||||
*/
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief OS optimization.
|
|
||||||
* @details If enabled then time efficient rather than space efficient code
|
|
||||||
* is used when two possible implementations exist.
|
|
||||||
*
|
|
||||||
* @note This is not related to the compiler optimization options.
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_OPTIMIZE_SPEED)
|
|
||||||
# define CH_CFG_OPTIMIZE_SPEED FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/**
|
|
||||||
* @name Subsystem options
|
|
||||||
* @{
|
|
||||||
*/
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Time Measurement APIs.
|
|
||||||
* @details If enabled then the time measurement APIs are included in
|
|
||||||
* the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_TM)
|
|
||||||
# define CH_CFG_USE_TM FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Threads registry APIs.
|
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_REGISTRY)
|
|
||||||
# define CH_CFG_USE_REGISTRY TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Threads synchronization APIs.
|
|
||||||
* @details If enabled then the @p chThdWait() function is included in
|
|
||||||
* the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_WAITEXIT)
|
|
||||||
# define CH_CFG_USE_WAITEXIT TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Semaphores APIs.
|
|
||||||
* @details If enabled then the Semaphores APIs are included in the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_SEMAPHORES)
|
|
||||||
# define CH_CFG_USE_SEMAPHORES TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Semaphores queuing mode.
|
|
||||||
* @details If enabled then the threads are enqueued on semaphores by
|
|
||||||
* priority rather than in FIFO order.
|
|
||||||
*
|
|
||||||
* @note The default is @p FALSE. Enable this if you have special
|
|
||||||
* requirements.
|
|
||||||
* @note Requires @p CH_CFG_USE_SEMAPHORES.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_SEMAPHORES_PRIORITY)
|
|
||||||
# define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Mutexes APIs.
|
|
||||||
* @details If enabled then the mutexes APIs are included in the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_MUTEXES)
|
|
||||||
# define CH_CFG_USE_MUTEXES TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables recursive behavior on mutexes.
|
|
||||||
* @note Recursive mutexes are heavier and have an increased
|
|
||||||
* memory footprint.
|
|
||||||
*
|
|
||||||
* @note The default is @p FALSE.
|
|
||||||
* @note Requires @p CH_CFG_USE_MUTEXES.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_MUTEXES_RECURSIVE)
|
|
||||||
# define CH_CFG_USE_MUTEXES_RECURSIVE FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Conditional Variables APIs.
|
|
||||||
* @details If enabled then the conditional variables APIs are included
|
|
||||||
* in the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
* @note Requires @p CH_CFG_USE_MUTEXES.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_CONDVARS)
|
|
||||||
# define CH_CFG_USE_CONDVARS TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Conditional Variables APIs with timeout.
|
|
||||||
* @details If enabled then the conditional variables APIs with timeout
|
|
||||||
* specification are included in the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
* @note Requires @p CH_CFG_USE_CONDVARS.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_CONDVARS_TIMEOUT)
|
|
||||||
# define CH_CFG_USE_CONDVARS_TIMEOUT FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Events Flags APIs.
|
|
||||||
* @details If enabled then the event flags APIs are included in the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_EVENTS)
|
|
||||||
# define CH_CFG_USE_EVENTS TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Events Flags APIs with timeout.
|
|
||||||
* @details If enabled then the events APIs with timeout specification
|
|
||||||
* are included in the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
* @note Requires @p CH_CFG_USE_EVENTS.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_EVENTS_TIMEOUT)
|
|
||||||
# define CH_CFG_USE_EVENTS_TIMEOUT TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Synchronous Messages APIs.
|
|
||||||
* @details If enabled then the synchronous messages APIs are included
|
|
||||||
* in the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_MESSAGES)
|
|
||||||
# define CH_CFG_USE_MESSAGES TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Synchronous Messages queuing mode.
|
|
||||||
* @details If enabled then messages are served by priority rather than in
|
|
||||||
* FIFO order.
|
|
||||||
*
|
|
||||||
* @note The default is @p FALSE. Enable this if you have special
|
|
||||||
* requirements.
|
|
||||||
* @note Requires @p CH_CFG_USE_MESSAGES.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_MESSAGES_PRIORITY)
|
|
||||||
# define CH_CFG_USE_MESSAGES_PRIORITY FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Mailboxes APIs.
|
|
||||||
* @details If enabled then the asynchronous messages (mailboxes) APIs are
|
|
||||||
* included in the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
* @note Requires @p CH_CFG_USE_SEMAPHORES.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_MAILBOXES)
|
|
||||||
# define CH_CFG_USE_MAILBOXES TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Core Memory Manager APIs.
|
|
||||||
* @details If enabled then the core memory manager APIs are included
|
|
||||||
* in the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_MEMCORE)
|
|
||||||
# define CH_CFG_USE_MEMCORE TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Heap Allocator APIs.
|
|
||||||
* @details If enabled then the memory heap allocator APIs are included
|
|
||||||
* in the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
* @note Requires @p CH_CFG_USE_MEMCORE and either @p CH_CFG_USE_MUTEXES or
|
|
||||||
* @p CH_CFG_USE_SEMAPHORES.
|
|
||||||
* @note Mutexes are recommended.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_HEAP)
|
|
||||||
# define CH_CFG_USE_HEAP FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Memory Pools Allocator APIs.
|
|
||||||
* @details If enabled then the memory pools allocator APIs are included
|
|
||||||
* in the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_MEMPOOLS)
|
|
||||||
# define CH_CFG_USE_MEMPOOLS FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Objects FIFOs APIs.
|
|
||||||
* @details If enabled then the objects FIFOs APIs are included
|
|
||||||
* in the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_OBJ_FIFOS)
|
|
||||||
# define CH_CFG_USE_OBJ_FIFOS FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Pipes APIs.
|
|
||||||
* @details If enabled then the pipes APIs are included
|
|
||||||
* in the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_PIPES)
|
|
||||||
# define CH_CFG_USE_PIPES FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Dynamic Threads APIs.
|
|
||||||
* @details If enabled then the dynamic threads creation APIs are included
|
|
||||||
* in the kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p TRUE.
|
|
||||||
* @note Requires @p CH_CFG_USE_WAITEXIT.
|
|
||||||
* @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_DYNAMIC)
|
|
||||||
# define CH_CFG_USE_DYNAMIC FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/**
|
|
||||||
* @name Objects factory options
|
|
||||||
* @{
|
|
||||||
*/
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Objects Factory APIs.
|
|
||||||
* @details If enabled then the objects factory APIs are included in the
|
|
||||||
* kernel.
|
|
||||||
*
|
|
||||||
* @note The default is @p FALSE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_USE_FACTORY)
|
|
||||||
# define CH_CFG_USE_FACTORY FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Maximum length for object names.
|
|
||||||
* @details If the specified length is zero then the name is stored by
|
|
||||||
* pointer but this could have unintended side effects.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_FACTORY_MAX_NAMES_LENGTH)
|
|
||||||
# define CH_CFG_FACTORY_MAX_NAMES_LENGTH 8
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the registry of generic objects.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_FACTORY_OBJECTS_REGISTRY)
|
|
||||||
# define CH_CFG_FACTORY_OBJECTS_REGISTRY FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables factory for generic buffers.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_FACTORY_GENERIC_BUFFERS)
|
|
||||||
# define CH_CFG_FACTORY_GENERIC_BUFFERS FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables factory for semaphores.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_FACTORY_SEMAPHORES)
|
|
||||||
# define CH_CFG_FACTORY_SEMAPHORES FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables factory for mailboxes.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_FACTORY_MAILBOXES)
|
|
||||||
# define CH_CFG_FACTORY_MAILBOXES FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables factory for objects FIFOs.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_FACTORY_OBJ_FIFOS)
|
|
||||||
# define CH_CFG_FACTORY_OBJ_FIFOS FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables factory for Pipes.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_CFG_FACTORY_PIPES) || defined(__DOXYGEN__)
|
|
||||||
# define CH_CFG_FACTORY_PIPES FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/**
|
|
||||||
* @name Debug options
|
|
||||||
* @{
|
|
||||||
*/
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Debug option, kernel statistics.
|
|
||||||
*
|
|
||||||
* @note The default is @p FALSE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_DBG_STATISTICS)
|
|
||||||
# define CH_DBG_STATISTICS FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Debug option, system state check.
|
|
||||||
* @details If enabled the correct call protocol for system APIs is checked
|
|
||||||
* at runtime.
|
|
||||||
*
|
|
||||||
* @note The default is @p FALSE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_DBG_SYSTEM_STATE_CHECK)
|
|
||||||
# define CH_DBG_SYSTEM_STATE_CHECK FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Debug option, parameters checks.
|
|
||||||
* @details If enabled then the checks on the API functions input
|
|
||||||
* parameters are activated.
|
|
||||||
*
|
|
||||||
* @note The default is @p FALSE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_DBG_ENABLE_CHECKS)
|
|
||||||
# define CH_DBG_ENABLE_CHECKS FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Debug option, consistency checks.
|
|
||||||
* @details If enabled then all the assertions in the kernel code are
|
|
||||||
* activated. This includes consistency checks inside the kernel,
|
|
||||||
* runtime anomalies and port-defined checks.
|
|
||||||
*
|
|
||||||
* @note The default is @p FALSE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_DBG_ENABLE_ASSERTS)
|
|
||||||
# define CH_DBG_ENABLE_ASSERTS FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Debug option, trace buffer.
|
|
||||||
* @details If enabled then the trace buffer is activated.
|
|
||||||
*
|
|
||||||
* @note The default is @p CH_DBG_TRACE_MASK_DISABLED.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_DBG_TRACE_MASK)
|
|
||||||
# define CH_DBG_TRACE_MASK CH_DBG_TRACE_MASK_DISABLED
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Trace buffer entries.
|
|
||||||
* @note The trace buffer is only allocated if @p CH_DBG_TRACE_MASK is
|
|
||||||
* different from @p CH_DBG_TRACE_MASK_DISABLED.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_DBG_TRACE_BUFFER_SIZE)
|
|
||||||
# define CH_DBG_TRACE_BUFFER_SIZE 128
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Debug option, stack checks.
|
|
||||||
* @details If enabled then a runtime stack check is performed.
|
|
||||||
*
|
|
||||||
* @note The default is @p FALSE.
|
|
||||||
* @note The stack check is performed in a architecture/port dependent way.
|
|
||||||
* It may not be implemented or some ports.
|
|
||||||
* @note The default failure mode is to halt the system with the global
|
|
||||||
* @p panic_msg variable set to @p NULL.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_DBG_ENABLE_STACK_CHECK)
|
|
||||||
# define CH_DBG_ENABLE_STACK_CHECK FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Debug option, stacks initialization.
|
|
||||||
* @details If enabled then the threads working area is filled with a byte
|
|
||||||
* value when a thread is created. This can be useful for the
|
|
||||||
* runtime measurement of the used stack.
|
|
||||||
*
|
|
||||||
* @note The default is @p FALSE.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_DBG_FILL_THREADS)
|
|
||||||
# define CH_DBG_FILL_THREADS FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Debug option, threads profiling.
|
|
||||||
* @details If enabled then a field is added to the @p thread_t structure that
|
|
||||||
* counts the system ticks occurred while executing the thread.
|
|
||||||
*
|
|
||||||
* @note The default is @p FALSE.
|
|
||||||
* @note This debug option is not currently compatible with the
|
|
||||||
* tickless mode.
|
|
||||||
*/
|
|
||||||
# if !defined(CH_DBG_THREADS_PROFILING)
|
|
||||||
# define CH_DBG_THREADS_PROFILING FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/**
|
|
||||||
* @name Kernel hooks
|
|
||||||
* @{
|
|
||||||
*/
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief System structure extension.
|
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
|
||||||
*/
|
|
||||||
# define CH_CFG_SYSTEM_EXTRA_FIELDS /* Add threads custom fields here.*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief System initialization hook.
|
|
||||||
* @details User initialization code added to the @p chSysInit() function
|
|
||||||
* just before interrupts are enabled globally.
|
|
||||||
*/
|
|
||||||
# define CH_CFG_SYSTEM_INIT_HOOK() \
|
|
||||||
{ /* Add threads initialization code here.*/ }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Threads descriptor structure extension.
|
|
||||||
* @details User fields added to the end of the @p thread_t structure.
|
|
||||||
*/
|
|
||||||
# define CH_CFG_THREAD_EXTRA_FIELDS /* Add threads custom fields here.*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Threads initialization hook.
|
|
||||||
* @details User initialization code added to the @p _thread_init() function.
|
|
||||||
*
|
|
||||||
* @note It is invoked from within @p _thread_init() and implicitly from all
|
|
||||||
* the threads creation APIs.
|
|
||||||
*/
|
|
||||||
# define CH_CFG_THREAD_INIT_HOOK(tp) \
|
|
||||||
{ /* Add threads initialization code here.*/ }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Threads finalization hook.
|
|
||||||
* @details User finalization code added to the @p chThdExit() API.
|
|
||||||
*/
|
|
||||||
# define CH_CFG_THREAD_EXIT_HOOK(tp) \
|
|
||||||
{ /* Add threads finalization code here.*/ }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Context switch hook.
|
|
||||||
* @details This hook is invoked just before switching between threads.
|
|
||||||
*/
|
|
||||||
# define CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) \
|
|
||||||
{ /* Context switch code here.*/ }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief ISR enter hook.
|
|
||||||
*/
|
|
||||||
# define CH_CFG_IRQ_PROLOGUE_HOOK() \
|
|
||||||
{ /* IRQ prologue code here.*/ }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief ISR exit hook.
|
|
||||||
*/
|
|
||||||
# define CH_CFG_IRQ_EPILOGUE_HOOK() \
|
|
||||||
{ /* IRQ epilogue code here.*/ }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Idle thread enter hook.
|
|
||||||
* @note This hook is invoked within a critical zone, no OS functions
|
|
||||||
* should be invoked from here.
|
|
||||||
* @note This macro can be used to activate a power saving mode.
|
|
||||||
*/
|
|
||||||
# define CH_CFG_IDLE_ENTER_HOOK() \
|
|
||||||
{ /* Idle-enter code here.*/ }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Idle thread leave hook.
|
|
||||||
* @note This hook is invoked within a critical zone, no OS functions
|
|
||||||
* should be invoked from here.
|
|
||||||
* @note This macro can be used to deactivate a power saving mode.
|
|
||||||
*/
|
|
||||||
# define CH_CFG_IDLE_LEAVE_HOOK() \
|
|
||||||
{ /* Idle-leave code here.*/ }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Idle Loop hook.
|
|
||||||
* @details This hook is continuously invoked by the idle thread loop.
|
|
||||||
*/
|
|
||||||
# define CH_CFG_IDLE_LOOP_HOOK() \
|
|
||||||
{ /* Idle loop code here.*/ }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief System tick event hook.
|
|
||||||
* @details This hook is invoked in the system tick handler immediately
|
|
||||||
* after processing the virtual timers queue.
|
|
||||||
*/
|
|
||||||
# define CH_CFG_SYSTEM_TICK_HOOK() \
|
|
||||||
{ /* System tick event code here.*/ }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief System halt hook.
|
|
||||||
* @details This hook is invoked in case to a system halting error before
|
|
||||||
* the system is halted.
|
|
||||||
*/
|
|
||||||
# define CH_CFG_SYSTEM_HALT_HOOK(reason) \
|
|
||||||
{ /* System halt code here.*/ }
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Trace hook.
|
|
||||||
* @details This hook is invoked each time a new record is written in the
|
|
||||||
* trace buffer.
|
|
||||||
*/
|
*/
|
||||||
# define CH_CFG_TRACE_HOOK(tep) \
|
|
||||||
{ /* Trace code here.*/ }
|
|
||||||
|
|
||||||
/** @} */
|
#pragma once
|
||||||
|
|
||||||
/*===========================================================================*/
|
#define CH_CFG_ST_FREQUENCY 10000
|
||||||
/* Port-specific settings (override port settings defaulted in chcore.h). */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
#endif /* CHCONF_H */
|
#include_next <chconf.h>
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|||||||
@@ -1,524 +1,31 @@
|
|||||||
/*
|
/* Copyright 2020 QMK
|
||||||
ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @file templates/halconf.h
|
|
||||||
* @brief HAL configuration header.
|
|
||||||
* @details HAL configuration file, this file allows to enable or disable the
|
|
||||||
* various device drivers from your application. You may also use
|
|
||||||
* this file in order to override the device drivers default settings.
|
|
||||||
*
|
*
|
||||||
* @addtogroup HAL_CONF
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef HALCONF_H
|
/*
|
||||||
# define HALCONF_H
|
* This file was auto-generated by:
|
||||||
|
* `qmk chibios-confmigrate -i keyboards/boston/halconf.h -r platforms/chibios/common/configs/halconf.h`
|
||||||
# define _CHIBIOS_HAL_CONF_
|
|
||||||
# define _CHIBIOS_HAL_CONF_VER_7_0_
|
|
||||||
|
|
||||||
# include "mcuconf.h"
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the PAL subsystem.
|
|
||||||
*/
|
*/
|
||||||
# if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_PAL TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
#pragma once
|
||||||
* @brief Enables the ADC subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_ADC FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
#define HAL_USE_I2C TRUE
|
||||||
* @brief Enables the CAN subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_CAN FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
#define HAL_USE_PWM TRUE
|
||||||
* @brief Enables the cryptographic subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_CRY) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_CRY FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
#define HAL_USE_SPI TRUE
|
||||||
* @brief Enables the DAC subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_DAC FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
#include_next <halconf.h>
|
||||||
* @brief Enables the GPT subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_GPT FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the I2C subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_I2C TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the I2S subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_I2S FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the ICU subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_ICU FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the MAC subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_MAC FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the MMC_SPI subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_MMC_SPI FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the PWM subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_PWM TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the RTC subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_RTC FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the SDC subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_SDC FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the SERIAL subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_SERIAL FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the SERIAL over USB subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_SERIAL_USB FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the SIO subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_SIO) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_SIO FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the SPI subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_SPI TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the TRNG subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_TRNG) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_TRNG FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the UART subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_UART FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the USB subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_USB TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the WDG subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_WDG FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the WSPI subsystem.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_USE_WSPI) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_USE_WSPI FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* PAL driver related settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables synchronous APIs.
|
|
||||||
* @note Disabling this option saves both code and data space.
|
|
||||||
*/
|
|
||||||
# if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__)
|
|
||||||
# define PAL_USE_CALLBACKS FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables synchronous APIs.
|
|
||||||
* @note Disabling this option saves both code and data space.
|
|
||||||
*/
|
|
||||||
# if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
|
|
||||||
# define PAL_USE_WAIT FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* ADC driver related settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables synchronous APIs.
|
|
||||||
* @note Disabling this option saves both code and data space.
|
|
||||||
*/
|
|
||||||
# if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
|
|
||||||
# define ADC_USE_WAIT TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the @p adcAcquireBus() and @p adcReleaseBus() APIs.
|
|
||||||
* @note Disabling this option saves both code and data space.
|
|
||||||
*/
|
|
||||||
# if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
|
|
||||||
# define ADC_USE_MUTUAL_EXCLUSION TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* CAN driver related settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Sleep mode related APIs inclusion switch.
|
|
||||||
*/
|
|
||||||
# if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
|
|
||||||
# define CAN_USE_SLEEP_MODE TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enforces the driver to use direct callbacks rather than OSAL events.
|
|
||||||
*/
|
|
||||||
# if !defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__)
|
|
||||||
# define CAN_ENFORCE_USE_CALLBACKS FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* CRY driver related settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the SW fall-back of the cryptographic driver.
|
|
||||||
* @details When enabled, this option, activates a fall-back software
|
|
||||||
* implementation for algorithms not supported by the underlying
|
|
||||||
* hardware.
|
|
||||||
* @note Fall-back implementations may not be present for all algorithms.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_CRY_USE_FALLBACK FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Makes the driver forcibly use the fall-back implementations.
|
|
||||||
*/
|
|
||||||
# if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__)
|
|
||||||
# define HAL_CRY_ENFORCE_FALLBACK FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* DAC driver related settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables synchronous APIs.
|
|
||||||
* @note Disabling this option saves both code and data space.
|
|
||||||
*/
|
|
||||||
# if !defined(DAC_USE_WAIT) || defined(__DOXYGEN__)
|
|
||||||
# define DAC_USE_WAIT TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the @p dacAcquireBus() and @p dacReleaseBus() APIs.
|
|
||||||
* @note Disabling this option saves both code and data space.
|
|
||||||
*/
|
|
||||||
# if !defined(DAC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
|
|
||||||
# define DAC_USE_MUTUAL_EXCLUSION TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* I2C driver related settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the mutual exclusion APIs on the I2C bus.
|
|
||||||
*/
|
|
||||||
# if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
|
|
||||||
# define I2C_USE_MUTUAL_EXCLUSION TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* MAC driver related settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the zero-copy API.
|
|
||||||
*/
|
|
||||||
# if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
|
|
||||||
# define MAC_USE_ZERO_COPY FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables an event sources for incoming packets.
|
|
||||||
*/
|
|
||||||
# if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
|
|
||||||
# define MAC_USE_EVENTS TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* MMC_SPI driver related settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Delays insertions.
|
|
||||||
* @details If enabled this options inserts delays into the MMC waiting
|
|
||||||
* routines releasing some extra CPU time for the threads with
|
|
||||||
* lower priority, this may slow down the driver a bit however.
|
|
||||||
* This option is recommended also if the SPI driver does not
|
|
||||||
* use a DMA channel and heavily loads the CPU.
|
|
||||||
*/
|
|
||||||
# if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
|
|
||||||
# define MMC_NICE_WAITING TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* SDC driver related settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Number of initialization attempts before rejecting the card.
|
|
||||||
* @note Attempts are performed at 10mS intervals.
|
|
||||||
*/
|
|
||||||
# if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
|
|
||||||
# define SDC_INIT_RETRY 100
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Include support for MMC cards.
|
|
||||||
* @note MMC support is not yet implemented so this option must be kept
|
|
||||||
* at @p FALSE.
|
|
||||||
*/
|
|
||||||
# if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
|
|
||||||
# define SDC_MMC_SUPPORT FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Delays insertions.
|
|
||||||
* @details If enabled this options inserts delays into the MMC waiting
|
|
||||||
* routines releasing some extra CPU time for the threads with
|
|
||||||
* lower priority, this may slow down the driver a bit however.
|
|
||||||
*/
|
|
||||||
# if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
|
|
||||||
# define SDC_NICE_WAITING TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief OCR initialization constant for V20 cards.
|
|
||||||
*/
|
|
||||||
# if !defined(SDC_INIT_OCR_V20) || defined(__DOXYGEN__)
|
|
||||||
# define SDC_INIT_OCR_V20 0x50FF8000U
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief OCR initialization constant for non-V20 cards.
|
|
||||||
*/
|
|
||||||
# if !defined(SDC_INIT_OCR) || defined(__DOXYGEN__)
|
|
||||||
# define SDC_INIT_OCR 0x80100000U
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* SERIAL driver related settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Default bit rate.
|
|
||||||
* @details Configuration parameter, this is the baud rate selected for the
|
|
||||||
* default configuration.
|
|
||||||
*/
|
|
||||||
# if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
|
|
||||||
# define SERIAL_DEFAULT_BITRATE 38400
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Serial buffers size.
|
|
||||||
* @details Configuration parameter, you can change the depth of the queue
|
|
||||||
* buffers depending on the requirements of your application.
|
|
||||||
* @note The default is 16 bytes for both the transmission and receive
|
|
||||||
* buffers.
|
|
||||||
*/
|
|
||||||
# if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
|
|
||||||
# define SERIAL_BUFFERS_SIZE 16
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* SERIAL_USB driver related setting. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Serial over USB buffers size.
|
|
||||||
* @details Configuration parameter, the buffer size must be a multiple of
|
|
||||||
* the USB data endpoint maximum packet size.
|
|
||||||
* @note The default is 256 bytes for both the transmission and receive
|
|
||||||
* buffers.
|
|
||||||
*/
|
|
||||||
# if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__)
|
|
||||||
# define SERIAL_USB_BUFFERS_SIZE 1
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Serial over USB number of buffers.
|
|
||||||
* @note The default is 2 buffers.
|
|
||||||
*/
|
|
||||||
# if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__)
|
|
||||||
# define SERIAL_USB_BUFFERS_NUMBER 2
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* SPI driver related settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables synchronous APIs.
|
|
||||||
* @note Disabling this option saves both code and data space.
|
|
||||||
*/
|
|
||||||
# if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
|
|
||||||
# define SPI_USE_WAIT TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables circular transfers APIs.
|
|
||||||
* @note Disabling this option saves both code and data space.
|
|
||||||
*/
|
|
||||||
# if !defined(SPI_USE_CIRCULAR) || defined(__DOXYGEN__)
|
|
||||||
# define SPI_USE_CIRCULAR FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
|
|
||||||
* @note Disabling this option saves both code and data space.
|
|
||||||
*/
|
|
||||||
# if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
|
|
||||||
# define SPI_USE_MUTUAL_EXCLUSION TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Handling method for SPI CS line.
|
|
||||||
* @note Disabling this option saves both code and data space.
|
|
||||||
*/
|
|
||||||
# if !defined(SPI_SELECT_MODE) || defined(__DOXYGEN__)
|
|
||||||
# define SPI_SELECT_MODE SPI_SELECT_MODE_PAD
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* UART driver related settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables synchronous APIs.
|
|
||||||
* @note Disabling this option saves both code and data space.
|
|
||||||
*/
|
|
||||||
# if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
|
|
||||||
# define UART_USE_WAIT FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs.
|
|
||||||
* @note Disabling this option saves both code and data space.
|
|
||||||
*/
|
|
||||||
# if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
|
|
||||||
# define UART_USE_MUTUAL_EXCLUSION FALSE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* USB driver related settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables synchronous APIs.
|
|
||||||
* @note Disabling this option saves both code and data space.
|
|
||||||
*/
|
|
||||||
# if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
|
|
||||||
# define USB_USE_WAIT TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/*===========================================================================*/
|
|
||||||
/* WSPI driver related settings. */
|
|
||||||
/*===========================================================================*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables synchronous APIs.
|
|
||||||
* @note Disabling this option saves both code and data space.
|
|
||||||
*/
|
|
||||||
# if !defined(WSPI_USE_WAIT) || defined(__DOXYGEN__)
|
|
||||||
# define WSPI_USE_WAIT TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enables the @p wspiAcquireBus() and @p wspiReleaseBus() APIs.
|
|
||||||
* @note Disabling this option saves both code and data space.
|
|
||||||
*/
|
|
||||||
# if !defined(WSPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
|
|
||||||
# define WSPI_USE_MUTUAL_EXCLUSION TRUE
|
|
||||||
# endif
|
|
||||||
|
|
||||||
#endif /* HALCONF_H */
|
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"keyboard_name": "boston",
|
"keyboard_name": "boston",
|
||||||
"url": "https://github.com/bluepylons/Boston",
|
"url": "https://github.com/bluepylons/Boston",
|
||||||
"maintainer": "Pylon",
|
"maintainer": "bluepylons",
|
||||||
"width": 20.5,
|
"width": 20.5,
|
||||||
"height": 7.75,
|
"height": 7.75,
|
||||||
"layouts": {
|
"layouts": {
|
||||||
"LAYOUT": {
|
"LAYOUT_all": {
|
||||||
"layout": [
|
"layout": [
|
||||||
|
{"label":"Encoder", "x":0, "y":0},
|
||||||
{"label":"P1", "x":1.5, "y":0},
|
{"label":"P1", "x":1.5, "y":0},
|
||||||
{"label":"P2", "x":2.5, "y":0},
|
{"label":"P2", "x":2.5, "y":0},
|
||||||
{"label":"P3", "x":3.5, "y":0},
|
{"label":"P3", "x":3.5, "y":0},
|
||||||
@@ -25,6 +26,7 @@
|
|||||||
{"label":"Insert", "x":17.5, "y":0},
|
{"label":"Insert", "x":17.5, "y":0},
|
||||||
{"label":"Home", "x":18.5, "y":0},
|
{"label":"Home", "x":18.5, "y":0},
|
||||||
{"label":"PgUp", "x":19.5, "y":0},
|
{"label":"PgUp", "x":19.5, "y":0},
|
||||||
|
|
||||||
{"label":"Esc", "x":0, "y":1},
|
{"label":"Esc", "x":0, "y":1},
|
||||||
{"label":"F1", "x":1.5, "y":1},
|
{"label":"F1", "x":1.5, "y":1},
|
||||||
{"label":"F2", "x":2.5, "y":1},
|
{"label":"F2", "x":2.5, "y":1},
|
||||||
@@ -56,11 +58,11 @@
|
|||||||
{"label":"*", "x":8, "y":2.5},
|
{"label":"*", "x":8, "y":2.5},
|
||||||
{"label":"(", "x":9, "y":2.5},
|
{"label":"(", "x":9, "y":2.5},
|
||||||
{"label":")", "x":10, "y":2.5},
|
{"label":")", "x":10, "y":2.5},
|
||||||
{"label":"_", "x":11, "y":2.5},
|
{"label":"_", "x":11, "y":2.5},
|
||||||
{"label":"+", "x":12, "y":2.5},
|
{"label":"+", "x":12, "y":2.5},
|
||||||
{"label":"Backspace", "x":13, "y":2.5},
|
{"label":"Backspace", "x":13, "y":2.5},
|
||||||
{"label":"Backspace", "x":14, "y":2.5},
|
{"label":"Backspace", "x":14, "y":2.5},
|
||||||
{"label":"P16", "x":15.25, "y":2.5},
|
{"label":"P16", "x":15.25, "y":2.5},
|
||||||
{"label":"Num Lock", "x":16.5, "y":2.5},
|
{"label":"Num Lock", "x":16.5, "y":2.5},
|
||||||
{"label":"/", "x":17.5, "y":2.5},
|
{"label":"/", "x":17.5, "y":2.5},
|
||||||
{"label":"*", "x":18.5, "y":2.5},
|
{"label":"*", "x":18.5, "y":2.5},
|
||||||
@@ -119,13 +121,12 @@
|
|||||||
{"label":">", "x":10.25, "y":5.5},
|
{"label":">", "x":10.25, "y":5.5},
|
||||||
{"label":"?", "x":11.25, "y":5.5},
|
{"label":"?", "x":11.25, "y":5.5},
|
||||||
{"label":"Right Shift", "x":12.25, "y":5.5, "w":1.75},
|
{"label":"Right Shift", "x":12.25, "y":5.5, "w":1.75},
|
||||||
{"label":"Up", "x":14.25, "y":5.75},
|
{"label":"Up", "x":14.25, "y":5.75},
|
||||||
{"label":"1", "x":16.5, "y":5.5},
|
{"label":"1", "x":16.5, "y":5.5},
|
||||||
{"label":"2", "x":17.5, "y":5.5},
|
{"label":"2", "x":17.5, "y":5.5},
|
||||||
{"label":"3", "x":18.5, "y":5.5},
|
{"label":"3", "x":18.5, "y":5.5},
|
||||||
{"label":"Enter", "x":19.5, "y":5.5, "h":2},
|
{"label":"Enter", "x":19.5, "y":5.5, "h":2},
|
||||||
|
|
||||||
|
|
||||||
{"label":"Ctrl", "x":0, "y":6.5, "w":1.25},
|
{"label":"Ctrl", "x":0, "y":6.5, "w":1.25},
|
||||||
{"label":"OS", "x":1.25, "y":6.5, "w":1.25},
|
{"label":"OS", "x":1.25, "y":6.5, "w":1.25},
|
||||||
{"label":"Alt", "x":2.5, "y":6.5, "w":1.25},
|
{"label":"Alt", "x":2.5, "y":6.5, "w":1.25},
|
||||||
|
|||||||
@@ -1,176 +1,34 @@
|
|||||||
/*
|
/* Copyright 2020 QMK
|
||||||
ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _MCUCONF_H_
|
|
||||||
#define _MCUCONF_H_
|
|
||||||
|
|
||||||
/*
|
|
||||||
* STM32F0xx drivers configuration.
|
|
||||||
* The following settings override the default settings present in
|
|
||||||
* the various device driver implementation headers.
|
|
||||||
* Note that the settings for each driver only have effect if the whole
|
|
||||||
* driver is enabled in halconf.h.
|
|
||||||
*
|
*
|
||||||
* IRQ priorities:
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* 3...0 Lowest...Highest.
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* DMA priorities:
|
* This program is distributed in the hope that it will be useful,
|
||||||
* 0...3 Lowest...Highest.
|
* 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 <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define STM32F0xx_MCUCONF
|
|
||||||
// #define STM32F070xB
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* HAL driver system settings.
|
* This file was auto-generated by:
|
||||||
|
* `qmk chibios-confmigrate -i keyboards/boston/mcuconf.h -r platforms/chibios/GENERIC_STM32_F072XB/configs/mcuconf.h`
|
||||||
*/
|
*/
|
||||||
#define STM32_NO_INIT FALSE
|
|
||||||
#define STM32_PVD_ENABLE FALSE
|
|
||||||
#define STM32_PLS STM32_PLS_LEV0
|
|
||||||
#define STM32_HSI_ENABLED TRUE
|
|
||||||
#define STM32_HSI14_ENABLED TRUE
|
|
||||||
#define STM32_HSI48_ENABLED FALSE
|
|
||||||
#define STM32_LSI_ENABLED TRUE
|
|
||||||
#define STM32_HSE_ENABLED FALSE
|
|
||||||
#define STM32_LSE_ENABLED FALSE
|
|
||||||
#define STM32_SW STM32_SW_PLL
|
|
||||||
#define STM32_PLLSRC STM32_PLLSRC_HSI_DIV2
|
|
||||||
#define STM32_PREDIV_VALUE 1
|
|
||||||
#define STM32_PLLMUL_VALUE 12
|
|
||||||
#define STM32_HPRE STM32_HPRE_DIV1
|
|
||||||
#define STM32_PPRE STM32_PPRE_DIV1
|
|
||||||
#define STM32_ADCSW STM32_ADCSW_HSI14
|
|
||||||
#define STM32_ADCPRE STM32_ADCPRE_DIV4
|
|
||||||
#define STM32_MCOSEL STM32_MCOSEL_NOCLOCK
|
|
||||||
#define STM32_ADCPRE STM32_ADCPRE_DIV4
|
|
||||||
#define STM32_ADCSW STM32_ADCSW_HSI14
|
|
||||||
#define STM32_USBSW STM32_USBSW_HSI48
|
|
||||||
#define STM32_CECSW STM32_CECSW_HSI
|
|
||||||
#define STM32_I2C1SW STM32_I2C1SW_HSI
|
|
||||||
#define STM32_USART1SW STM32_USART1SW_PCLK
|
|
||||||
#define STM32_RTCSEL STM32_RTCSEL_LSI
|
|
||||||
|
|
||||||
/*
|
#pragma once
|
||||||
* ADC driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_ADC_USE_ADC1 FALSE
|
|
||||||
#define STM32_ADC_ADC1_DMA_PRIORITY 2
|
|
||||||
#define STM32_ADC_IRQ_PRIORITY 2
|
|
||||||
#define STM32_ADC_ADC1_DMA_IRQ_PRIORITY 2
|
|
||||||
|
|
||||||
/*
|
#include_next <mcuconf.h>
|
||||||
* EXT driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_EXT_EXTI0_1_IRQ_PRIORITY 3
|
|
||||||
#define STM32_EXT_EXTI2_3_IRQ_PRIORITY 3
|
|
||||||
#define STM32_EXT_EXTI4_15_IRQ_PRIORITY 3
|
|
||||||
#define STM32_EXT_EXTI16_IRQ_PRIORITY 3
|
|
||||||
#define STM32_EXT_EXTI17_IRQ_PRIORITY 3
|
|
||||||
|
|
||||||
/*
|
#undef STM32_I2C_USE_I2C1
|
||||||
* GPT driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_GPT_USE_TIM1 FALSE
|
|
||||||
#define STM32_GPT_USE_TIM2 FALSE
|
|
||||||
#define STM32_GPT_USE_TIM3 FALSE
|
|
||||||
#define STM32_GPT_USE_TIM14 FALSE
|
|
||||||
#define STM32_GPT_TIM1_IRQ_PRIORITY 2
|
|
||||||
#define STM32_GPT_TIM2_IRQ_PRIORITY 2
|
|
||||||
#define STM32_GPT_TIM3_IRQ_PRIORITY 2
|
|
||||||
#define STM32_GPT_TIM14_IRQ_PRIORITY 2
|
|
||||||
|
|
||||||
/*
|
|
||||||
* I2C driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_I2C_USE_I2C1 TRUE
|
#define STM32_I2C_USE_I2C1 TRUE
|
||||||
#define STM32_I2C_USE_I2C2 FALSE
|
|
||||||
#define STM32_I2C_BUSY_TIMEOUT 50
|
|
||||||
#define STM32_I2C_I2C1_IRQ_PRIORITY 3
|
|
||||||
#define STM32_I2C_I2C2_IRQ_PRIORITY 3
|
|
||||||
#define STM32_I2C_USE_DMA TRUE
|
|
||||||
#define STM32_I2C_I2C1_DMA_PRIORITY 1
|
|
||||||
#define STM32_I2C_I2C2_DMA_PRIORITY 1
|
|
||||||
#define STM32_I2C_I2C1_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
|
|
||||||
#define STM32_I2C_I2C1_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 6)
|
|
||||||
#define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure")
|
|
||||||
|
|
||||||
/*
|
#undef STM32_PWM_USE_TIM3
|
||||||
* ICU driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_ICU_USE_TIM1 FALSE
|
|
||||||
#define STM32_ICU_USE_TIM2 FALSE
|
|
||||||
#define STM32_ICU_USE_TIM3 FALSE
|
|
||||||
#define STM32_ICU_TIM1_IRQ_PRIORITY 3
|
|
||||||
#define STM32_ICU_TIM2_IRQ_PRIORITY 3
|
|
||||||
#define STM32_ICU_TIM3_IRQ_PRIORITY 3
|
|
||||||
|
|
||||||
/*
|
|
||||||
* PWM driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_PWM_USE_ADVANCED FALSE
|
|
||||||
#define STM32_PWM_USE_TIM1 FALSE
|
|
||||||
#define STM32_PWM_USE_TIM2 FALSE
|
|
||||||
#define STM32_PWM_USE_TIM3 TRUE
|
#define STM32_PWM_USE_TIM3 TRUE
|
||||||
#define STM32_PWM_TIM1_IRQ_PRIORITY 3
|
|
||||||
#define STM32_PWM_TIM2_IRQ_PRIORITY 3
|
|
||||||
#define STM32_PWM_TIM3_IRQ_PRIORITY 3
|
|
||||||
|
|
||||||
/*
|
#undef STM32_SPI_USE_SPI2
|
||||||
* SERIAL driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_SERIAL_USE_USART1 FALSE
|
|
||||||
#define STM32_SERIAL_USE_USART2 FALSE
|
|
||||||
#define STM32_SERIAL_USART1_PRIORITY 3
|
|
||||||
#define STM32_SERIAL_USART2_PRIORITY 3
|
|
||||||
|
|
||||||
/*
|
|
||||||
* SPI driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_SPI_USE_SPI1 FALSE
|
|
||||||
#define STM32_SPI_USE_SPI2 TRUE
|
#define STM32_SPI_USE_SPI2 TRUE
|
||||||
#define STM32_SPI_SPI1_DMA_PRIORITY 1
|
|
||||||
#define STM32_SPI_SPI2_DMA_PRIORITY 1
|
|
||||||
#define STM32_SPI_SPI1_IRQ_PRIORITY 2
|
|
||||||
#define STM32_SPI_SPI2_IRQ_PRIORITY 2
|
|
||||||
#define STM32_SPI_SPI2_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 4)
|
|
||||||
#define STM32_SPI_SPI2_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 5)
|
|
||||||
#define STM32_SPI_DMA_ERROR_HOOK(spip) osalSysHalt("DMA failure")
|
|
||||||
|
|
||||||
/*
|
|
||||||
* ST driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_ST_IRQ_PRIORITY 2
|
|
||||||
#define STM32_ST_USE_TIMER 2
|
|
||||||
|
|
||||||
/*
|
|
||||||
* UART driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_UART_USE_USART1 FALSE
|
|
||||||
#define STM32_UART_USE_USART2 FALSE
|
|
||||||
#define STM32_UART_USART1_IRQ_PRIORITY 3
|
|
||||||
#define STM32_UART_USART2_IRQ_PRIORITY 3
|
|
||||||
#define STM32_UART_USART1_DMA_PRIORITY 0
|
|
||||||
#define STM32_UART_USART2_DMA_PRIORITY 0
|
|
||||||
#define STM32_UART_DMA_ERROR_HOOK(uartp) osalSysHalt("DMA failure")
|
|
||||||
|
|
||||||
/*
|
|
||||||
* USB driver system settings.
|
|
||||||
*/
|
|
||||||
#define STM32_USB_USE_USB1 TRUE
|
|
||||||
#define STM32_USB_LOW_POWER_ON_SUSPEND FALSE
|
|
||||||
#define STM32_USB_USB1_LP_IRQ_PRIORITY 3
|
|
||||||
|
|
||||||
#endif /* _MCUCONF_H_ */
|
|
||||||
|
|||||||
102
keyboards/box75/info.json
Normal file
102
keyboards/box75/info.json
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "BOX75",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "Gondolindrim",
|
||||||
|
"width": 16.25,
|
||||||
|
"height": 6.375,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1.25, "y":0},
|
||||||
|
{"x":2.25, "y":0},
|
||||||
|
{"x":3.25, "y":0},
|
||||||
|
{"x":4.25, "y":0},
|
||||||
|
{"x":5.5, "y":0},
|
||||||
|
{"x":6.5, "y":0},
|
||||||
|
{"x":7.5, "y":0},
|
||||||
|
{"x":8.5, "y":0},
|
||||||
|
{"x":9.75, "y":0},
|
||||||
|
{"x":10.75, "y":0},
|
||||||
|
{"x":11.75, "y":0},
|
||||||
|
{"x":12.75, "y":0},
|
||||||
|
{"x":14, "y":0},
|
||||||
|
{"x":15.25, "y":0},
|
||||||
|
|
||||||
|
{"x":0, "y":1.25},
|
||||||
|
{"x":1, "y":1.25},
|
||||||
|
{"x":2, "y":1.25},
|
||||||
|
{"x":3, "y":1.25},
|
||||||
|
{"x":4, "y":1.25},
|
||||||
|
{"x":5, "y":1.25},
|
||||||
|
{"x":6, "y":1.25},
|
||||||
|
{"x":7, "y":1.25},
|
||||||
|
{"x":8, "y":1.25},
|
||||||
|
{"x":9, "y":1.25},
|
||||||
|
{"x":10, "y":1.25},
|
||||||
|
{"x":11, "y":1.25},
|
||||||
|
{"x":12, "y":1.25},
|
||||||
|
{"x":13, "y":1.25},
|
||||||
|
{"x":14, "y":1.25},
|
||||||
|
{"x":15.25, "y":1.25},
|
||||||
|
|
||||||
|
{"x":0, "y":2.25, "w":1.5},
|
||||||
|
{"x":1.5, "y":2.25},
|
||||||
|
{"x":2.5, "y":2.25},
|
||||||
|
{"x":3.5, "y":2.25},
|
||||||
|
{"x":4.5, "y":2.25},
|
||||||
|
{"x":5.5, "y":2.25},
|
||||||
|
{"x":6.5, "y":2.25},
|
||||||
|
{"x":7.5, "y":2.25},
|
||||||
|
{"x":8.5, "y":2.25},
|
||||||
|
{"x":9.5, "y":2.25},
|
||||||
|
{"x":10.5, "y":2.25},
|
||||||
|
{"x":11.5, "y":2.25},
|
||||||
|
{"x":12.5, "y":2.25},
|
||||||
|
{"x":13.5, "y":2.25, "w":1.5},
|
||||||
|
{"x":15.25, "y":2.25},
|
||||||
|
|
||||||
|
{"x":0, "y":3.25, "w":1.75},
|
||||||
|
{"x":1.75, "y":3.25},
|
||||||
|
{"x":2.75, "y":3.25},
|
||||||
|
{"x":3.75, "y":3.25},
|
||||||
|
{"x":4.75, "y":3.25},
|
||||||
|
{"x":5.75, "y":3.25},
|
||||||
|
{"x":6.75, "y":3.25},
|
||||||
|
{"x":7.75, "y":3.25},
|
||||||
|
{"x":8.75, "y":3.25},
|
||||||
|
{"x":9.75, "y":3.25},
|
||||||
|
{"x":10.75, "y":3.25},
|
||||||
|
{"x":11.75, "y":3.25},
|
||||||
|
{"x":12.75, "y":3.25, "w":2.25},
|
||||||
|
{"x":15.25, "y":3.25},
|
||||||
|
|
||||||
|
{"x":0, "y":4.25, "w":1.25},
|
||||||
|
{"x":1.25, "y":4.25},
|
||||||
|
{"x":2.25, "y":4.25},
|
||||||
|
{"x":3.25, "y":4.25},
|
||||||
|
{"x":4.25, "y":4.25},
|
||||||
|
{"x":5.25, "y":4.25},
|
||||||
|
{"x":6.25, "y":4.25},
|
||||||
|
{"x":7.25, "y":4.25},
|
||||||
|
{"x":8.25, "y":4.25},
|
||||||
|
{"x":9.25, "y":4.25},
|
||||||
|
{"x":10.25, "y":4.25},
|
||||||
|
{"x":11.25, "y":4.25},
|
||||||
|
{"x":12.25, "y":4.25, "w":1.75},
|
||||||
|
{"x":14.125, "y":4.375},
|
||||||
|
{"x":15.25, "y":4.25},
|
||||||
|
|
||||||
|
{"x":0, "y":5.25, "w":1.25},
|
||||||
|
{"x":1.25, "y":5.25, "w":1.25},
|
||||||
|
{"x":2.5, "y":5.25, "w":1.25},
|
||||||
|
{"x":3.75, "y":5.25, "w":6.25},
|
||||||
|
{"x":10, "y":5.25, "w":1.5},
|
||||||
|
{"x":11.5, "y":5.25, "w":1.5},
|
||||||
|
{"x":13.125, "y":5.375},
|
||||||
|
{"x":14.125, "y":5.375},
|
||||||
|
{"x":15.125, "y":5.375}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
34
keyboards/butterstick/info.json
Normal file
34
keyboards/butterstick/info.json
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "Butter Stick",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "germ",
|
||||||
|
"width": 10,
|
||||||
|
"height": 2,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_butter": {
|
||||||
|
"layout": [
|
||||||
|
{"x":0, "y":0},
|
||||||
|
{"x":1, "y":0},
|
||||||
|
{"x":2, "y":0},
|
||||||
|
{"x":3, "y":0},
|
||||||
|
{"x":4, "y":0},
|
||||||
|
{"x":5, "y":0},
|
||||||
|
{"x":6, "y":0},
|
||||||
|
{"x":7, "y":0},
|
||||||
|
{"x":8, "y":0},
|
||||||
|
{"x":9, "y":0},
|
||||||
|
|
||||||
|
{"x":0, "y":1},
|
||||||
|
{"x":1, "y":1},
|
||||||
|
{"x":2, "y":1},
|
||||||
|
{"x":3, "y":1},
|
||||||
|
{"x":4, "y":1},
|
||||||
|
{"x":5, "y":1},
|
||||||
|
{"x":6, "y":1},
|
||||||
|
{"x":7, "y":1},
|
||||||
|
{"x":8, "y":1},
|
||||||
|
{"x":9, "y":1}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
55
keyboards/capsunlocked/cu80/v2_ansi_rgb/config.h
Normal file
55
keyboards/capsunlocked/cu80/v2_ansi_rgb/config.h
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2021 CapsUnlocked
|
||||||
|
|
||||||
|
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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0x4355
|
||||||
|
#define PRODUCT_ID 0x0082
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER CapsUnlocked
|
||||||
|
#define PRODUCT CU80 v2 ANSI RGB
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 6
|
||||||
|
#define MATRIX_COLS 17
|
||||||
|
|
||||||
|
#define MATRIX_ROW_PINS { D3, D2, B7, F1, C7, D5 }
|
||||||
|
#define MATRIX_COL_PINS { B0, B1, B2, B3, F4, F5, F6, F7, B6, B5, D7, B4, D6, F0, D1, C6, D4 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW, ROW2COL */
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||||
|
#define DEBOUNCE 5
|
||||||
|
|
||||||
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
/* Locking resynchronize hack */
|
||||||
|
#define LOCKING_RESYNC_ENABLE
|
||||||
|
|
||||||
|
|
||||||
|
/* Define RGB */
|
||||||
|
#define RGB_DI_PIN E6
|
||||||
|
#define RGB_MATRIX_KEYPRESSES
|
||||||
|
#define DRIVER_LED_TOTAL 87
|
||||||
|
#define RGBLED_NUM 87
|
||||||
|
#define RGBLIGHT_LIMIT_VAL 50
|
||||||
|
|
||||||
|
|
||||||
100
keyboards/capsunlocked/cu80/v2_ansi_rgb/info.json
Normal file
100
keyboards/capsunlocked/cu80/v2_ansi_rgb/info.json
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "CapsUnlocked CU80 v2 ANSI RGB",
|
||||||
|
"maintainer": "rys",
|
||||||
|
"url": "https://caps-unlocked.com/cu80-round-2/",
|
||||||
|
"width": 18.25,
|
||||||
|
"height": 6.5,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_tkl_ansi": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"Esc", "x":0, "y":0},
|
||||||
|
{"label":"F1", "x":2, "y":0},
|
||||||
|
{"label":"F2", "x":3, "y":0},
|
||||||
|
{"label":"F3", "x":4, "y":0},
|
||||||
|
{"label":"F4", "x":5, "y":0},
|
||||||
|
{"label":"F5", "x":6.5, "y":0},
|
||||||
|
{"label":"F6", "x":7.5, "y":0},
|
||||||
|
{"label":"F7", "x":8.5, "y":0},
|
||||||
|
{"label":"F8", "x":9.5, "y":0},
|
||||||
|
{"label":"F9", "x":11, "y":0},
|
||||||
|
{"label":"F10", "x":12, "y":0},
|
||||||
|
{"label":"F11", "x":13, "y":0},
|
||||||
|
{"label":"F12", "x":14, "y":0},
|
||||||
|
{"label":"PrtSc", "x":15.25, "y":0},
|
||||||
|
{"label":"Scroll Lock", "x":16.25, "y":0},
|
||||||
|
{"label":"Pause", "x":17.25, "y":0},
|
||||||
|
{"label":"\u00ac", "x":0, "y":1.5},
|
||||||
|
{"label":"!", "x":1, "y":1.5},
|
||||||
|
{"label":"@", "x":2, "y":1.5},
|
||||||
|
{"label":"£", "x":3, "y":1.5},
|
||||||
|
{"label":"$", "x":4, "y":1.5},
|
||||||
|
{"label":"%", "x":5, "y":1.5},
|
||||||
|
{"label":"^", "x":6, "y":1.5},
|
||||||
|
{"label":"&", "x":7, "y":1.5},
|
||||||
|
{"label":"*", "x":8, "y":1.5},
|
||||||
|
{"label":"(", "x":9, "y":1.5},
|
||||||
|
{"label":")", "x":10, "y":1.5},
|
||||||
|
{"label":"_", "x":11, "y":1.5},
|
||||||
|
{"label":"+", "x":12, "y":1.5},
|
||||||
|
{"label":"Backspace", "x":13, "y":1.5, "w":2},
|
||||||
|
{"label":"Insert", "x":15.25, "y":1.5},
|
||||||
|
{"label":"Home", "x":16.25, "y":1.5},
|
||||||
|
{"label":"PgUp", "x":17.25, "y":1.5},
|
||||||
|
{"label":"Tab", "x":0, "y":2.5, "w":1.5},
|
||||||
|
{"label":"Q", "x":1.5, "y":2.5},
|
||||||
|
{"label":"W", "x":2.5, "y":2.5},
|
||||||
|
{"label":"E", "x":3.5, "y":2.5},
|
||||||
|
{"label":"R", "x":4.5, "y":2.5},
|
||||||
|
{"label":"T", "x":5.5, "y":2.5},
|
||||||
|
{"label":"Y", "x":6.5, "y":2.5},
|
||||||
|
{"label":"U", "x":7.5, "y":2.5},
|
||||||
|
{"label":"I", "x":8.5, "y":2.5},
|
||||||
|
{"label":"O", "x":9.5, "y":2.5},
|
||||||
|
{"label":"P", "x":10.5, "y":2.5},
|
||||||
|
{"label":"{", "x":11.5, "y":2.5},
|
||||||
|
{"label":"}", "x":12.5, "y":2.5},
|
||||||
|
{"label":"|", "x":13.5, "y":2.5, "w":1.5},
|
||||||
|
{"label":"Delete", "x":15.25, "y":2.5},
|
||||||
|
{"label":"End", "x":16.25, "y":2.5},
|
||||||
|
{"label":"PgDn", "x":17.25, "y":2.5},
|
||||||
|
{"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
|
||||||
|
{"label":"A", "x":1.75, "y":3.5},
|
||||||
|
{"label":"S", "x":2.75, "y":3.5},
|
||||||
|
{"label":"D", "x":3.75, "y":3.5},
|
||||||
|
{"label":"F", "x":4.75, "y":3.5},
|
||||||
|
{"label":"G", "x":5.75, "y":3.5},
|
||||||
|
{"label":"H", "x":6.75, "y":3.5},
|
||||||
|
{"label":"J", "x":7.75, "y":3.5},
|
||||||
|
{"label":"K", "x":8.75, "y":3.5},
|
||||||
|
{"label":"L", "x":9.75, "y":3.5},
|
||||||
|
{"label":":", "x":10.75, "y":3.5},
|
||||||
|
{"label":"\"", "x":11.75, "y":3.5},
|
||||||
|
{"label":"Enter", "x":12.75, "y":3.5, "w":2.25},
|
||||||
|
{"label":"Shift", "x":0, "y":4.5, "w":2.25},
|
||||||
|
{"label":"Z", "x":2.25, "y":4.5},
|
||||||
|
{"label":"X", "x":3.25, "y":4.5},
|
||||||
|
{"label":"C", "x":4.25, "y":4.5},
|
||||||
|
{"label":"V", "x":5.25, "y":4.5},
|
||||||
|
{"label":"B", "x":6.25, "y":4.5},
|
||||||
|
{"label":"N", "x":7.25, "y":4.5},
|
||||||
|
{"label":"M", "x":8.25, "y":4.5},
|
||||||
|
{"label":"<", "x":9.25, "y":4.5},
|
||||||
|
{"label":">", "x":10.25, "y":4.5},
|
||||||
|
{"label":"?", "x":11.25, "y":4.5},
|
||||||
|
{"label":"Shift", "x":12.25, "y":4.5, "w":2.75},
|
||||||
|
{"label":"Up", "x":16.25, "y":4.5},
|
||||||
|
{"label":"Ctrl", "x":0, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Alt", "x":1.25, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Win", "x":2.5, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Space", "x":3.75, "y":5.5, "w":6.25},
|
||||||
|
{"label":"Win", "x":10, "y":5.5, "w":1.25},
|
||||||
|
{"label":"AltGr", "x":11.25, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Ctrl", "x":12.5, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Fn", "x":13.75, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Left", "x":15.25, "y":5.5},
|
||||||
|
{"label":"Down", "x":16.25, "y":5.5},
|
||||||
|
{"label":"Right", "x":17.25, "y":5.5}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2021 CapsUnlocked
|
||||||
|
|
||||||
|
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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_tkl_ansi(
|
||||||
|
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
|
||||||
|
|
||||||
|
KC_GRV, 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_INS, KC_HOME, KC_PGUP,
|
||||||
|
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_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||||
|
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_ENT,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
|
),
|
||||||
|
[1] = LAYOUT_tkl_ansi(
|
||||||
|
RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_M_P, RGB_M_B, RGB_M_R,
|
||||||
|
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUI, RGB_SAI, RGB_VAI,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUD, RGB_SAD, RGB_VAD,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, RGB_RMOD,RGB_TOG, RGB_MOD
|
||||||
|
),
|
||||||
|
};
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# The default ANSI keymap for the CU80
|
||||||
|
|
||||||
|
This CU80 is keymap is for the fixed ANSI variant with fully populated bottom row.
|
||||||
55
keyboards/capsunlocked/cu80/v2_ansi_rgb/keymaps/via/keymap.c
Normal file
55
keyboards/capsunlocked/cu80/v2_ansi_rgb/keymaps/via/keymap.c
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
/* Copyright 2021 CapsUnlocked
|
||||||
|
*
|
||||||
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_tkl_ansi(
|
||||||
|
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
|
||||||
|
|
||||||
|
KC_GRV, 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_INS, KC_HOME, KC_PGUP,
|
||||||
|
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_BSLS, KC_DEL, KC_END, KC_PGDN,
|
||||||
|
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_ENT,
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
|
),
|
||||||
|
[1] = LAYOUT_tkl_ansi(
|
||||||
|
RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_M_P, RGB_M_B, RGB_M_R,
|
||||||
|
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUI, RGB_SAI, RGB_VAI,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUD, RGB_SAD, RGB_VAD,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, RGB_RMOD,RGB_TOG, RGB_MOD
|
||||||
|
),
|
||||||
|
[2] = LAYOUT_tkl_ansi(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
[3] = LAYOUT_tkl_ansi(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
VIA_ENABLE = yes
|
||||||
18
keyboards/capsunlocked/cu80/v2_ansi_rgb/readme.md
Normal file
18
keyboards/capsunlocked/cu80/v2_ansi_rgb/readme.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# CU80 v2 ANSI RGB
|
||||||
|
|
||||||
|
The CU80 v2 ANSI is the PCB for round 2 of the CU80 TKL keyboard, with matrix RGB lighting, fixed ANSI layout and VIA support.
|
||||||
|
|
||||||
|
This firmware adds RGB matrix support.
|
||||||
|
|
||||||
|
To place the keyboard into bootloader mode in order to flash it, hold the ESC key while plugging the board in.
|
||||||
|
|
||||||
|
* Keyboard maintainer: [rys](https://github.com/rys)
|
||||||
|
* Hardware supported: CU80 v2 ANSI
|
||||||
|
* Hardware availability: [CapsUnlocked](https://caps-unlocked.com/cu80-round-2/)
|
||||||
|
|
||||||
|
Make and flash example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make capsunlocked/cu80/v2_ansi_rgb:default:flash
|
||||||
|
make capsunlocked/cu80/v2_ansi_rgb:via:flash
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
28
keyboards/capsunlocked/cu80/v2_ansi_rgb/rules.mk
Normal file
28
keyboards/capsunlocked/cu80/v2_ansi_rgb/rules.mk
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = no # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth
|
||||||
|
AUDIO_ENABLE = no # Audio output
|
||||||
|
RGB_MATRIX_ENABLE = yes # Enable RGB matrix
|
||||||
|
RGB_MATRIX_DRIVER = WS2812 # Set Driver to WS2812
|
||||||
|
NO_USB_STARTUP_CHECK = yes # resolve possible sleep issue
|
||||||
|
|
||||||
|
|
||||||
|
LAYOUTS = tkl_ansi
|
||||||
67
keyboards/capsunlocked/cu80/v2_ansi_rgb/v2_ansi_rgb.c
Normal file
67
keyboards/capsunlocked/cu80/v2_ansi_rgb/v2_ansi_rgb.c
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2021 CapsUnlocked
|
||||||
|
|
||||||
|
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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "v2_ansi_rgb.h"
|
||||||
|
#include "rgb_matrix_types.h"
|
||||||
|
|
||||||
|
|
||||||
|
void matrix_init_kb(void) {
|
||||||
|
setPinOutput(E6);
|
||||||
|
matrix_init_user();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Set LED 62 (Caps Lock) and LED 14 (Scroll Lock) when key active */
|
||||||
|
void rgb_matrix_indicators_kb(void) {
|
||||||
|
if (host_keyboard_led_state().caps_lock) {
|
||||||
|
rgb_matrix_set_color(62, 255, 255, 255);
|
||||||
|
}
|
||||||
|
if (host_keyboard_led_state().scroll_lock) {
|
||||||
|
rgb_matrix_set_color(14, 255, 255, 255);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Leds on the CU80 go ltr > rtl > ltr > rlt > Ltr > rtl */
|
||||||
|
led_config_t g_led_config = {
|
||||||
|
{
|
||||||
|
{ 0,NO_LED, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
|
||||||
|
{ 32,31 ,30 ,29 ,28 ,27 ,26 ,25 ,24 ,23 ,22 ,21 ,20 ,19 ,18 ,17 ,16 },
|
||||||
|
{ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49 },
|
||||||
|
{ 62, 61, 60, 59,58,57,56,55,54,53,52,51,50 },
|
||||||
|
{ 63, NO_LED, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, NO_LED, NO_LED, 75 },
|
||||||
|
{ 86 ,85 ,84 ,NO_LED, NO_LED ,83, NO_LED,NO_LED, NO_LED ,82 ,81 ,80 ,79 ,78 ,NO_LED,77 ,76 }
|
||||||
|
|
||||||
|
},
|
||||||
|
/*board layout accounting for led directions */
|
||||||
|
{
|
||||||
|
{0,0}, {28,0}, {42,0}, {56,0}, {71,0}, {85,0}, {99,0}, {113,0}, {127,0}, {141,0}, {155,0}, {169,0}, {184,0}, {198,0}, {212,0}, {226,0},
|
||||||
|
{226,13}, {212,13}, {198,13}, {184,13}, {169,13}, {155,13}, {141,13}, {127,13}, {113,13}, {99,13}, {85,13}, {71,13}, {56,13}, {42,13}, {28,13}, {14,13}, {0,13},
|
||||||
|
{0,26}, {14,26}, {28,26}, {42,26}, {56,26}, {71,26}, {85,26}, {99,26}, {113,26}, {127,26}, {141,26}, {155,26}, {169,26}, {184,26}, {198,26}, {212,26}, {226,26},
|
||||||
|
{169,38}, {155,38}, {141,38}, {127,38}, {113,38}, {99,38}, {85,38}, {71,38}, {56,38}, {42,38}, {28,38}, {14,38}, {0,38},
|
||||||
|
{0,51}, {28,51}, {42,51}, {56,51}, {71,51}, {85,51}, {99,51}, {113,51}, {127,51}, {141,51}, {155,51}, {169,51}, {212,51},
|
||||||
|
{226,64}, {212,64}, {184,64}, {169,64}, {155,64}, {141,64}, {127,64}, {71,64}, {28,64}, {14,64}, {0,64}
|
||||||
|
|
||||||
|
},
|
||||||
|
/* marks scroll and caps as function modifiers for led effects */
|
||||||
|
{
|
||||||
|
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 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, 1,
|
||||||
|
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
|
||||||
|
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
|
||||||
|
}
|
||||||
|
};
|
||||||
46
keyboards/capsunlocked/cu80/v2_ansi_rgb/v2_ansi_rgb.h
Normal file
46
keyboards/capsunlocked/cu80/v2_ansi_rgb/v2_ansi_rgb.h
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2021 CapsUnlocked
|
||||||
|
|
||||||
|
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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
/* This a shortcut to help you visually see your layout.
|
||||||
|
*
|
||||||
|
* The first section contains all of the arguments representing the physical
|
||||||
|
* layout of the board and position of the keys.
|
||||||
|
*
|
||||||
|
* The second converts the arguments into a two-dimensional array which
|
||||||
|
* represents the switch matrix.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define LAYOUT_tkl_ansi( \
|
||||||
|
K000, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016, \
|
||||||
|
\
|
||||||
|
K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \
|
||||||
|
K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, \
|
||||||
|
K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, \
|
||||||
|
K400, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K415, \
|
||||||
|
K500, K501, K502, K505, K509, K510, K511, K512, K513, K515, K516 \
|
||||||
|
) { \
|
||||||
|
{ K000, KC_NO, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016 }, \
|
||||||
|
{ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116 }, \
|
||||||
|
{ K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216 }, \
|
||||||
|
{ K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, KC_NO, KC_NO, KC_NO, KC_NO }, \
|
||||||
|
{ K400, KC_NO, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, KC_NO, KC_NO, K415, KC_NO }, \
|
||||||
|
{ K500, K501, K502, KC_NO, KC_NO, K505, KC_NO, KC_NO, KC_NO, K509, K510, K511, K512, K513, KC_NO, K515, K516 }, \
|
||||||
|
}
|
||||||
52
keyboards/capsunlocked/cu80/v2_iso_rgb/config.h
Normal file
52
keyboards/capsunlocked/cu80/v2_iso_rgb/config.h
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2021 CapsUnlocked
|
||||||
|
|
||||||
|
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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0x4355
|
||||||
|
#define PRODUCT_ID 0x0083
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER CapsUnlocked
|
||||||
|
#define PRODUCT CU80 v2 ISO RGB
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 6
|
||||||
|
#define MATRIX_COLS 17
|
||||||
|
|
||||||
|
#define MATRIX_ROW_PINS { D3, D2, B7, F1, C7, D5 }
|
||||||
|
#define MATRIX_COL_PINS { B0, B1, B2, B3, F4, F5, F6, F7, B6, B5, D7, B4, D6, F0, D1, C6, D4 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW, ROW2COL */
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
|
||||||
|
#define DEBOUNCE 5
|
||||||
|
|
||||||
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
/* Locking resynchronize hack */
|
||||||
|
#define LOCKING_RESYNC_ENABLE
|
||||||
|
|
||||||
|
/* Define RGB */
|
||||||
|
#define RGB_DI_PIN E6
|
||||||
|
#define DRIVER_LED_TOTAL 88
|
||||||
|
#define RGBLED_NUM 88
|
||||||
|
#define RGB_MATRIX_KEYPRESSES
|
||||||
|
#define RGBLIGHT_LIMIT_VAL 50
|
||||||
101
keyboards/capsunlocked/cu80/v2_iso_rgb/info.json
Normal file
101
keyboards/capsunlocked/cu80/v2_iso_rgb/info.json
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "CapsUnlocked CU80 v2 ISO RGB",
|
||||||
|
"maintainer": "rys",
|
||||||
|
"url": "https://caps-unlocked.com/cu80-round-2/",
|
||||||
|
"width": 18.25,
|
||||||
|
"height": 6.5,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT_tkl_iso": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"Esc", "x":0, "y":0},
|
||||||
|
{"label":"F1", "x":2, "y":0},
|
||||||
|
{"label":"F2", "x":3, "y":0},
|
||||||
|
{"label":"F3", "x":4, "y":0},
|
||||||
|
{"label":"F4", "x":5, "y":0},
|
||||||
|
{"label":"F5", "x":6.5, "y":0},
|
||||||
|
{"label":"F6", "x":7.5, "y":0},
|
||||||
|
{"label":"F7", "x":8.5, "y":0},
|
||||||
|
{"label":"F8", "x":9.5, "y":0},
|
||||||
|
{"label":"F9", "x":11, "y":0},
|
||||||
|
{"label":"F10", "x":12, "y":0},
|
||||||
|
{"label":"F11", "x":13, "y":0},
|
||||||
|
{"label":"F12", "x":14, "y":0},
|
||||||
|
{"label":"PrtSc", "x":15.25, "y":0},
|
||||||
|
{"label":"Scroll Lock", "x":16.25, "y":0},
|
||||||
|
{"label":"Pause", "x":17.25, "y":0},
|
||||||
|
{"label":"\u00ac", "x":0, "y":1.5},
|
||||||
|
{"label":"!", "x":1, "y":1.5},
|
||||||
|
{"label":"\"", "x":2, "y":1.5},
|
||||||
|
{"label":"£", "x":3, "y":1.5},
|
||||||
|
{"label":"$", "x":4, "y":1.5},
|
||||||
|
{"label":"%", "x":5, "y":1.5},
|
||||||
|
{"label":"^", "x":6, "y":1.5},
|
||||||
|
{"label":"&", "x":7, "y":1.5},
|
||||||
|
{"label":"*", "x":8, "y":1.5},
|
||||||
|
{"label":"(", "x":9, "y":1.5},
|
||||||
|
{"label":")", "x":10, "y":1.5},
|
||||||
|
{"label":"_", "x":11, "y":1.5},
|
||||||
|
{"label":"+", "x":12, "y":1.5},
|
||||||
|
{"label":"Backspace", "x":13, "y":1.5, "w":2},
|
||||||
|
{"label":"Insert", "x":15.25, "y":1.5},
|
||||||
|
{"label":"Home", "x":16.25, "y":1.5},
|
||||||
|
{"label":"PgUp", "x":17.25, "y":1.5},
|
||||||
|
{"label":"Tab", "x":0, "y":2.5, "w":1.5},
|
||||||
|
{"label":"Q", "x":1.5, "y":2.5},
|
||||||
|
{"label":"W", "x":2.5, "y":2.5},
|
||||||
|
{"label":"E", "x":3.5, "y":2.5},
|
||||||
|
{"label":"R", "x":4.5, "y":2.5},
|
||||||
|
{"label":"T", "x":5.5, "y":2.5},
|
||||||
|
{"label":"Y", "x":6.5, "y":2.5},
|
||||||
|
{"label":"U", "x":7.5, "y":2.5},
|
||||||
|
{"label":"I", "x":8.5, "y":2.5},
|
||||||
|
{"label":"O", "x":9.5, "y":2.5},
|
||||||
|
{"label":"P", "x":10.5, "y":2.5},
|
||||||
|
{"label":"{", "x":11.5, "y":2.5},
|
||||||
|
{"label":"}", "x":12.5, "y":2.5},
|
||||||
|
{"label":"Delete", "x":15.25, "y":2.5},
|
||||||
|
{"label":"End", "x":16.25, "y":2.5},
|
||||||
|
{"label":"PgDn", "x":17.25, "y":2.5},
|
||||||
|
{"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
|
||||||
|
{"label":"A", "x":1.75, "y":3.5},
|
||||||
|
{"label":"S", "x":2.75, "y":3.5},
|
||||||
|
{"label":"D", "x":3.75, "y":3.5},
|
||||||
|
{"label":"F", "x":4.75, "y":3.5},
|
||||||
|
{"label":"G", "x":5.75, "y":3.5},
|
||||||
|
{"label":"H", "x":6.75, "y":3.5},
|
||||||
|
{"label":"J", "x":7.75, "y":3.5},
|
||||||
|
{"label":"K", "x":8.75, "y":3.5},
|
||||||
|
{"label":"L", "x":9.75, "y":3.5},
|
||||||
|
{"label":":", "x":10.75, "y":3.5},
|
||||||
|
{"label":"@", "x":11.75, "y":3.5},
|
||||||
|
{"label":"~", "x":12.75, "y":3.5},
|
||||||
|
{"label":"Enter", "x":13.75, "y":2.5, "w":1.25, "h":2},
|
||||||
|
{"label":"Shift", "x":0, "y":4.5, "w":1.25},
|
||||||
|
{"label":"|", "x":1.25, "y":4.5},
|
||||||
|
{"label":"Z", "x":2.25, "y":4.5},
|
||||||
|
{"label":"X", "x":3.25, "y":4.5},
|
||||||
|
{"label":"C", "x":4.25, "y":4.5},
|
||||||
|
{"label":"V", "x":5.25, "y":4.5},
|
||||||
|
{"label":"B", "x":6.25, "y":4.5},
|
||||||
|
{"label":"N", "x":7.25, "y":4.5},
|
||||||
|
{"label":"M", "x":8.25, "y":4.5},
|
||||||
|
{"label":"<", "x":9.25, "y":4.5},
|
||||||
|
{"label":">", "x":10.25, "y":4.5},
|
||||||
|
{"label":"?", "x":11.25, "y":4.5},
|
||||||
|
{"label":"Shift", "x":12.25, "y":4.5, "w":2.75},
|
||||||
|
{"label":"Up", "x":16.25, "y":4.5},
|
||||||
|
{"label":"Ctrl", "x":0, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Alt", "x":1.25, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Win", "x":2.5, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Space", "x":3.75, "y":5.5, "w":6.25},
|
||||||
|
{"label":"Win", "x":10, "y":5.5, "w":1.25},
|
||||||
|
{"label":"AltGr", "x":11.25, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Ctrl", "x":12.5, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Fn", "x":13.75, "y":5.5, "w":1.25},
|
||||||
|
{"label":"Left", "x":15.25, "y":5.5},
|
||||||
|
{"label":"Down", "x":16.25, "y":5.5},
|
||||||
|
{"label":"Right", "x":17.25, "y":5.5}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2021 CapsUnlocked
|
||||||
|
|
||||||
|
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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_tkl_iso(
|
||||||
|
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
|
||||||
|
|
||||||
|
KC_GRV, 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_INS, KC_HOME, KC_PGUP,
|
||||||
|
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_DEL, KC_END, KC_PGDN,
|
||||||
|
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_ENT,
|
||||||
|
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_UP,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
|
),
|
||||||
|
[1] = LAYOUT_tkl_iso(
|
||||||
|
RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_M_P, RGB_M_B, RGB_M_R,
|
||||||
|
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUI, RGB_SAI, RGB_VAI,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUD, RGB_SAD, RGB_VAD,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, RGB_RMOD,RGB_TOG, RGB_MOD
|
||||||
|
),
|
||||||
|
};
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
# The default ISO keymap for the CU80
|
||||||
|
|
||||||
|
This CU80 is keymap is for the fixed ISO variant with fully populated bottom row.
|
||||||
55
keyboards/capsunlocked/cu80/v2_iso_rgb/keymaps/via/keymap.c
Normal file
55
keyboards/capsunlocked/cu80/v2_iso_rgb/keymaps/via/keymap.c
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
/* Copyright 2021 CapsUnlocked
|
||||||
|
*
|
||||||
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = LAYOUT_tkl_iso(
|
||||||
|
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
|
||||||
|
|
||||||
|
KC_GRV, 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_INS, KC_HOME, KC_PGUP,
|
||||||
|
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_DEL, KC_END, KC_PGDN,
|
||||||
|
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_ENT,
|
||||||
|
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_UP,
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
|
),
|
||||||
|
[1] = LAYOUT_tkl_iso(
|
||||||
|
RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_M_P, RGB_M_B, RGB_M_R,
|
||||||
|
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUI, RGB_SAI, RGB_VAI,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUD, RGB_SAD, RGB_VAD,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, RGB_RMOD,RGB_TOG, RGB_MOD
|
||||||
|
),
|
||||||
|
[2] = LAYOUT_tkl_iso(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
[3] = LAYOUT_tkl_iso(
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
|
),
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
VIA_ENABLE = yes
|
||||||
18
keyboards/capsunlocked/cu80/v2_iso_rgb/readme.md
Normal file
18
keyboards/capsunlocked/cu80/v2_iso_rgb/readme.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# CU80 v2 ISO RGB
|
||||||
|
|
||||||
|
The CU80 v2 ISO is the PCB for round 2 of the CU80 TKL keyboard, with fixed layout ISO and VIA support.
|
||||||
|
|
||||||
|
This firmware adds RGB matrix support.
|
||||||
|
|
||||||
|
To place the keyboard into bootloader mode in order to flash it, hold the ESC key while plugging the board in, or use the reset button on the back of the PCB.
|
||||||
|
|
||||||
|
* Keyboard maintainer: [rys](https://github.com/rys)
|
||||||
|
* Hardware supported: [CU80 v2 ISO](https://imgur.com/yMZMt6j)
|
||||||
|
* Hardware availability: [CapsUnlocked](https://caps-unlocked.com/cu80-round-2/)
|
||||||
|
|
||||||
|
Make and flash example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make capsunlocked/cu80/v2_iso_rgb:default:flash
|
||||||
|
make capsunlocked/cu80/v2_iso_rgb:via:flash
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
28
keyboards/capsunlocked/cu80/v2_iso_rgb/rules.mk
Normal file
28
keyboards/capsunlocked/cu80/v2_iso_rgb/rules.mk
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = no # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth
|
||||||
|
AUDIO_ENABLE = no # Audio output
|
||||||
|
RGB_MATRIX_ENABLE = yes # Enable RGB matrix
|
||||||
|
RGB_MATRIX_DRIVER = WS2812 # Set Driver to WS2812
|
||||||
|
NO_USB_STARTUP_CHECK = yes # resolve possible sleep issue
|
||||||
|
|
||||||
|
|
||||||
|
LAYOUTS = tkl_iso
|
||||||
64
keyboards/capsunlocked/cu80/v2_iso_rgb/v2_iso_rgb.c
Normal file
64
keyboards/capsunlocked/cu80/v2_iso_rgb/v2_iso_rgb.c
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2021 CapsUnlocked
|
||||||
|
|
||||||
|
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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "v2_iso_rgb.h"
|
||||||
|
#include "rgb_matrix_types.h"
|
||||||
|
|
||||||
|
void matrix_init_kb(void) {
|
||||||
|
setPinOutput(E6);
|
||||||
|
matrix_init_user();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Set LED 62 (Caps Lock) and LED 14 (Scroll Lock) when key active */
|
||||||
|
void rgb_matrix_indicators_kb(void) {
|
||||||
|
if (host_keyboard_led_state().caps_lock) {
|
||||||
|
rgb_matrix_set_color(62, 255, 255, 255);
|
||||||
|
}
|
||||||
|
if (host_keyboard_led_state().scroll_lock) {
|
||||||
|
rgb_matrix_set_color(14, 255, 255, 255);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Leds on the CU80 go ltr > rtl > ltr > rlt > Ltr > rtl */
|
||||||
|
led_config_t g_led_config = {
|
||||||
|
{
|
||||||
|
{ 0, NO_LED, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, },
|
||||||
|
{ 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16,},
|
||||||
|
{ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49,},
|
||||||
|
{ 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50,},
|
||||||
|
{ 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, NO_LED, NO_LED, 76,},
|
||||||
|
{ 87, 86, 85, NO_LED, NO_LED, 84, NO_LED, NO_LED, NO_LED, 83, 82, 81, 80, 79, NO_LED, 78, 77}
|
||||||
|
},
|
||||||
|
/*board layout accounting for led directions */
|
||||||
|
{
|
||||||
|
{0,0}, {28,0}, {42,0}, {56,0}, {71,0}, {85,0}, {99,0}, {113,0}, {127,0}, {141,0}, {155,0}, {169,0}, {184,0}, {198,0}, {212,0}, {226,0},
|
||||||
|
{226,26}, {212,26}, {198,26}, {184,26}, {169,26}, {155,26}, {141,26}, {127,26}, {113,26}, {99,26}, {85,26}, {71,26}, {56,26}, {42,26}, {28,26}, {14,26}, {0,26},
|
||||||
|
{0,26}, {14,26}, {28,26}, {42,26}, {56,26}, {71,26}, {85,26}, {99,26}, {113,26}, {127,26}, {141,26}, {155,26}, {169,26}, {184,26}, {198,26}, {212,26}, {226,26},
|
||||||
|
{169,38}, {155,38}, {141,38}, {127,38}, {113,38}, {99,38}, {85,38}, {71,38}, {56,38}, {42,38}, {28,38}, {14,38}, {0,38},
|
||||||
|
{0,51}, {14,51}, {28,51}, {42,51}, {56,51}, {71,51}, {85,51}, {99,51}, {113,51}, {127,51}, {141,51}, {155,51}, {169,51}, {212,51},
|
||||||
|
{226,64}, {212,64}, {184,64}, {169,64}, {155,64}, {141,64}, {127,64}, {71,64}, {28,64}, {14,64}, {0,64}
|
||||||
|
},
|
||||||
|
/* marks scroll and caps as function modifiers for led effects */
|
||||||
|
{
|
||||||
|
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 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, 1,
|
||||||
|
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
|
||||||
|
}
|
||||||
|
};
|
||||||
46
keyboards/capsunlocked/cu80/v2_iso_rgb/v2_iso_rgb.h
Normal file
46
keyboards/capsunlocked/cu80/v2_iso_rgb/v2_iso_rgb.h
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2021 CapsUnlocked
|
||||||
|
|
||||||
|
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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
/* This a shortcut to help you visually see your layout.
|
||||||
|
*
|
||||||
|
* The first section contains all of the arguments representing the physical
|
||||||
|
* layout of the board and position of the keys.
|
||||||
|
*
|
||||||
|
* The second converts the arguments into a two-dimensional array which
|
||||||
|
* represents the switch matrix.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define LAYOUT_tkl_iso( \
|
||||||
|
K000, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016, \
|
||||||
|
\
|
||||||
|
K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \
|
||||||
|
K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K214, K215, K216, \
|
||||||
|
K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K213, \
|
||||||
|
K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K415, \
|
||||||
|
K500, K501, K502, K505, K509, K510, K511, K512, K513, K515, K516 \
|
||||||
|
) { \
|
||||||
|
{ K000, KC_NO, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016 }, \
|
||||||
|
{ K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116 }, \
|
||||||
|
{ K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216 }, \
|
||||||
|
{ K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, KC_NO, KC_NO, KC_NO, KC_NO }, \
|
||||||
|
{ K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, KC_NO, KC_NO, K415, KC_NO }, \
|
||||||
|
{ K500, K501, K502, KC_NO, KC_NO, K505, KC_NO, KC_NO, KC_NO, K509, K510, K511, K512, K513, KC_NO, K515, K516 }, \
|
||||||
|
}
|
||||||
16
keyboards/cassette42/cassette42.c
Normal file
16
keyboards/cassette42/cassette42.c
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
/* Copyright 2019 monksoffunk
|
||||||
|
*
|
||||||
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include "cassette42.h"
|
||||||
34
keyboards/cassette42/cassette42.h
Normal file
34
keyboards/cassette42/cassette42.h
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
/* Copyright 2019 monksoffunk
|
||||||
|
*
|
||||||
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
/* This a shortcut to help you visually see your layout.
|
||||||
|
*
|
||||||
|
* The first section contains all of the arguments representing the physical
|
||||||
|
* layout of the board and position of the keys.
|
||||||
|
*
|
||||||
|
* The second converts the arguments into a two-dimensional array which
|
||||||
|
* represents the switch matrix.
|
||||||
|
*/
|
||||||
|
#define LAYOUT( \
|
||||||
|
k10, k11, \
|
||||||
|
k00, k01, k02, k03\
|
||||||
|
) \
|
||||||
|
{ \
|
||||||
|
{ k00, k01, k02, k03, k10, k11 }, \
|
||||||
|
}
|
||||||
233
keyboards/cassette42/common/glcdfont.c
Normal file
233
keyboards/cassette42/common/glcdfont.c
Normal file
@@ -0,0 +1,233 @@
|
|||||||
|
// This is the 'classic' fixed-space bitmap font for Adafruit_GFX since 1.0.
|
||||||
|
// See gfxfont.h for newer custom bitmap font info.
|
||||||
|
|
||||||
|
#include "progmem.h"
|
||||||
|
|
||||||
|
// Standard ASCII 5x7 font
|
||||||
|
|
||||||
|
static const unsigned char font[] PROGMEM = {
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00,
|
||||||
|
0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00,
|
||||||
|
0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00,
|
||||||
|
0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00,
|
||||||
|
0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00,
|
||||||
|
0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00,
|
||||||
|
0x00, 0x18, 0x3C, 0x18, 0x00, 0x00,
|
||||||
|
0xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00,
|
||||||
|
0x00, 0x18, 0x24, 0x18, 0x00, 0x00,
|
||||||
|
0xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x00,
|
||||||
|
0x30, 0x48, 0x3A, 0x06, 0x0E, 0x00,
|
||||||
|
0x26, 0x29, 0x79, 0x29, 0x26, 0x00,
|
||||||
|
0x40, 0x7F, 0x05, 0x05, 0x07, 0x00,
|
||||||
|
0x40, 0x7F, 0x05, 0x25, 0x3F, 0x00,
|
||||||
|
0x5A, 0x3C, 0xE7, 0x3C, 0x5A, 0x00,
|
||||||
|
0x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x00,
|
||||||
|
0x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x00,
|
||||||
|
0x14, 0x22, 0x7F, 0x22, 0x14, 0x00,
|
||||||
|
0x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x00,
|
||||||
|
0x06, 0x09, 0x7F, 0x01, 0x7F, 0x00,
|
||||||
|
0x00, 0x66, 0x89, 0x95, 0x6A, 0x00,
|
||||||
|
0x60, 0x60, 0x60, 0x60, 0x60, 0x00,
|
||||||
|
0x94, 0xA2, 0xFF, 0xA2, 0x94, 0x00,
|
||||||
|
0x08, 0x04, 0x7E, 0x04, 0x08, 0x00,
|
||||||
|
0x10, 0x20, 0x7E, 0x20, 0x10, 0x00,
|
||||||
|
0x08, 0x08, 0x2A, 0x1C, 0x08, 0x00,
|
||||||
|
0x08, 0x1C, 0x2A, 0x08, 0x08, 0x00,
|
||||||
|
0x1E, 0x10, 0x10, 0x10, 0x10, 0x00,
|
||||||
|
0x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x00,
|
||||||
|
0x30, 0x38, 0x3E, 0x38, 0x30, 0x00,
|
||||||
|
0x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x5F, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x07, 0x00, 0x07, 0x00, 0x00,
|
||||||
|
0x14, 0x7F, 0x14, 0x7F, 0x14, 0x00,
|
||||||
|
0x24, 0x2A, 0x7F, 0x2A, 0x12, 0x00,
|
||||||
|
0x23, 0x13, 0x08, 0x64, 0x62, 0x00,
|
||||||
|
0x36, 0x49, 0x56, 0x20, 0x50, 0x00,
|
||||||
|
0x00, 0x08, 0x07, 0x03, 0x00, 0x00,
|
||||||
|
0x00, 0x1C, 0x22, 0x41, 0x00, 0x00,
|
||||||
|
0x00, 0x41, 0x22, 0x1C, 0x00, 0x00,
|
||||||
|
0x2A, 0x1C, 0x7F, 0x1C, 0x2A, 0x00,
|
||||||
|
0x08, 0x08, 0x3E, 0x08, 0x08, 0x00,
|
||||||
|
0x00, 0x80, 0x70, 0x30, 0x00, 0x00,
|
||||||
|
0x08, 0x08, 0x08, 0x08, 0x08, 0x00,
|
||||||
|
0x00, 0x00, 0x60, 0x60, 0x00, 0x00,
|
||||||
|
0x20, 0x10, 0x08, 0x04, 0x02, 0x00,
|
||||||
|
0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00,
|
||||||
|
0x00, 0x42, 0x7F, 0x40, 0x00, 0x00,
|
||||||
|
0x72, 0x49, 0x49, 0x49, 0x46, 0x00,
|
||||||
|
0x21, 0x41, 0x49, 0x4D, 0x33, 0x00,
|
||||||
|
0x18, 0x14, 0x12, 0x7F, 0x10, 0x00,
|
||||||
|
0x27, 0x45, 0x45, 0x45, 0x39, 0x00,
|
||||||
|
0x3C, 0x4A, 0x49, 0x49, 0x31, 0x00,
|
||||||
|
0x41, 0x21, 0x11, 0x09, 0x07, 0x00,
|
||||||
|
0x36, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||||
|
0x46, 0x49, 0x49, 0x29, 0x1E, 0x00,
|
||||||
|
0x00, 0x00, 0x14, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x40, 0x34, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||||
|
0x14, 0x14, 0x14, 0x14, 0x14, 0x00,
|
||||||
|
0x00, 0x41, 0x22, 0x14, 0x08, 0x00,
|
||||||
|
0x02, 0x01, 0x59, 0x09, 0x06, 0x00,
|
||||||
|
0x3E, 0x41, 0x5D, 0x59, 0x4E, 0x00,
|
||||||
|
0x7C, 0x12, 0x11, 0x12, 0x7C, 0x00,
|
||||||
|
0x7F, 0x49, 0x49, 0x49, 0x36, 0x00,
|
||||||
|
0x3E, 0x41, 0x41, 0x41, 0x22, 0x00,
|
||||||
|
0x7F, 0x41, 0x41, 0x41, 0x3E, 0x00,
|
||||||
|
0x7F, 0x49, 0x49, 0x49, 0x41, 0x00,
|
||||||
|
0x7F, 0x09, 0x09, 0x09, 0x01, 0x00,
|
||||||
|
0x3E, 0x41, 0x41, 0x51, 0x73, 0x00,
|
||||||
|
0x7F, 0x08, 0x08, 0x08, 0x7F, 0x00,
|
||||||
|
0x00, 0x41, 0x7F, 0x41, 0x00, 0x00,
|
||||||
|
0x20, 0x40, 0x41, 0x3F, 0x01, 0x00,
|
||||||
|
0x7F, 0x08, 0x14, 0x22, 0x41, 0x00,
|
||||||
|
0x7F, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||||
|
0x7F, 0x02, 0x1C, 0x02, 0x7F, 0x00,
|
||||||
|
0x7F, 0x04, 0x08, 0x10, 0x7F, 0x00,
|
||||||
|
0x3E, 0x41, 0x41, 0x41, 0x3E, 0x00,
|
||||||
|
0x7F, 0x09, 0x09, 0x09, 0x06, 0x00,
|
||||||
|
0x3E, 0x41, 0x51, 0x21, 0x5E, 0x00,
|
||||||
|
0x7F, 0x09, 0x19, 0x29, 0x46, 0x00,
|
||||||
|
0x26, 0x49, 0x49, 0x49, 0x32, 0x00,
|
||||||
|
0x03, 0x01, 0x7F, 0x01, 0x03, 0x00,
|
||||||
|
0x3F, 0x40, 0x40, 0x40, 0x3F, 0x00,
|
||||||
|
0x1F, 0x20, 0x40, 0x20, 0x1F, 0x00,
|
||||||
|
0x3F, 0x40, 0x38, 0x40, 0x3F, 0x00,
|
||||||
|
0x63, 0x14, 0x08, 0x14, 0x63, 0x00,
|
||||||
|
0x03, 0x04, 0x78, 0x04, 0x03, 0x00,
|
||||||
|
0x61, 0x59, 0x49, 0x4D, 0x43, 0x00,
|
||||||
|
0x00, 0x7F, 0x41, 0x41, 0x41, 0x00,
|
||||||
|
0x02, 0x04, 0x08, 0x10, 0x20, 0x00,
|
||||||
|
0x00, 0x41, 0x41, 0x41, 0x7F, 0x00,
|
||||||
|
0x04, 0x02, 0x01, 0x02, 0x04, 0x00,
|
||||||
|
0x40, 0x40, 0x40, 0x40, 0x40, 0x00,
|
||||||
|
0x00, 0x03, 0x07, 0x08, 0x00, 0x00,
|
||||||
|
0x20, 0x54, 0x54, 0x78, 0x40, 0x00,
|
||||||
|
0x7F, 0x28, 0x44, 0x44, 0x38, 0x00,
|
||||||
|
0x38, 0x44, 0x44, 0x44, 0x28, 0x00,
|
||||||
|
0x38, 0x44, 0x44, 0x28, 0x7F, 0x00,
|
||||||
|
0x38, 0x54, 0x54, 0x54, 0x18, 0x00,
|
||||||
|
0x00, 0x08, 0x7E, 0x09, 0x02, 0x00,
|
||||||
|
0x18, 0x24, 0x24, 0x1C, 0x38, 0x00,
|
||||||
|
0x7F, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||||
|
0x00, 0x44, 0x7D, 0x40, 0x00, 0x00,
|
||||||
|
0x20, 0x40, 0x40, 0x3D, 0x00, 0x00,
|
||||||
|
0x7F, 0x10, 0x28, 0x44, 0x00, 0x00,
|
||||||
|
0x00, 0x41, 0x7F, 0x40, 0x00, 0x00,
|
||||||
|
0x7C, 0x04, 0x78, 0x04, 0x78, 0x00,
|
||||||
|
0x7C, 0x08, 0x04, 0x04, 0x78, 0x00,
|
||||||
|
0x38, 0x44, 0x44, 0x44, 0x38, 0x00,
|
||||||
|
0x7C, 0x18, 0x24, 0x24, 0x18, 0x00,
|
||||||
|
0x18, 0x24, 0x24, 0x18, 0x7C, 0x00,
|
||||||
|
0x7C, 0x08, 0x04, 0x04, 0x08, 0x00,
|
||||||
|
0x48, 0x54, 0x54, 0x54, 0x24, 0x00,
|
||||||
|
0x04, 0x04, 0x3F, 0x44, 0x24, 0x00,
|
||||||
|
0x3C, 0x40, 0x40, 0x20, 0x7C, 0x00,
|
||||||
|
0x1C, 0x20, 0x40, 0x20, 0x1C, 0x00,
|
||||||
|
0x3C, 0x40, 0x30, 0x40, 0x3C, 0x00,
|
||||||
|
0x44, 0x28, 0x10, 0x28, 0x44, 0x00,
|
||||||
|
0x4C, 0x90, 0x90, 0x90, 0x7C, 0x00,
|
||||||
|
0x44, 0x64, 0x54, 0x4C, 0x44, 0x00,
|
||||||
|
0x00, 0x08, 0x36, 0x41, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x77, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x41, 0x36, 0x08, 0x00, 0x00,
|
||||||
|
0x02, 0x01, 0x02, 0x04, 0x02, 0x00,
|
||||||
|
0x3C, 0x26, 0x23, 0x26, 0x3C, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0xFE, 0x01, 0x19,
|
||||||
|
0x05, 0xC1, 0x21, 0x31, 0xD1, 0x11,
|
||||||
|
0x11, 0x11, 0x11, 0x11, 0x11, 0xD1,
|
||||||
|
0x31, 0x21, 0xC1, 0x01, 0x01, 0x01,
|
||||||
|
0xFE, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x3E, 0x3E, 0xFF, 0xFF,
|
||||||
|
0xFF, 0xFF, 0xFF, 0x3E, 0x3E, 0x3E,
|
||||||
|
0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE,
|
||||||
|
0x00, 0x00, 0x3E, 0xFF, 0xFF, 0xFF,
|
||||||
|
0xFF, 0xFF, 0xFF, 0x3E, 0xBE, 0xBE,
|
||||||
|
0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0x7E,
|
||||||
|
0x00, 0x00, 0xF8, 0xF8, 0xF8, 0x00,
|
||||||
|
0xF8, 0xF8, 0xF8, 0x00, 0xF8, 0xF8,
|
||||||
|
0xF8, 0xF8, 0x00, 0x00, 0x00, 0xFF,
|
||||||
|
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE0,
|
||||||
|
0xE0, 0xE0, 0xE0, 0xE0, 0xE0, 0xE0,
|
||||||
|
0xE0, 0xE0, 0xE0, 0x00, 0x00, 0x00,
|
||||||
|
0xC0, 0xF0, 0xFE, 0x7E, 0x1E, 0xFE,
|
||||||
|
0xFE, 0xFE, 0xFE, 0x00, 0x00, 0xF0,
|
||||||
|
0xFC, 0xFC, 0xFE, 0x1E, 0x9E, 0xFE,
|
||||||
|
0xFC, 0xFC, 0xF0, 0x00, 0x00, 0x00,
|
||||||
|
0xE0, 0xF0, 0xF0, 0xF0, 0xE0, 0xEC,
|
||||||
|
0xEE, 0xF7, 0xF3, 0x70, 0x20, 0x00,
|
||||||
|
0x7C, 0x7C, 0x7C, 0x7E, 0x00, 0x7E,
|
||||||
|
0x7E, 0x7E, 0x7F, 0x7F, 0x7F, 0x00,
|
||||||
|
0x00, 0x80, 0xC0, 0xE0, 0x7E, 0x5B,
|
||||||
|
0x4F, 0x5B, 0xFE, 0xC0, 0x00, 0x00,
|
||||||
|
0xC0, 0x00, 0xDC, 0xD7, 0xDE, 0xDE,
|
||||||
|
0xDE, 0xD7, 0xDC, 0x00, 0xC0, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x3F, 0x40, 0x60,
|
||||||
|
0x50, 0x48, 0x69, 0x4B, 0x4A, 0x4A,
|
||||||
|
0x4A, 0x4A, 0x4A, 0x4A, 0x4A, 0x4A,
|
||||||
|
0x4B, 0x69, 0x48, 0x50, 0x60, 0x40,
|
||||||
|
0x3F, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x7C, 0x7C, 0x7F, 0x7F,
|
||||||
|
0x7F, 0x3F, 0x1F, 0x00, 0x7C, 0x7C,
|
||||||
|
0x7F, 0x7F, 0x7F, 0x3F, 0x1F, 0x07,
|
||||||
|
0x00, 0x00, 0x00, 0x0F, 0x3F, 0x7F,
|
||||||
|
0x7F, 0x7F, 0x7F, 0x7C, 0x7D, 0x7D,
|
||||||
|
0x7D, 0x7D, 0x7D, 0x7D, 0x7D, 0x7C,
|
||||||
|
0x00, 0x00, 0x7B, 0x7B, 0x7B, 0x78,
|
||||||
|
0x7B, 0x7B, 0x7B, 0x78, 0x7F, 0x7F,
|
||||||
|
0x7F, 0x3F, 0x00, 0x00, 0x00, 0x7F,
|
||||||
|
0x7F, 0x7F, 0x7F, 0x7F, 0x7F, 0x03,
|
||||||
|
0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
|
||||||
|
0x03, 0x03, 0x03, 0x00, 0x00, 0x06,
|
||||||
|
0x07, 0x07, 0x07, 0x07, 0x00, 0x7F,
|
||||||
|
0x7F, 0x7F, 0x7F, 0x00, 0x00, 0x00,
|
||||||
|
0x41, 0x73, 0x78, 0x7E, 0x7F, 0x7F,
|
||||||
|
0x7F, 0x7B, 0x78, 0x00, 0x00, 0x00,
|
||||||
|
0x0F, 0x1F, 0x3F, 0x7F, 0x7F, 0x7F,
|
||||||
|
0x7F, 0x7F, 0x3F, 0x1E, 0x0C, 0x00,
|
||||||
|
0x1F, 0x1F, 0x1F, 0x3F, 0x00, 0x3F,
|
||||||
|
0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x00,
|
||||||
|
0x30, 0x7B, 0x7F, 0x78, 0x30, 0x20,
|
||||||
|
0x20, 0x30, 0x78, 0x7F, 0x3B, 0x00,
|
||||||
|
0x03, 0x00, 0x0F, 0x7F, 0x0F, 0x0F,
|
||||||
|
0x0F, 0x7F, 0x0F, 0x00, 0x03, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||||
|
};
|
||||||
25
keyboards/cassette42/common/oled_helper.c
Normal file
25
keyboards/cassette42/common/oled_helper.c
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
|
# include QMK_KEYBOARD_H
|
||||||
|
# include <stdio.h>
|
||||||
|
# include <string.h>
|
||||||
|
|
||||||
|
void render_logo(void) {
|
||||||
|
static const char PROGMEM logo[] = {0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94, 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0};
|
||||||
|
oled_write_P(logo, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
# ifdef RGBLIGHT_ENABLE
|
||||||
|
extern rgblight_config_t rgblight_config;
|
||||||
|
static char led_buf[24] = "LED state ready.\n";
|
||||||
|
rgblight_config_t rgblight_config_bak;
|
||||||
|
|
||||||
|
void update_led_status(void) {
|
||||||
|
if (rgblight_config_bak.enable != rgblight_config.enable || rgblight_config_bak.mode != rgblight_config.mode || rgblight_config_bak.hue != rgblight_config.hue || rgblight_config_bak.sat != rgblight_config.sat || rgblight_config_bak.val != rgblight_config.val) {
|
||||||
|
snprintf(led_buf, sizeof(led_buf) - 1, "%c H%2d S%2d V%2d MODE%2d", rgblight_config.enable ? '*' : '.', (uint8_t)(rgblight_config.hue / RGBLIGHT_HUE_STEP), (uint8_t)(rgblight_config.sat / RGBLIGHT_SAT_STEP), (uint8_t)(rgblight_config.val / RGBLIGHT_VAL_STEP), (uint8_t)rgblight_config.mode);
|
||||||
|
rgblight_config_bak = rgblight_config;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void render_led_status(void) { oled_write(led_buf, false); }
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
22
keyboards/cassette42/common/oled_helper.h
Normal file
22
keyboards/cassette42/common/oled_helper.h
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
|
|
||||||
|
void render_logo(void);
|
||||||
|
|
||||||
|
# define RENDER_LOGO(a) render_logo(a)
|
||||||
|
|
||||||
|
# ifdef RGBLIGHT_ENABLE
|
||||||
|
void update_led_status(void);
|
||||||
|
void render_led_status(void);
|
||||||
|
# define UPDATE_LED_STATUS() update_led_status()
|
||||||
|
# define RENDER_LED_STATUS(a) render_led_status(a)
|
||||||
|
# else
|
||||||
|
# define UPDATE_LED_STATUS()
|
||||||
|
# define RENDER_LED_STATUS(a)
|
||||||
|
# endif
|
||||||
|
|
||||||
|
#else
|
||||||
|
# define RENDER_LOGO(a)
|
||||||
|
# define UPDATE_LED_STATUS()
|
||||||
|
# define RENDER_LED_STATUS(a)
|
||||||
|
|
||||||
|
#endif
|
||||||
52
keyboards/cassette42/config.h
Normal file
52
keyboards/cassette42/config.h
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2019 monksoffunk
|
||||||
|
|
||||||
|
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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0xFEED
|
||||||
|
#define PRODUCT_ID 0xCA42
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER monksoffunk
|
||||||
|
#define PRODUCT cassette42
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 1
|
||||||
|
#define MATRIX_COLS 6
|
||||||
|
|
||||||
|
#define DIRECT_PINS {{ B4, F6, F5, F4, B5, F7 }}
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
#define ENCODERS_PAD_A { B6, B3 }
|
||||||
|
#define ENCODERS_PAD_B { B2, B1 }
|
||||||
|
#define ENCODER_RESOLUTION 4
|
||||||
|
|
||||||
|
#define RGB_DI_PIN D3
|
||||||
|
#ifdef RGB_DI_PIN
|
||||||
|
# define RGBLED_NUM 5
|
||||||
|
# define RGBLIGHT_HUE_STEP 8
|
||||||
|
# define RGBLIGHT_SAT_STEP 8
|
||||||
|
# define RGBLIGHT_VAL_STEP 8
|
||||||
|
# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
|
||||||
|
# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
|
||||||
|
# define RGBLIGHT_ANIMATIONS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define OLED_FONT_H "keyboards/cassette42/common/glcdfont.c"
|
||||||
12
keyboards/cassette42/info.json
Normal file
12
keyboards/cassette42/info.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "cassette42",
|
||||||
|
"url": "http://www.sho-k.co.uk/tech/1246.html",
|
||||||
|
"maintainer": "monksoffunk",
|
||||||
|
"width": 4,
|
||||||
|
"height": 2.75,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [{"x":0.5, "y":0.75}, {"x":2.5, "y":0.75}, {"x":0, "y":1.75}, {"x":1, "y":1.75}, {"x":2, "y":1.75}, {"x":3, "y":1.75}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
174
keyboards/cassette42/keymaps/default/keymap.c
Normal file
174
keyboards/cassette42/keymaps/default/keymap.c
Normal file
@@ -0,0 +1,174 @@
|
|||||||
|
/* Copyright 2019 monksoffunk
|
||||||
|
*
|
||||||
|
* 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 2 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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
#include "common/oled_helper.h"
|
||||||
|
|
||||||
|
// Defines the keycodes used by our macros in process_record_user
|
||||||
|
enum custom_keycodes {
|
||||||
|
RGBRST = SAFE_RANGE,
|
||||||
|
WRTROM,
|
||||||
|
};
|
||||||
|
|
||||||
|
enum layer_number {
|
||||||
|
_AUDIO = 0,
|
||||||
|
_HUE,
|
||||||
|
_SAT,
|
||||||
|
_VAL,
|
||||||
|
_MODE,
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
// LAYOUT(LeftEncoder, RightEncoder, LeftSwitch, CenterLeftSwitch, CenterRightSwitch, RightSwitch)
|
||||||
|
[_AUDIO] = LAYOUT(KC_MUTE, KC_ENT, LT(_HUE, KC_MPRV), LT(_SAT, KC_MPLY), LT(_VAL, KC_MNXT), LT(_MODE, KC_SPC)),
|
||||||
|
[_HUE] = LAYOUT(RGB_TOG, RGBRST, _______, _______, RGB_HUD, RGB_HUI),
|
||||||
|
[_SAT] = LAYOUT(_______, _______, _______, _______, RGB_SAD, RGB_SAI),
|
||||||
|
[_VAL] = LAYOUT(_______, _______, RGB_VAD, RGB_VAI, _______, RGB_VAI),
|
||||||
|
[_MODE] = LAYOUT(_______, WRTROM, RGB_RMOD, RGB_MOD, RGB_MOD, _______),
|
||||||
|
};
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case WRTROM:
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
if (record->event.pressed) {
|
||||||
|
eeconfig_update_rgblight_current();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case RGBRST:
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
if (record->event.pressed) {
|
||||||
|
eeconfig_update_rgblight_default();
|
||||||
|
rgblight_enable();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
|
# include <stdio.h>
|
||||||
|
# include <string.h>
|
||||||
|
|
||||||
|
// assign the right code to your layers for OLED display
|
||||||
|
# define L_AUDIO 0
|
||||||
|
# define L_HUE (1 << _HUE)
|
||||||
|
# define L_SAT (1 << _SAT)
|
||||||
|
# define L_VAL (1 << _VAL)
|
||||||
|
# define L_MODE (1 << _MODE)
|
||||||
|
|
||||||
|
void render_status(void) {
|
||||||
|
render_logo();
|
||||||
|
// Define layers here, Have not worked out how to have text displayed for each layer. Copy down the number you see and add a case for it below
|
||||||
|
switch (layer_state) {
|
||||||
|
case L_AUDIO:
|
||||||
|
oled_write_P(PSTR("audio control\n"), false);
|
||||||
|
break;
|
||||||
|
case L_HUE:
|
||||||
|
oled_write_P(PSTR("rgb HUE control\n"), false);
|
||||||
|
break;
|
||||||
|
case L_SAT:
|
||||||
|
oled_write_P(PSTR("rgb SAT control\n"), false);
|
||||||
|
break;
|
||||||
|
case L_VAL:
|
||||||
|
oled_write_P(PSTR("rgb VAL control\n"), false);
|
||||||
|
break;
|
||||||
|
case L_MODE:
|
||||||
|
oled_write_P(PSTR("rgb MODE control\n"), false);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
UPDATE_LED_STATUS();
|
||||||
|
RENDER_LED_STATUS();
|
||||||
|
}
|
||||||
|
|
||||||
|
void oled_task_user(void) {
|
||||||
|
if (is_keyboard_master()) {
|
||||||
|
render_status();
|
||||||
|
} else {
|
||||||
|
render_logo();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
void led_set_user(uint8_t usb_led) {}
|
||||||
|
|
||||||
|
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
|
oled_on();
|
||||||
|
if (index == 0) { /* left encoder */
|
||||||
|
switch (layer_state) {
|
||||||
|
case L_AUDIO:
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_VOLU);
|
||||||
|
} else {
|
||||||
|
tap_code(KC_VOLD);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case L_HUE:
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
if (clockwise) {
|
||||||
|
rgblight_increase_hue_noeeprom();
|
||||||
|
} else {
|
||||||
|
rgblight_decrease_hue_noeeprom();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
|
||||||
|
case L_SAT:
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
if (clockwise) {
|
||||||
|
rgblight_increase_sat_noeeprom();
|
||||||
|
} else {
|
||||||
|
rgblight_decrease_sat_noeeprom();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
|
||||||
|
case L_VAL:
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
if (clockwise) {
|
||||||
|
rgblight_increase_val_noeeprom();
|
||||||
|
} else {
|
||||||
|
rgblight_decrease_val_noeeprom();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
|
||||||
|
case L_MODE:
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
if (clockwise) {
|
||||||
|
rgblight_step_noeeprom();
|
||||||
|
} else {
|
||||||
|
rgblight_step_reverse_noeeprom();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} else if (index == 1) { /* right encoder */
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code(KC_DOWN);
|
||||||
|
} else {
|
||||||
|
tap_code(KC_UP);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1
keyboards/cassette42/keymaps/default/readme.md
Normal file
1
keyboards/cassette42/keymaps/default/readme.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# The default keymap for cassette42
|
||||||
15
keyboards/cassette42/readme.md
Normal file
15
keyboards/cassette42/readme.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Cassette42
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
An audio control pad with 4 switches and 2 rotary encoders.
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [monksoffunk](https://github.com/monksoffunk) [@monksoffunkJP](https://twitter.com/monksoffunkJP)
|
||||||
|
* Hardware Supported: Cassette 42 PCB
|
||||||
|
* Hardware Availability: [Yushakobo Shop](https://yushakobo.jp/shop/cassette42/)
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make cassette42:default
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
26
keyboards/cassette42/rules.mk
Normal file
26
keyboards/cassette42/rules.mk
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
BOOTLOADER = caterina
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# change yes to no to disable
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
|
||||||
|
MOUSEKEY_ENABLE = no # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
NKRO_ENABLE = no # USB Nkey Rollover
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth
|
||||||
|
AUDIO_ENABLE = no # Audio output
|
||||||
|
ENCODER_ENABLE = yes
|
||||||
|
OLED_DRIVER_ENABLE = yes
|
||||||
|
|
||||||
|
SRC += ./common/oled_helper.c
|
||||||
@@ -14,29 +14,3 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "chili.h"
|
#include "chili.h"
|
||||||
|
|
||||||
void matrix_init_kb(void) {
|
|
||||||
// put your keyboard start-up code here
|
|
||||||
// runs once when the firmware starts up
|
|
||||||
led_init_ports();
|
|
||||||
matrix_init_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void led_init_ports(void) {
|
|
||||||
setPinOutput(B1);
|
|
||||||
writePinHigh(B1);
|
|
||||||
setPinOutput(B2);
|
|
||||||
writePinHigh(B2);
|
|
||||||
setPinOutput(B3);
|
|
||||||
writePinHigh(B3);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool led_update_kb(led_t led_state) {
|
|
||||||
bool res = led_update_user(led_state);
|
|
||||||
if(res) {
|
|
||||||
writePin(B1, !led_state.num_lock);
|
|
||||||
writePin(B2, !led_state.caps_lock);
|
|
||||||
writePin(B3, !led_state.scroll_lock);
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -42,6 +42,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
/* COL2ROW or ROW2COL */
|
/* COL2ROW or ROW2COL */
|
||||||
#define DIODE_DIRECTION COL2ROW
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
#define LED_NUM_LOCK_PIN B1
|
||||||
|
#define LED_CAPS_LOCK_PIN B2
|
||||||
|
#define LED_SCROLL_LOCK_PIN B3
|
||||||
|
#define LED_PIN_ON_STATE 0
|
||||||
|
|
||||||
#define BACKLIGHT_PIN B7
|
#define BACKLIGHT_PIN B7
|
||||||
#define BACKLIGHT_BREATHING
|
#define BACKLIGHT_BREATHING
|
||||||
#define BACKLIGHT_LEVELS 3
|
#define BACKLIGHT_LEVELS 3
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
*/
|
*/
|
||||||
#define MATRIX_ROW_PINS { C5, C4, B6, B7, C7 }
|
#define MATRIX_ROW_PINS { C5, C4, B6, B7, C7 }
|
||||||
#define MATRIX_ROW_PINS_RIGHT { D3, D2, D5, D6, B0 }
|
#define MATRIX_ROW_PINS_RIGHT { D3, D2, D5, D6, B0 }
|
||||||
#define MATRIX_COL_PINS { C6, B4, B3, B2, B1, B0 }
|
/* The last three NO_PIN are dummies to make the same size as MATRIX_ROW_PINS_RIGHT. */
|
||||||
|
#define MATRIX_COL_PINS { C6, B4, B3, B2, B1, B0, NO_PIN, NO_PIN, NO_PIN }
|
||||||
#define MATRIX_COL_PINS_RIGHT { C7, B7, B6, B5, B4, B3, B2, C6, D4 }
|
#define MATRIX_COL_PINS_RIGHT { C7, B7, B6, B5, B4, B3, B2, C6, D4 }
|
||||||
#define UNUSED_PINS
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
#define MATRIX_COL_PINS { B15, B14, B13, B12, B11, B10, B2, B1, B8, B7, B6, B5, B4, B3, A15, A14 }
|
#define MATRIX_COL_PINS { B15, B14, B13, B12, B11, B10, B2, B1, B8, B7, B6, B5, B4, B3, A15, A14 }
|
||||||
#define DIODE_DIRECTION COL2ROW
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
#define LED_NUM_LOCK_PIN B0
|
||||||
|
#define LED_CAPS_LOCK_PIN A1
|
||||||
|
#define LED_SCROLL_LOCK_PIN A0
|
||||||
|
|
||||||
#define BACKLIGHT_PIN A8
|
#define BACKLIGHT_PIN A8
|
||||||
#define BACKLIGHT_PWM_DRIVER PWMD1
|
#define BACKLIGHT_PWM_DRIVER PWMD1
|
||||||
#define BACKLIGHT_PWM_CHANNEL 1
|
#define BACKLIGHT_PWM_CHANNEL 1
|
||||||
|
|||||||
@@ -16,23 +16,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "cordillera.h"
|
#include "cordillera.h"
|
||||||
|
|
||||||
void keyboard_pre_init_kb(void) {
|
|
||||||
led_init_ports();
|
|
||||||
keyboard_pre_init_user();
|
|
||||||
}
|
|
||||||
|
|
||||||
void led_init_ports(void) {
|
|
||||||
setPinOutput(B0);
|
|
||||||
setPinOutput(A1);
|
|
||||||
setPinOutput(A0);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool led_update_kb(led_t led_state) {
|
|
||||||
if (led_update_user(led_state)) {
|
|
||||||
writePin(B0, led_state.num_lock);
|
|
||||||
writePin(A1, led_state.caps_lock);
|
|
||||||
writePin(A0, led_state.scroll_lock);
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -19,14 +19,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
#include "config_common.h"
|
#include "config_common.h"
|
||||||
|
|
||||||
#define VENDOR_ID 0xFEED
|
/* USB Device descriptor parameter */
|
||||||
#define PRODUCT_ID 0x6512
|
#define VENDOR_ID 0xFEED
|
||||||
#define DEVICE_VER 0x0001
|
#define PRODUCT_ID 0x6512
|
||||||
#define MANUFACTURER QMK
|
#define DEVICE_VER 0x0001
|
||||||
#define PRODUCT XT keyboard converter
|
#define MANUFACTURER QMK
|
||||||
|
#define PRODUCT XT keyboard converter
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
/* matrix size */
|
|
||||||
#define MATRIX_ROWS 16 // keycode bit: 3-0
|
#define MATRIX_ROWS 16 // keycode bit: 3-0
|
||||||
#define MATRIX_COLS 8 // keycode bit: 6-4
|
#define MATRIX_COLS 8 // keycode bit: 6-4
|
||||||
|
|
||||||
@@ -36,44 +36,31 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
get_mods() == (MOD_BIT(KC_LCTRL) | MOD_BIT(KC_RSHIFT)) \
|
get_mods() == (MOD_BIT(KC_LCTRL) | MOD_BIT(KC_RSHIFT)) \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
#define XT_CLOCK_PIN D1
|
||||||
//#define NO_SUSPEND_POWER_DOWN
|
#define XT_DATA_PIN D0
|
||||||
|
#define XT_RST_PIN B7
|
||||||
/*
|
|
||||||
* XT Pin interrupt
|
|
||||||
*/
|
|
||||||
#define XT_CLOCK_PORT PORTD
|
|
||||||
#define XT_CLOCK_PIN PIND
|
|
||||||
#define XT_CLOCK_DDR DDRD
|
|
||||||
#define XT_CLOCK_BIT 1
|
|
||||||
#define XT_DATA_PORT PORTD
|
|
||||||
#define XT_DATA_PIN PIND
|
|
||||||
#define XT_DATA_DDR DDRD
|
|
||||||
#define XT_DATA_BIT 0
|
|
||||||
#define XT_RST_PORT PORTB
|
|
||||||
#define XT_RST_PIN PINB
|
|
||||||
#define XT_RST_DDR DDRB
|
|
||||||
#define XT_RST_BIT 7
|
|
||||||
|
|
||||||
/* hard reset: low pulse for 500ms and after that HiZ for safety */
|
/* hard reset: low pulse for 500ms and after that HiZ for safety */
|
||||||
#define XT_RESET() do { \
|
#define XT_RESET() do { \
|
||||||
XT_RST_PORT &= ~(1<<XT_RST_BIT); \
|
writePinLow(XT_RST_PIN); \
|
||||||
XT_RST_DDR |= (1<<XT_RST_BIT); \
|
setPinOutput(XT_RST_PIN); \
|
||||||
_delay_ms(500); \
|
wait_ms(500); \
|
||||||
XT_RST_DDR &= ~(1<<XT_RST_BIT); \
|
setPinInput(XT_RST_PIN); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/* INT1 for falling edge of clock line */
|
/* INT1 for falling edge of clock line */
|
||||||
#define XT_INT_INIT() do { \
|
#define XT_INT_INIT() do { \
|
||||||
EICRA |= ((1<<ISC11) | \
|
EICRA |= ((1 << ISC11) | (0 << ISC10)); \
|
||||||
(0<<ISC10)); \
|
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/* clears flag and enables interrupt */
|
/* clears flag and enables interrupt */
|
||||||
#define XT_INT_ON() do { \
|
#define XT_INT_ON() do { \
|
||||||
EIFR |= (1<<INTF1); \
|
EIFR |= (1 << INTF1); \
|
||||||
EIMSK |= (1<<INT1); \
|
EIMSK |= (1 << INT1); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#define XT_INT_OFF() do { \
|
|
||||||
EIMSK &= ~(1<<INT1); \
|
#define XT_INT_OFF() do { \
|
||||||
|
EIMSK &= ~(1 << INT1); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#define XT_INT_VECT INT1_vect
|
|
||||||
|
#define XT_INT_VECT INT1_vect
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user