mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-08-07 21:39:46 +00:00
Compare commits
906 Commits
led_matrix
...
0.8.7
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c9e3fa6f70 | ||
![]() |
f513a9193c | ||
![]() |
21715210e2 | ||
![]() |
f74c769a19 | ||
![]() |
bb47236490 | ||
![]() |
f5d1409c26 | ||
![]() |
d0c3acbe3e | ||
![]() |
c775104b9f | ||
![]() |
8d9c800da0 | ||
![]() |
cae91510dc | ||
![]() |
26eef35f07 | ||
![]() |
85041ff05b | ||
![]() |
7eab5ad60f | ||
![]() |
ae46e6ace9 | ||
![]() |
444fd3b1cc | ||
![]() |
e18be69104 | ||
![]() |
4667bc554e | ||
![]() |
d52cd8886c | ||
![]() |
61b71320f7 | ||
![]() |
b949343b78 | ||
![]() |
f6111d49bb | ||
![]() |
891d28a379 | ||
![]() |
bb8d4b4d23 | ||
![]() |
93c5307fd6 | ||
![]() |
088b64ab3d | ||
![]() |
ef8878fba5 | ||
![]() |
f673c965ba | ||
![]() |
a2c0c1479c | ||
![]() |
20e1c8c571 | ||
![]() |
40f7981395 | ||
![]() |
156c9c4ec0 | ||
![]() |
371ff9dd6f | ||
![]() |
716c29881c | ||
![]() |
f76f9c7d2a | ||
![]() |
530c997638 | ||
![]() |
b353028ea5 | ||
![]() |
eb9c2429c6 | ||
![]() |
1327208449 | ||
![]() |
d99404388f | ||
![]() |
3157f5f436 | ||
![]() |
8d11359886 | ||
![]() |
a4af41cb13 | ||
![]() |
032fbf3f24 | ||
![]() |
a7d859dab8 | ||
![]() |
1751c3cc25 | ||
![]() |
67ee050a0e | ||
![]() |
562482c234 | ||
![]() |
66d7fc34b2 | ||
![]() |
81423cc817 | ||
![]() |
7707724dc4 | ||
![]() |
42d6270f28 | ||
![]() |
19c9141473 | ||
![]() |
c4dce3b5a7 | ||
![]() |
443bd98041 | ||
![]() |
419002a63b | ||
![]() |
1566f0a997 | ||
![]() |
8225b172b9 | ||
![]() |
0f500eb336 | ||
![]() |
675ac4ac4a | ||
![]() |
79d5903b6c | ||
![]() |
a2081171de | ||
![]() |
c66930445f | ||
![]() |
58724f8dcb | ||
![]() |
e7e38fe80e | ||
![]() |
0d3f0889c5 | ||
![]() |
79e6b78669 | ||
![]() |
5e79da9f32 | ||
![]() |
bbe8180ad9 | ||
![]() |
eabdef3b4d | ||
![]() |
e279b0a1a2 | ||
![]() |
de462761c9 | ||
![]() |
17ff551275 | ||
![]() |
e208cb46ae | ||
![]() |
89c3355fd8 | ||
![]() |
58101cbb73 | ||
![]() |
512261b343 | ||
![]() |
3db41817e0 | ||
![]() |
8eeab1112a | ||
![]() |
988bfffca2 | ||
![]() |
8ff72d9517 | ||
![]() |
4445e0a459 | ||
![]() |
3ed1223678 | ||
![]() |
d257a98cb8 | ||
![]() |
f8002828ca | ||
![]() |
26f53d38d9 | ||
![]() |
f96085af38 | ||
![]() |
e46cc2db8c | ||
![]() |
c3b168e6fd | ||
![]() |
62c1bcba71 | ||
![]() |
057c7d0ffe | ||
![]() |
1d3271999a | ||
![]() |
409c610543 | ||
![]() |
348266bd5b | ||
![]() |
eb1f99c5f9 | ||
![]() |
4eed0331bf | ||
![]() |
66177aa5e0 | ||
![]() |
ac0947c9e8 | ||
![]() |
806cd392e7 | ||
![]() |
9241d11dc5 | ||
![]() |
31aadc8725 | ||
![]() |
014ad1d747 | ||
![]() |
1a77abfe64 | ||
![]() |
667b29b77c | ||
![]() |
7740470a94 | ||
![]() |
eaf32621aa | ||
![]() |
f318d6fffc | ||
![]() |
177666cbc8 | ||
![]() |
9456832a3b | ||
![]() |
78e060f55a | ||
![]() |
c53d4ecf32 | ||
![]() |
6a165c41cb | ||
![]() |
387c486e57 | ||
![]() |
a624c439a4 | ||
![]() |
fba9971555 | ||
![]() |
310b2f1be4 | ||
![]() |
1fed214490 | ||
![]() |
f4c1e066ba | ||
![]() |
4b7d46ced0 | ||
![]() |
cabe4dfa72 | ||
![]() |
5279571e41 | ||
![]() |
9398c11b51 | ||
![]() |
89c528e443 | ||
![]() |
8f333138f5 | ||
![]() |
35c4dbe688 | ||
![]() |
c3200aa8fc | ||
![]() |
6052aa499e | ||
![]() |
2fe288d01d | ||
![]() |
b6e23f974b | ||
![]() |
174a15d07d | ||
![]() |
5ab0eeb513 | ||
![]() |
75e7018f72 | ||
![]() |
8fe29f2784 | ||
![]() |
dd6f92541d | ||
![]() |
610cf729af | ||
![]() |
96a4388c43 | ||
![]() |
a86a8a236a | ||
![]() |
f44a89ca77 | ||
![]() |
a1a88b8ac7 | ||
![]() |
df029f9660 | ||
![]() |
b62829031d | ||
![]() |
43c0a9293e | ||
![]() |
4962b743d2 | ||
![]() |
ea2fcb5b08 | ||
![]() |
fd2ac4b4d5 | ||
![]() |
7182e9a8ad | ||
![]() |
3b1f29a5d6 | ||
![]() |
707c04b4ab | ||
![]() |
be05de6a3d | ||
![]() |
889eb51fb5 | ||
![]() |
e77188458f | ||
![]() |
774cbbf879 | ||
![]() |
c93093569e | ||
![]() |
fb6f581157 | ||
![]() |
e43d143ab0 | ||
![]() |
a73c38112d | ||
![]() |
e3444084fb | ||
![]() |
d84eb14b3a | ||
![]() |
fe814be287 | ||
![]() |
6a0e155afe | ||
![]() |
917eebcfac | ||
![]() |
de288adb97 | ||
![]() |
78ae77f307 | ||
![]() |
b015c37922 | ||
![]() |
ae7b208d32 | ||
![]() |
9fe0c87e9a | ||
![]() |
b32a9a201d | ||
![]() |
fb980cf032 | ||
![]() |
d3286af398 | ||
![]() |
aed18a5ff3 | ||
![]() |
307be48de9 | ||
![]() |
a557a5b2c5 | ||
![]() |
a6b0a74d95 | ||
![]() |
393937b43f | ||
![]() |
efe8bd8e92 | ||
![]() |
74e3cad728 | ||
![]() |
0010d0c45e | ||
![]() |
8a749a7a8e | ||
![]() |
964ed17716 | ||
![]() |
50554ca270 | ||
![]() |
c6f389b527 | ||
![]() |
5780c94423 | ||
![]() |
acef512730 | ||
![]() |
fa9c74c6a2 | ||
![]() |
b2ce2f8a34 | ||
![]() |
5b91c3e0a0 | ||
![]() |
1877736fa4 | ||
![]() |
c096be3831 | ||
![]() |
4888a118c3 | ||
![]() |
e036b94a21 | ||
![]() |
1a79f14e43 | ||
![]() |
4e6d1ae0ea | ||
![]() |
1858c3ed11 | ||
![]() |
8e550fc11a | ||
![]() |
1aee492c0f | ||
![]() |
fdabf524f2 | ||
![]() |
e565948ffd | ||
![]() |
5c5a05212e | ||
![]() |
b28ee6b039 | ||
![]() |
6544bd2e65 | ||
![]() |
f31411af17 | ||
![]() |
479c6a68cf | ||
![]() |
eb309be6f0 | ||
![]() |
4139de3cc9 | ||
![]() |
7514f5124a | ||
![]() |
31e4583f4a | ||
![]() |
17a089d21b | ||
![]() |
db2f187493 | ||
![]() |
d2e1cc4d48 | ||
![]() |
0f7d294ac3 | ||
![]() |
c66a4a9831 | ||
![]() |
e57af8db0d | ||
![]() |
0968cf8b00 | ||
![]() |
0f9982c53e | ||
![]() |
6d5812a86c | ||
![]() |
1249594cf0 | ||
![]() |
e04c5edaae | ||
![]() |
66fe3001e4 | ||
![]() |
7149557bb4 | ||
![]() |
2abc0e17e7 | ||
![]() |
197a401be6 | ||
![]() |
4a208b8951 | ||
![]() |
1e90f5c71c | ||
![]() |
0d80c7bd59 | ||
![]() |
4d06d2835c | ||
![]() |
92c62352cf | ||
![]() |
1f0404e3c5 | ||
![]() |
ee88feb759 | ||
![]() |
eb5e513d26 | ||
![]() |
a539bd63fe | ||
![]() |
1b7a003d84 | ||
![]() |
0804f0a5dd | ||
![]() |
7342c335d2 | ||
![]() |
50855593ff | ||
![]() |
9a0245b778 | ||
![]() |
43d2a0e167 | ||
![]() |
212aeee202 | ||
![]() |
5fb95c5f94 | ||
![]() |
05d6e6ca78 | ||
![]() |
992656e753 | ||
![]() |
ee86be9dca | ||
![]() |
98e5555705 | ||
![]() |
d3abebb601 | ||
![]() |
645c5fabf2 | ||
![]() |
7f7b6b08e8 | ||
![]() |
72d7661b30 | ||
![]() |
d0d106cef7 | ||
![]() |
d603e94f68 | ||
![]() |
9ff61601e3 | ||
![]() |
09370a95db | ||
![]() |
e9ffc53476 | ||
![]() |
480a391929 | ||
![]() |
154336ee27 | ||
![]() |
d4ccb2e0e6 | ||
![]() |
5e65af3a76 | ||
![]() |
6efcfaa264 | ||
![]() |
e4a0f841e1 | ||
![]() |
4867a9b1e6 | ||
![]() |
9a9eaa8100 | ||
![]() |
339e29d5af | ||
![]() |
b568999769 | ||
![]() |
fe50883c15 | ||
![]() |
d13ada1162 | ||
![]() |
6ff093efbe | ||
![]() |
c3835262d8 | ||
![]() |
1a40af74da | ||
![]() |
9e6e01cabb | ||
![]() |
a561443fca | ||
![]() |
e0a0430c31 | ||
![]() |
49c3a1cda5 | ||
![]() |
ba264c69c2 | ||
![]() |
8e500c3670 | ||
![]() |
bf4611c7b7 | ||
![]() |
f773056750 | ||
![]() |
b70500806a | ||
![]() |
9b6b54cdaa | ||
![]() |
37db6012a7 | ||
![]() |
6f176dfc7c | ||
![]() |
dee1d68dde | ||
![]() |
123ae73efc | ||
![]() |
2566992c9a | ||
![]() |
5f35203d1b | ||
![]() |
c23b73530f | ||
![]() |
61dbb92679 | ||
![]() |
e3d59a72f9 | ||
![]() |
484a9b12bc | ||
![]() |
ce81c4f89b | ||
![]() |
ef8a4e5aaf | ||
![]() |
1f86e8ae9a | ||
![]() |
e7f6e90a22 | ||
![]() |
20290a1cff | ||
![]() |
80d329bb55 | ||
![]() |
251a69ea3d | ||
![]() |
31c0fe69f6 | ||
![]() |
65f7bfcc8d | ||
![]() |
4da241968c | ||
![]() |
dd2b793c0c | ||
![]() |
ef33befa06 | ||
![]() |
2bddfb986d | ||
![]() |
667045b492 | ||
![]() |
f5209aa4e9 | ||
![]() |
eb5d267e63 | ||
![]() |
eaed517c0b | ||
![]() |
ba628a28bc | ||
![]() |
a1452db98a | ||
![]() |
9b9a0f0bcb | ||
![]() |
6b17067b15 | ||
![]() |
055e940f06 | ||
![]() |
3dd43d9cab | ||
![]() |
6e710426a4 | ||
![]() |
d11238f748 | ||
![]() |
95c24bbaf8 | ||
![]() |
1b0854fdca | ||
![]() |
75d4ff7d51 | ||
![]() |
952e805edb | ||
![]() |
1fcd0b2578 | ||
![]() |
619ee543b8 | ||
![]() |
b6d8840915 | ||
![]() |
d6e6feb377 | ||
![]() |
919d69266e | ||
![]() |
1e670f5e67 | ||
![]() |
bf397fdd9f | ||
![]() |
5153580698 | ||
![]() |
3a69232213 | ||
![]() |
2a6cb426ef | ||
![]() |
2081c5e40e | ||
![]() |
48cac9e3c8 | ||
![]() |
537b8713e5 | ||
![]() |
61cd180163 | ||
![]() |
b69b1ad4fc | ||
![]() |
bb652314be | ||
![]() |
9b4052e5a3 | ||
![]() |
58d27cf404 | ||
![]() |
44168baaa7 | ||
![]() |
c7b2d60a23 | ||
![]() |
c58f7857bd | ||
![]() |
e80fdbf3dc | ||
![]() |
83be1aed76 | ||
![]() |
c293d9049a | ||
![]() |
f609e125e4 | ||
![]() |
94ea13e73d | ||
![]() |
240e1ef6fd | ||
![]() |
1b8cb95f2e | ||
![]() |
390a4fdc9d | ||
![]() |
1034df577d | ||
![]() |
869ce2f500 | ||
![]() |
af03ff145d | ||
![]() |
be7d70b15c | ||
![]() |
b89e35bdd3 | ||
![]() |
2ce3025be2 | ||
![]() |
ff5742da9f | ||
![]() |
5cb83dd5d7 | ||
![]() |
b187139f64 | ||
![]() |
9bbce7a231 | ||
![]() |
21d6cb18ed | ||
![]() |
09b4457bf2 | ||
![]() |
b6917c782f | ||
![]() |
08cd996839 | ||
![]() |
8b9d4fd341 | ||
![]() |
81ec3b5f81 | ||
![]() |
8f47e62b36 | ||
![]() |
e905d86fc5 | ||
![]() |
c6f47b5bd7 | ||
![]() |
70309bef3d | ||
![]() |
2d051d8de3 | ||
![]() |
578f54ee94 | ||
![]() |
7d7bb5bf82 | ||
![]() |
b1b52c37c7 | ||
![]() |
af77912d2d | ||
![]() |
9397bffd01 | ||
![]() |
7f388b6553 | ||
![]() |
e34af631c2 | ||
![]() |
5a02cc00a4 | ||
![]() |
886eb98e2a | ||
![]() |
2cd338cf7e | ||
![]() |
caa70df816 | ||
![]() |
71de09d751 | ||
![]() |
d3bd1d893b | ||
![]() |
d2e6a4bf5e | ||
![]() |
fe860131dd | ||
![]() |
4a09679d74 | ||
![]() |
331bbd602d | ||
![]() |
9086d720e0 | ||
![]() |
8fa64568f0 | ||
![]() |
fdc144d215 | ||
![]() |
ee70d496f4 | ||
![]() |
0027a0a948 | ||
![]() |
0c86cfeaed | ||
![]() |
b69457a192 | ||
![]() |
cf30c5d17f | ||
![]() |
957b8f553c | ||
![]() |
004ef3fad7 | ||
![]() |
10d18820d2 | ||
![]() |
6486c7809c | ||
![]() |
37d7fd12e2 | ||
![]() |
5f795d8382 | ||
![]() |
00d3061e02 | ||
![]() |
b3b115bcc4 | ||
![]() |
f2c61f8840 | ||
![]() |
12c6f9a412 | ||
![]() |
a68f514a8a | ||
![]() |
59c783df48 | ||
![]() |
d4b15cd93a | ||
![]() |
2908f1f963 | ||
![]() |
dcb7ca3f79 | ||
![]() |
c1feeaa57f | ||
![]() |
6e520a721d | ||
![]() |
8b80cf853b | ||
![]() |
0f43c26525 | ||
![]() |
2c14172467 | ||
![]() |
320822d75b | ||
![]() |
b362595665 | ||
![]() |
2dc0fd2b50 | ||
![]() |
48eda75c83 | ||
![]() |
3951f331c0 | ||
![]() |
2a7c715bc6 | ||
![]() |
abca0ccf4a | ||
![]() |
a1788a8398 | ||
![]() |
2f338c0608 | ||
![]() |
c87d88be4d | ||
![]() |
ee5bf03767 | ||
![]() |
983026ad8b | ||
![]() |
3fd8f160c3 | ||
![]() |
474f7f399c | ||
![]() |
61173dce5d | ||
![]() |
5b8f1327d8 | ||
![]() |
dd04079098 | ||
![]() |
f08ffc2715 | ||
![]() |
2406c04d89 | ||
![]() |
156d319604 | ||
![]() |
5404d6baef | ||
![]() |
291ef064a7 | ||
![]() |
a0a6e24788 | ||
![]() |
3650d59afe | ||
![]() |
53757f9705 | ||
![]() |
8ec0b378bc | ||
![]() |
2557bc8e6f | ||
![]() |
b83e3ae556 | ||
![]() |
dff4f13c19 | ||
![]() |
77f66cc5e1 | ||
![]() |
86815edc31 | ||
![]() |
45482d612c | ||
![]() |
91013d452f | ||
![]() |
c4061f003c | ||
![]() |
59b017381c | ||
![]() |
680ebef086 | ||
![]() |
7ba6456c0b | ||
![]() |
a52e55ec09 | ||
![]() |
d1ed98f58b | ||
![]() |
91c8a9314a | ||
![]() |
f6bdb6afba | ||
![]() |
559ef21563 | ||
![]() |
64263bbb02 | ||
![]() |
8af1501328 | ||
![]() |
25aaeb4f40 | ||
![]() |
36d913e1b1 | ||
![]() |
250a99ff1b | ||
![]() |
c329a0ec8e | ||
![]() |
26a823082b | ||
![]() |
80e73b6210 | ||
![]() |
b359830ea2 | ||
![]() |
c32d085710 | ||
![]() |
a14339e752 | ||
![]() |
cfbb848e03 | ||
![]() |
12baca1295 | ||
![]() |
4edc8fc3c7 | ||
![]() |
e5501d4815 | ||
![]() |
46e2b6e43d | ||
![]() |
9aedb620c5 | ||
![]() |
7494490d6d | ||
![]() |
7066164591 | ||
![]() |
0e2ff9b384 | ||
![]() |
376419a4f7 | ||
![]() |
05b479d349 | ||
![]() |
52c18ef026 | ||
![]() |
d478095756 | ||
![]() |
adf4acf596 | ||
![]() |
3f696664d6 | ||
![]() |
e4c257fb01 | ||
![]() |
593bfc86a1 | ||
![]() |
b4bda14f3c | ||
![]() |
f42dd61b8d | ||
![]() |
b2405fccce | ||
![]() |
3415dcef6f | ||
![]() |
7048b94034 | ||
![]() |
3c190f8927 | ||
![]() |
d23e81b1f0 | ||
![]() |
1ac99586a6 | ||
![]() |
cfb4c9bb61 | ||
![]() |
78ffc4f7fe | ||
![]() |
1646717b4b | ||
![]() |
67054fc380 | ||
![]() |
4ebecc424e | ||
![]() |
a860da8914 | ||
![]() |
98c8a30764 | ||
![]() |
ae40fc498b | ||
![]() |
0082ecf1f3 | ||
![]() |
7cddcce237 | ||
![]() |
adb72b60b0 | ||
![]() |
bc2157eea8 | ||
![]() |
f3bf301825 | ||
![]() |
85f4c3ebb4 | ||
![]() |
853b99954e | ||
![]() |
74dc65ab2e | ||
![]() |
3eb82e0470 | ||
![]() |
ad7ba08ac8 | ||
![]() |
876e544433 | ||
![]() |
b54722cc63 | ||
![]() |
94e2a39d72 | ||
![]() |
f6b9604f4a | ||
![]() |
0374677814 | ||
![]() |
3d54b1adf0 | ||
![]() |
d4c23d881f | ||
![]() |
1f26101f0e | ||
![]() |
80c2e26741 | ||
![]() |
707d449ba0 | ||
![]() |
ba13127c04 | ||
![]() |
20d3a979f1 | ||
![]() |
2d1c985ff4 | ||
![]() |
e4818cf732 | ||
![]() |
a1b53b45ca | ||
![]() |
09c7304bd9 | ||
![]() |
58b2c72d53 | ||
![]() |
627d6c154c | ||
![]() |
4fbb53e817 | ||
![]() |
ab78386e02 | ||
![]() |
f5638e54f5 | ||
![]() |
77efa1c620 | ||
![]() |
a037cedfdc | ||
![]() |
df78593b1b | ||
![]() |
45e71aedf0 | ||
![]() |
bbad6e1ae7 | ||
![]() |
efb21c00ce | ||
![]() |
071eb2478f | ||
![]() |
770a4ee729 | ||
![]() |
ccda62616d | ||
![]() |
698d0dbda8 | ||
![]() |
1af31a0523 | ||
![]() |
a8153774b5 | ||
![]() |
10e8ed7430 | ||
![]() |
cde56a7eee | ||
![]() |
8551ab3daf | ||
![]() |
b0bee465aa | ||
![]() |
7085066f08 | ||
![]() |
e4dd9e1393 | ||
![]() |
9c6a7522d7 | ||
![]() |
01653a5f96 | ||
![]() |
5acb7e3707 | ||
![]() |
6c834dea7b | ||
![]() |
b3c7864990 | ||
![]() |
8984f24f7c | ||
![]() |
294caf1ff1 | ||
![]() |
033c7af292 | ||
![]() |
15e5f57952 | ||
![]() |
051faf4b64 | ||
![]() |
2d94e02ea1 | ||
![]() |
013ac11c95 | ||
![]() |
dc2ed13a1c | ||
![]() |
6e463c8084 | ||
![]() |
3cd7cb81d4 | ||
![]() |
d5e0f21798 | ||
![]() |
4b11c2b552 | ||
![]() |
201c5bfa5c | ||
![]() |
34f302e1a5 | ||
![]() |
722c196b08 | ||
![]() |
c6ebb59a8b | ||
![]() |
4808b930db | ||
![]() |
c74295de88 | ||
![]() |
a7209533a3 | ||
![]() |
3d78e6078e | ||
![]() |
e676278474 | ||
![]() |
730a736ef0 | ||
![]() |
a8320f20f7 | ||
![]() |
1290039d7e | ||
![]() |
f275ffbdfc | ||
![]() |
36a6e269bf | ||
![]() |
e7541faadc | ||
![]() |
e8efc46e74 | ||
![]() |
1b08a19e3e | ||
![]() |
419128bfa1 | ||
![]() |
2d256f48d0 | ||
![]() |
380e05ad6e | ||
![]() |
de4eb79c6a | ||
![]() |
be47f91bc4 | ||
![]() |
8030c17d63 | ||
![]() |
9c8e66dc05 | ||
![]() |
3ad389de55 | ||
![]() |
66040506a7 | ||
![]() |
d598f01cb7 | ||
![]() |
1718dfa658 | ||
![]() |
1c8208ad9a | ||
![]() |
583be4a5f3 | ||
![]() |
24507ddca8 | ||
![]() |
3152bf572b | ||
![]() |
96d4ba84c2 | ||
![]() |
680924777b | ||
![]() |
75c8a79d0e | ||
![]() |
da1a527c90 | ||
![]() |
bf962821b3 | ||
![]() |
ce5678b819 | ||
![]() |
d9cf6c6730 | ||
![]() |
b386ccc786 | ||
![]() |
0ed492978a | ||
![]() |
a2c6257942 | ||
![]() |
a14c9a057a | ||
![]() |
c9838fea12 | ||
![]() |
dfe18b40aa | ||
![]() |
f099142004 | ||
![]() |
d98ed28e7c | ||
![]() |
beb9f3ab71 | ||
![]() |
77c04d148e | ||
![]() |
90c74701aa | ||
![]() |
ede67df6bd | ||
![]() |
27bf464dc3 | ||
![]() |
fb02593bd4 | ||
![]() |
c0dbd81b2b | ||
![]() |
385454e602 | ||
![]() |
7164e8eeb5 | ||
![]() |
f9521ffa21 | ||
![]() |
2048df8832 | ||
![]() |
99f3321e26 | ||
![]() |
235da6973d | ||
![]() |
5c41fa6062 | ||
![]() |
99a58aa2b8 | ||
![]() |
4ae87ab40a | ||
![]() |
7e62705877 | ||
![]() |
1604f79623 | ||
![]() |
265c415f5e | ||
![]() |
2b318ba01b | ||
![]() |
2f3adc3e24 | ||
![]() |
57581ad733 | ||
![]() |
b663a5b248 | ||
![]() |
f6ffa28b27 | ||
![]() |
170261328e | ||
![]() |
5a6737a778 | ||
![]() |
a2cedf4555 | ||
![]() |
397897180b | ||
![]() |
36cde567ab | ||
![]() |
572d3329eb | ||
![]() |
c0fe8dbfb4 | ||
![]() |
f0f161e572 | ||
![]() |
3a7085dee4 | ||
![]() |
583094aa26 | ||
![]() |
f4fb0e1617 | ||
![]() |
6a8c0a6468 | ||
![]() |
d14573620d | ||
![]() |
9ea9806d67 | ||
![]() |
7874f297b3 | ||
![]() |
3541f01a72 | ||
![]() |
eae21eed74 | ||
![]() |
e62ab7e259 | ||
![]() |
0270d4d5a1 | ||
![]() |
7e9ed2acbf | ||
![]() |
66d4734371 | ||
![]() |
6cf574396a | ||
![]() |
f0a9c10b6d | ||
![]() |
78954a0d3e | ||
![]() |
02412156d5 | ||
![]() |
e70fef03c1 | ||
![]() |
7e7eb69edf | ||
![]() |
f0790a722d | ||
![]() |
57815dbc3b | ||
![]() |
5d76b5f655 | ||
![]() |
84065e1d74 | ||
![]() |
90bb7db48e | ||
![]() |
e54aadf24a | ||
![]() |
6bcaf01c3f | ||
![]() |
e7f4d56592 | ||
![]() |
8416a94ad2 | ||
![]() |
ecc7355321 | ||
![]() |
baf6715a7e | ||
![]() |
f7c8e7ff70 | ||
![]() |
6776703d8f | ||
![]() |
f7bdc54c69 | ||
![]() |
d2115f7d1c | ||
![]() |
e6b9980bd4 | ||
![]() |
46606e1ea5 | ||
![]() |
0a5125a535 | ||
![]() |
eb91c96288 | ||
![]() |
8e8986b250 | ||
![]() |
b90edb75a3 | ||
![]() |
3b9a139c07 | ||
![]() |
acd02e4469 | ||
![]() |
8725f37de7 | ||
![]() |
831696611a | ||
![]() |
03e50e6dc9 | ||
![]() |
25e9853efe | ||
![]() |
c1c27b83aa | ||
![]() |
bb87bdec82 | ||
![]() |
687a24f298 | ||
![]() |
23f828a2f3 | ||
![]() |
9c58da6b12 | ||
![]() |
b608bddc5e | ||
![]() |
cee8df3edf | ||
![]() |
e58dd1a09a | ||
![]() |
a91c0c4765 | ||
![]() |
6b18ca2875 | ||
![]() |
7b6c8e89ca | ||
![]() |
46d0fe44f3 | ||
![]() |
634b277b07 | ||
![]() |
7891de7f6d | ||
![]() |
897888db41 | ||
![]() |
4f5b34af56 | ||
![]() |
b94f6cb116 | ||
![]() |
0f0c73f14a | ||
![]() |
f6b5f6db76 | ||
![]() |
381b73fcac | ||
![]() |
ad36bb37dd | ||
![]() |
1c9e450218 | ||
![]() |
700bea41f8 | ||
![]() |
43889326fc | ||
![]() |
f98750de6e | ||
![]() |
c19e4da8af | ||
![]() |
519df78cdb | ||
![]() |
3047335729 | ||
![]() |
a2eb962704 | ||
![]() |
1cf63a193b | ||
![]() |
8dc9764f31 | ||
![]() |
426c03eda0 | ||
![]() |
5edd4b99fe | ||
![]() |
872744f5ab | ||
![]() |
44df08746a | ||
![]() |
661462218b | ||
![]() |
1f332968a5 | ||
![]() |
d50d6f678f | ||
![]() |
28d3f03e43 | ||
![]() |
1b2e666490 | ||
![]() |
f2346be13d | ||
![]() |
fc867422a3 | ||
![]() |
9dc5432a3e | ||
![]() |
7e8f239c2e | ||
![]() |
6449bd2551 | ||
![]() |
1cd7afaff1 | ||
![]() |
12ea2e3649 | ||
![]() |
a4c2a9b083 | ||
![]() |
7329c2d02d | ||
![]() |
00fb1bd1f0 | ||
![]() |
79edb7c594 | ||
![]() |
d1b6c11b7f | ||
![]() |
5421ba11de | ||
![]() |
b252cce18f | ||
![]() |
3f6426ff5f | ||
![]() |
e75919960f | ||
![]() |
af683fc2ca | ||
![]() |
80713a8a58 | ||
![]() |
f48986dda2 | ||
![]() |
543e612003 | ||
![]() |
1d550552ca | ||
![]() |
b2b947f815 | ||
![]() |
54d8251f6f | ||
![]() |
e87434aa32 | ||
![]() |
1d4287cb95 | ||
![]() |
60e4921378 | ||
![]() |
78205e64a7 | ||
![]() |
f3f1bb166a | ||
![]() |
63d899d1ad | ||
![]() |
2b30776dd0 | ||
![]() |
5414ff709f | ||
![]() |
26ce66e306 | ||
![]() |
c1970e284d | ||
![]() |
2075370633 | ||
![]() |
31eee6b05d | ||
![]() |
680d401faf | ||
![]() |
6fd88c1556 | ||
![]() |
0483327fa6 | ||
![]() |
cec391df70 | ||
![]() |
d96f0584a2 | ||
![]() |
0f249990a9 | ||
![]() |
1ea0cac998 | ||
![]() |
b9610091f5 | ||
![]() |
002adadf58 | ||
![]() |
95309e9af5 | ||
![]() |
dfb78d2a08 | ||
![]() |
ed0575fc8a | ||
![]() |
7c0edbe800 | ||
![]() |
25d1901d7a | ||
![]() |
fc51a4a107 | ||
![]() |
8b832c494c | ||
![]() |
dcb2d63302 | ||
![]() |
dc1137129d | ||
![]() |
1244d0e266 | ||
![]() |
542cb0a8ce | ||
![]() |
0e664f92c4 | ||
![]() |
d382eeeb9d | ||
![]() |
efa28d0f5c | ||
![]() |
0a9a69394e | ||
![]() |
31fe2e0859 | ||
![]() |
29630e6e49 | ||
![]() |
a836c85e54 | ||
![]() |
511fa5f815 | ||
![]() |
a510e5212b | ||
![]() |
2b83b908dd | ||
![]() |
25d4c0c810 | ||
![]() |
3a215195ed | ||
![]() |
a4d138645f | ||
![]() |
363cdb5fc0 | ||
![]() |
be6562a223 | ||
![]() |
732d1dd4f6 | ||
![]() |
e9c44e396d | ||
![]() |
38353688f2 | ||
![]() |
bed98091aa | ||
![]() |
1249da4e8e | ||
![]() |
4531cc874e | ||
![]() |
ff8d436946 | ||
![]() |
e6cc9cc78d | ||
![]() |
1f6cb53fb3 | ||
![]() |
f5cf5b950f | ||
![]() |
3546932a8b | ||
![]() |
f8ce91b624 | ||
![]() |
671030f0ae | ||
![]() |
ea8822e267 | ||
![]() |
aba90329b2 | ||
![]() |
77861fcbc0 | ||
![]() |
f4c8057a1c | ||
![]() |
bc7f1dd296 | ||
![]() |
1acafc94f4 | ||
![]() |
2ce6adff2b | ||
![]() |
742e83e102 | ||
![]() |
934fa5183e | ||
![]() |
74252e03cf | ||
![]() |
22812aee5c | ||
![]() |
bd55396a45 | ||
![]() |
e176ab11ab | ||
![]() |
878039c59c | ||
![]() |
c4730ba00f | ||
![]() |
3e77e2aeac | ||
![]() |
6a75d10979 | ||
![]() |
096a49c3dc | ||
![]() |
dfdd9e821b | ||
![]() |
f183af14ad | ||
![]() |
455a0c5978 | ||
![]() |
674fcc474c | ||
![]() |
b1c2bf071b | ||
![]() |
e258b10d71 | ||
![]() |
b47c10bf6f | ||
![]() |
3817ff7cc0 | ||
![]() |
606813b72d | ||
![]() |
64b7cfe735 | ||
![]() |
908aede957 | ||
![]() |
cb3b5563e4 | ||
![]() |
d624690135 | ||
![]() |
f164016566 | ||
![]() |
0e6f78547e | ||
![]() |
476f556613 | ||
![]() |
e0e26957d4 | ||
![]() |
afc5cb7f0a | ||
![]() |
e48fdebe5a | ||
![]() |
1b06ea0c86 | ||
![]() |
c7a8cab883 | ||
![]() |
947e61eaeb | ||
![]() |
a096453259 | ||
![]() |
e376aa284d | ||
![]() |
4fef3b23e4 | ||
![]() |
f19c8b2d5d | ||
![]() |
8ab7f1f39e | ||
![]() |
917ab71c52 | ||
![]() |
6d7c6d4fd6 | ||
![]() |
8bc90ee20c | ||
![]() |
1971f22285 | ||
![]() |
24cf6dc7f4 | ||
![]() |
84ac03bbab | ||
![]() |
5777177cec | ||
![]() |
92be2439ec | ||
![]() |
d5316e9714 | ||
![]() |
85688f926a | ||
![]() |
40de65eac4 | ||
![]() |
5d34e70cf7 | ||
![]() |
006ec86786 | ||
![]() |
19f73483d8 | ||
![]() |
50202bc222 | ||
![]() |
a30ccc025e | ||
![]() |
d03303ab74 | ||
![]() |
ad5ead24c3 | ||
![]() |
b2a6329376 | ||
![]() |
3fd919c536 | ||
![]() |
0f30a4d2ca | ||
![]() |
32fdf4805a | ||
![]() |
581a8fa058 | ||
![]() |
23048798dd | ||
![]() |
e8453bbc12 | ||
![]() |
71d64c85d6 | ||
![]() |
323635da06 | ||
![]() |
e96cac0814 | ||
![]() |
335dd0271e | ||
![]() |
71493b2f9b | ||
![]() |
86ad4988fe | ||
![]() |
10975bd4c0 | ||
![]() |
8d8f2d09cc | ||
![]() |
9ce186860e | ||
![]() |
4b2d3288d0 | ||
![]() |
7b0200660e | ||
![]() |
57a6ea11df | ||
![]() |
89e8e0d277 | ||
![]() |
d7c5cf6e5b | ||
![]() |
a41e6804fc | ||
![]() |
da1dc28d31 | ||
![]() |
b42ca9bc5f | ||
![]() |
42cb78f98e | ||
![]() |
dc3a8ddb6b | ||
![]() |
472060d333 | ||
![]() |
5b80e10b82 | ||
![]() |
7f8b0906c6 | ||
![]() |
fa73d43818 | ||
![]() |
5a86db2259 | ||
![]() |
a5337b3495 | ||
![]() |
cd379c69a0 | ||
![]() |
156fd4e969 |
8
.github/ISSUE_TEMPLATE/blank.md
vendored
8
.github/ISSUE_TEMPLATE/blank.md
vendored
@@ -1,5 +1,11 @@
|
|||||||
---
|
---
|
||||||
name: Blank issue
|
name: Blank issue
|
||||||
about: If you're 100% sure that you don't need one of the other issue templates, use this one instead.
|
about: If you're 100% sure that you don't need one of the other issue templates, use
|
||||||
|
this one instead.
|
||||||
|
title: ''
|
||||||
|
labels: help wanted, question
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
|
7
.github/ISSUE_TEMPLATE/bug_report.md
vendored
7
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -1,7 +1,12 @@
|
|||||||
---
|
---
|
||||||
name: Bug report
|
name: Bug report
|
||||||
about: Create a report to help us improve the QMK Firmware
|
about: Create a report to help us improve QMK Firmware.
|
||||||
|
title: "[Bug] "
|
||||||
|
labels: bug, help wanted
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<!-- Provide a general summary of the bug in the title above. -->
|
<!-- Provide a general summary of the bug in the title above. -->
|
||||||
|
|
||||||
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
|
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
|
||||||
|
8
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
8
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
blank_issues_enabled: false
|
||||||
|
contact_links:
|
||||||
|
- name: QMK Discord
|
||||||
|
url: https://discord.gg/Uq7gcHh
|
||||||
|
about: Ask questions, discuss issues and features. Chill.
|
||||||
|
- name: OLKB Subreddit
|
||||||
|
url: https://www.reddit.com/r/olkb
|
||||||
|
about: All things OLKB and QMK.
|
7
.github/ISSUE_TEMPLATE/feature_request.md
vendored
7
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@@ -1,7 +1,12 @@
|
|||||||
---
|
---
|
||||||
name: Feature request
|
name: Feature request
|
||||||
about: Suggest a new feature or changes to existing features
|
about: Suggest a new feature or changes to existing features.
|
||||||
|
title: "[Feature Request] "
|
||||||
|
labels: enhancement, help wanted
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<!--- Provide a general summary of the changes you want in the title above. -->
|
<!--- Provide a general summary of the changes you want in the title above. -->
|
||||||
|
|
||||||
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
|
<!--- This template is entirely optional and can be removed, but is here to help both you and us. -->
|
||||||
|
7
.github/ISSUE_TEMPLATE/other_issues.md
vendored
7
.github/ISSUE_TEMPLATE/other_issues.md
vendored
@@ -1,7 +1,12 @@
|
|||||||
---
|
---
|
||||||
name: Other issues
|
name: Other issues
|
||||||
about: Anything else that doesn't fall into the above categories.
|
about: Anything else that doesn't fall into the above categories.
|
||||||
|
title: ''
|
||||||
|
labels: help wanted, question
|
||||||
|
assignees: ''
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<!--- Provide a general summary of the changes you want in the title above. -->
|
<!--- Provide a general summary of the changes you want in the title above. -->
|
||||||
|
|
||||||
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
|
<!--- Anything on lines wrapped in comments like these will not show up in the final text. -->
|
||||||
|
58
.github/stale.yml
vendored
Normal file
58
.github/stale.yml
vendored
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
# Configuration for probot-stale - https://github.com/probot/stale
|
||||||
|
|
||||||
|
# General configuration
|
||||||
|
|
||||||
|
# Pull request specific configuration
|
||||||
|
pulls:
|
||||||
|
staleLabel: awaiting changes
|
||||||
|
# Number of days of inactivity before an Issue or Pull Request becomes stale
|
||||||
|
daysUntilStale: 45
|
||||||
|
# Number of days of inactivity before a stale Issue or Pull Request is closed.
|
||||||
|
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
|
||||||
|
daysUntilClose: 30
|
||||||
|
# Comment to post when marking as stale. Set to `false` to disable
|
||||||
|
markComment: >
|
||||||
|
Thank you for your contribution!
|
||||||
|
|
||||||
|
This pull request has been automatically marked as stale because it has not had
|
||||||
|
activity in the last 45 days. It will be closed in 30 days if no further activity occurs.
|
||||||
|
Please feel free to give a status update now, or re-open when it's ready.
|
||||||
|
|
||||||
|
For maintainers: Please label with `awaiting review`, `breaking_change`, `in progress`, or `on hold` to prevent
|
||||||
|
the issue from being re-flagged.
|
||||||
|
# Comment to post when closing a stale Issue or Pull Request.
|
||||||
|
closeComment: >
|
||||||
|
Thank you for your contribution!
|
||||||
|
|
||||||
|
This pull request has been automatically closed because it has not had activity in the last 30 days.
|
||||||
|
Please feel free to give a status update now, ping for review, or re-open when it's ready.
|
||||||
|
# Limit the number of actions per hour, from 1-30. Default is 30
|
||||||
|
limitPerRun: 30
|
||||||
|
exemptLabels:
|
||||||
|
- awaiting review
|
||||||
|
- breaking_change
|
||||||
|
- in progress
|
||||||
|
- on hold
|
||||||
|
|
||||||
|
# Issue specific configuration
|
||||||
|
issues:
|
||||||
|
staleLabel: stale
|
||||||
|
limitPerRun: 10
|
||||||
|
daysUntilStale: 90
|
||||||
|
daysUntilClose: 30
|
||||||
|
markComment: >
|
||||||
|
This issue has been automatically marked as stale because it has not had activity in the
|
||||||
|
last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity
|
||||||
|
occurs.
|
||||||
|
|
||||||
|
For maintainers: Please label with `bug`, `in progress`, `on hold`, `discussion` or `to do` to prevent
|
||||||
|
the issue from being re-flagged.
|
||||||
|
closeComment: >
|
||||||
|
This issue has been automatically closed because it has not had activity in the last 30 days.
|
||||||
|
If this issue is still valid, re-open the issue and let us know.
|
||||||
|
exemptLabels:
|
||||||
|
- bug
|
||||||
|
- in progress
|
||||||
|
- on hold
|
||||||
|
- discussion
|
||||||
|
- to do
|
28
.github/workflows/cli.yml
vendored
Normal file
28
.github/workflows/cli.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: CLI CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- future
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'lib/python/**'
|
||||||
|
- 'bin/qmk'
|
||||||
|
- 'requirements.txt'
|
||||||
|
- '.github/workflows/cli.yml'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
container: qmkfm/base_container
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pip3 install -r requirements.txt
|
||||||
|
- name: Run tests
|
||||||
|
run: bin/qmk pytest
|
8
.gitignore
vendored
8
.gitignore
vendored
@@ -60,11 +60,8 @@ util/Win_Check_Output.txt
|
|||||||
|
|
||||||
# ignore image files
|
# ignore image files
|
||||||
*.png
|
*.png
|
||||||
*.jpg
|
|
||||||
*.gif
|
*.gif
|
||||||
|
*.jpg
|
||||||
# Do not ignore MiniDox left/right hand eeprom files
|
|
||||||
!keyboards/minidox/*.eep
|
|
||||||
|
|
||||||
# things travis sees
|
# things travis sees
|
||||||
secrets.tar
|
secrets.tar
|
||||||
@@ -73,3 +70,6 @@ id_rsa_*
|
|||||||
|
|
||||||
# python things
|
# python things
|
||||||
__pycache__
|
__pycache__
|
||||||
|
|
||||||
|
# prerequisites for updating ChibiOS
|
||||||
|
/util/fmpp*
|
||||||
|
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -1,13 +1,15 @@
|
|||||||
[submodule "lib/chibios"]
|
[submodule "lib/chibios"]
|
||||||
path = lib/chibios
|
path = lib/chibios
|
||||||
url = https://github.com/qmk/ChibiOS
|
url = https://github.com/qmk/ChibiOS
|
||||||
|
branch = master
|
||||||
[submodule "lib/chibios-contrib"]
|
[submodule "lib/chibios-contrib"]
|
||||||
path = lib/chibios-contrib
|
path = lib/chibios-contrib
|
||||||
url = https://github.com/qmk/ChibiOS-Contrib
|
url = https://github.com/qmk/ChibiOS-Contrib
|
||||||
branch = k-type-fix
|
branch = master
|
||||||
[submodule "lib/ugfx"]
|
[submodule "lib/ugfx"]
|
||||||
path = lib/ugfx
|
path = lib/ugfx
|
||||||
url = https://github.com/qmk/uGFX
|
url = https://github.com/qmk/uGFX
|
||||||
|
branch = master
|
||||||
[submodule "lib/googletest"]
|
[submodule "lib/googletest"]
|
||||||
path = lib/googletest
|
path = lib/googletest
|
||||||
url = https://github.com/google/googletest
|
url = https://github.com/google/googletest
|
||||||
|
20
.travis.yml
20
.travis.yml
@@ -12,20 +12,26 @@ env:
|
|||||||
- MAKEFLAGS="-j3 --output-sync"
|
- MAKEFLAGS="-j3 --output-sync"
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
install:
|
|
||||||
- npm install -g moxygen
|
|
||||||
script:
|
|
||||||
- git rev-parse --short HEAD
|
|
||||||
- bash util/travis_test.sh
|
|
||||||
- bash util/travis_build.sh
|
|
||||||
- bash util/travis_docs.sh
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
- llvm-toolchain-trusty-7
|
||||||
packages:
|
packages:
|
||||||
- pandoc
|
- pandoc
|
||||||
- diffutils
|
- diffutils
|
||||||
- dos2unix
|
- dos2unix
|
||||||
- doxygen
|
- doxygen
|
||||||
|
- clang-format-7
|
||||||
|
- libstdc++-7-dev
|
||||||
|
install:
|
||||||
|
- npm install -g moxygen
|
||||||
|
script:
|
||||||
|
- git rev-parse --short HEAD
|
||||||
|
- git diff --name-only HEAD $TRAVIS_BRANCH
|
||||||
|
- bash util/travis_test.sh
|
||||||
|
- bash util/travis_build.sh
|
||||||
|
- bash util/travis_docs.sh
|
||||||
after_script:
|
after_script:
|
||||||
bash util/travis_compiled_push.sh
|
bash util/travis_compiled_push.sh
|
||||||
notifications:
|
notifications:
|
||||||
|
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -5,7 +5,8 @@
|
|||||||
// Configure glob patterns for excluding files and folders.
|
// Configure glob patterns for excluding files and folders.
|
||||||
"files.exclude": {
|
"files.exclude": {
|
||||||
"**/.build": true,
|
"**/.build": true,
|
||||||
"**/*.hex": true
|
"**/*.hex": true,
|
||||||
|
"**/*.bin": true
|
||||||
},
|
},
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"*.h": "c",
|
"*.h": "c",
|
||||||
|
19
Makefile
19
Makefile
@@ -272,12 +272,14 @@ define PARSE_RULE
|
|||||||
# If the rule starts with all, then continue the parsing from
|
# If the rule starts with all, then continue the parsing from
|
||||||
# PARSE_ALL_KEYBOARDS
|
# PARSE_ALL_KEYBOARDS
|
||||||
ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,all),true)
|
ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,all),true)
|
||||||
|
KEYBOARD_RULE=all
|
||||||
$$(eval $$(call PARSE_ALL_KEYBOARDS))
|
$$(eval $$(call PARSE_ALL_KEYBOARDS))
|
||||||
else ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,test),true)
|
else ifeq ($$(call COMPARE_AND_REMOVE_FROM_RULE,test),true)
|
||||||
$$(eval $$(call PARSE_TEST))
|
$$(eval $$(call PARSE_TEST))
|
||||||
# If the rule starts with the name of a known keyboard, then continue
|
# If the rule starts with the name of a known keyboard, then continue
|
||||||
# the parsing from PARSE_KEYBOARD
|
# the parsing from PARSE_KEYBOARD
|
||||||
else ifeq ($$(call TRY_TO_MATCH_RULE_FROM_LIST,$$(KEYBOARDS)),true)
|
else ifeq ($$(call TRY_TO_MATCH_RULE_FROM_LIST,$$(KEYBOARDS)),true)
|
||||||
|
KEYBOARD_RULE=$$(MATCHED_ITEM)
|
||||||
$$(eval $$(call PARSE_KEYBOARD,$$(MATCHED_ITEM)))
|
$$(eval $$(call PARSE_KEYBOARD,$$(MATCHED_ITEM)))
|
||||||
# Otherwise use the KEYBOARD variable, which is determined either by
|
# Otherwise use the KEYBOARD variable, which is determined either by
|
||||||
# the current directory you run make from, or passed in as an argument
|
# the current directory you run make from, or passed in as an argument
|
||||||
@@ -380,6 +382,9 @@ define PARSE_KEYBOARD
|
|||||||
# Otherwise try to match the keymap from the current folder, or arguments to the make command
|
# Otherwise try to match the keymap from the current folder, or arguments to the make command
|
||||||
else ifneq ($$(KEYMAP),)
|
else ifneq ($$(KEYMAP),)
|
||||||
$$(eval $$(call PARSE_KEYMAP,$$(KEYMAP)))
|
$$(eval $$(call PARSE_KEYMAP,$$(KEYMAP)))
|
||||||
|
# Otherwise if we are running make all:<user> just skip
|
||||||
|
else ifeq ($$(KEYBOARD_RULE),all)
|
||||||
|
# $$(info Skipping: No user keymap for $$(CURRENT_KB))
|
||||||
# Otherwise, make all keymaps, again this is consistent with how it works without
|
# Otherwise, make all keymaps, again this is consistent with how it works without
|
||||||
# any arguments
|
# any arguments
|
||||||
else
|
else
|
||||||
@@ -558,10 +563,10 @@ endef
|
|||||||
if ! python3 --version 1> /dev/null 2>&1; then printf "$(MSG_PYTHON_MISSING)"; fi
|
if ! python3 --version 1> /dev/null 2>&1; then printf "$(MSG_PYTHON_MISSING)"; fi
|
||||||
# Check if the submodules are dirty, and display a warning if they are
|
# Check if the submodules are dirty, and display a warning if they are
|
||||||
ifndef SKIP_GIT
|
ifndef SKIP_GIT
|
||||||
if [ ! -e lib/chibios ]; then git submodule sync lib/chibios && git submodule update --depth 1 --init lib/chibios; fi
|
if [ ! -e lib/chibios ]; then git submodule sync lib/chibios && git submodule update --depth 50 --init lib/chibios; fi
|
||||||
if [ ! -e lib/chibios-contrib ]; then git submodule sync lib/chibios-contrib && git submodule update --depth 1 --init lib/chibios-contrib; fi
|
if [ ! -e lib/chibios-contrib ]; then git submodule sync lib/chibios-contrib && git submodule update --depth 50 --init lib/chibios-contrib; fi
|
||||||
if [ ! -e lib/ugfx ]; then git submodule sync lib/ugfx && git submodule update --depth 1 --init lib/ugfx; fi
|
if [ ! -e lib/ugfx ]; then git submodule sync lib/ugfx && git submodule update --depth 50 --init lib/ugfx; fi
|
||||||
if [ ! -e lib/lufa ]; then git submodule sync lib/lufa && git submodule update --depth 1 --init lib/lufa; fi
|
if [ ! -e lib/lufa ]; then git submodule sync lib/lufa && git submodule update --depth 50 --init lib/lufa; fi
|
||||||
git submodule status --recursive 2>/dev/null | \
|
git submodule status --recursive 2>/dev/null | \
|
||||||
while IFS= read -r x; do \
|
while IFS= read -r x; do \
|
||||||
case "$$x" in \
|
case "$$x" in \
|
||||||
@@ -618,13 +623,19 @@ endif
|
|||||||
# Generate the version.h file
|
# Generate the version.h file
|
||||||
ifndef SKIP_GIT
|
ifndef SKIP_GIT
|
||||||
GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always --tags 2>/dev/null || date +"%Y-%m-%d-%H:%M:%S")
|
GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always --tags 2>/dev/null || date +"%Y-%m-%d-%H:%M:%S")
|
||||||
|
CHIBIOS_VERSION := $(shell cd lib/chibios && git describe --abbrev=6 --dirty --always --tags 2>/dev/null || date +"%Y-%m-%d-%H:%M:%S")
|
||||||
|
CHIBIOS_CONTRIB_VERSION := $(shell cd lib/chibios-contrib && git describe --abbrev=6 --dirty --always --tags 2>/dev/null || date +"%Y-%m-%d-%H:%M:%S")
|
||||||
else
|
else
|
||||||
GIT_VERSION := NA
|
GIT_VERSION := NA
|
||||||
|
CHIBIOS_VERSION := NA
|
||||||
|
CHIBIOS_CONTRIB_VERSION := NA
|
||||||
endif
|
endif
|
||||||
ifndef SKIP_VERSION
|
ifndef SKIP_VERSION
|
||||||
BUILD_DATE := $(shell date +"%Y-%m-%d-%H:%M:%S")
|
BUILD_DATE := $(shell date +"%Y-%m-%d-%H:%M:%S")
|
||||||
$(shell echo '#define QMK_VERSION "$(GIT_VERSION)"' > $(ROOT_DIR)/quantum/version.h)
|
$(shell echo '#define QMK_VERSION "$(GIT_VERSION)"' > $(ROOT_DIR)/quantum/version.h)
|
||||||
$(shell echo '#define QMK_BUILDDATE "$(BUILD_DATE)"' >> $(ROOT_DIR)/quantum/version.h)
|
$(shell echo '#define QMK_BUILDDATE "$(BUILD_DATE)"' >> $(ROOT_DIR)/quantum/version.h)
|
||||||
|
$(shell echo '#define CHIBIOS_VERSION "$(CHIBIOS_VERSION)"' >> $(ROOT_DIR)/quantum/version.h)
|
||||||
|
$(shell echo '#define CHIBIOS_CONTRIB_VERSION "$(CHIBIOS_CONTRIB_VERSION)"' >> $(ROOT_DIR)/quantum/version.h)
|
||||||
else
|
else
|
||||||
BUILD_DATE := NA
|
BUILD_DATE := NA
|
||||||
endif
|
endif
|
||||||
|
11
bin/qmk
11
bin/qmk
@@ -25,8 +25,13 @@ with open(os.path.join(qmk_dir, 'requirements.txt'), 'r') as fd:
|
|||||||
line = line.split('#')[0]
|
line = line.split('#')[0]
|
||||||
|
|
||||||
module = line.split('=')[0] if '=' in line else line
|
module = line.split('=')[0] if '=' in line else line
|
||||||
|
|
||||||
|
if module in ['pep8-naming']:
|
||||||
|
# Not every module is importable by its own name.
|
||||||
|
continue
|
||||||
|
|
||||||
if not find_spec(module):
|
if not find_spec(module):
|
||||||
print('Could not find module %s!', module)
|
print('Could not find module %s!' % module)
|
||||||
print('Please run `pip3 install -r requirements.txt` to install the python dependencies.')
|
print('Please run `pip3 install -r requirements.txt` to install the python dependencies.')
|
||||||
exit(255)
|
exit(255)
|
||||||
|
|
||||||
@@ -41,7 +46,7 @@ else:
|
|||||||
os.environ['QMK_VERSION'] = 'nogit-' + strftime('%Y-%m-%d-%H:%M:%S') + '-dirty'
|
os.environ['QMK_VERSION'] = 'nogit-' + strftime('%Y-%m-%d-%H:%M:%S') + '-dirty'
|
||||||
|
|
||||||
# Setup the CLI
|
# Setup the CLI
|
||||||
import milc
|
import milc # noqa
|
||||||
|
|
||||||
milc.EMOJI_LOGLEVELS['INFO'] = '{fg_blue}Ψ{style_reset_all}'
|
milc.EMOJI_LOGLEVELS['INFO'] = '{fg_blue}Ψ{style_reset_all}'
|
||||||
|
|
||||||
@@ -61,7 +66,7 @@ def main():
|
|||||||
os.chdir(qmk_dir)
|
os.chdir(qmk_dir)
|
||||||
|
|
||||||
# Import the subcommands
|
# Import the subcommands
|
||||||
import qmk.cli
|
import qmk.cli # noqa
|
||||||
|
|
||||||
# Execute
|
# Execute
|
||||||
return_code = milc.cli()
|
return_code = milc.cli()
|
||||||
|
@@ -82,6 +82,13 @@ ifeq ($(strip $(BOOTLOADER)), USBasp)
|
|||||||
OPT_DEFS += -DBOOTLOADER_USBASP
|
OPT_DEFS += -DBOOTLOADER_USBASP
|
||||||
BOOTLOADER_SIZE = 4096
|
BOOTLOADER_SIZE = 4096
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(strip $(BOOTLOADER)), lufa-ms)
|
||||||
|
# DO NOT USE THIS BOOTLOADER IN NEW PROJECTS!
|
||||||
|
# It is extremely prone to bricking, and is only included to support existing boards.
|
||||||
|
OPT_DEFS += -DBOOTLOADER_MS
|
||||||
|
BOOTLOADER_SIZE = 6144
|
||||||
|
FIRMWARE_FORMAT = bin
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef BOOTLOADER_SIZE
|
ifdef BOOTLOADER_SIZE
|
||||||
OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE))
|
OPT_DEFS += -DBOOTLOADER_SIZE=$(strip $(BOOTLOADER_SIZE))
|
||||||
|
@@ -22,6 +22,5 @@ else ifneq ("$(wildcard $(MAIN_KEYMAP_PATH_1)/keymap.json)","")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# Generate the keymap.c
|
# Generate the keymap.c
|
||||||
ifneq ("$(KEYMAP_JSON)","")
|
$(KEYBOARD_OUTPUT)/src/keymap.c: $(KEYMAP_JSON)
|
||||||
_ = $(shell test -e $(KEYMAP_C) || bin/qmk json-keymap $(KEYMAP_JSON) -o $(KEYMAP_C))
|
bin/qmk json-keymap --quiet --output $(KEYMAP_C) $(KEYMAP_JSON)
|
||||||
endif
|
|
||||||
|
@@ -61,7 +61,7 @@ endif
|
|||||||
|
|
||||||
ifeq ($(strip $(STENO_ENABLE)), yes)
|
ifeq ($(strip $(STENO_ENABLE)), yes)
|
||||||
OPT_DEFS += -DSTENO_ENABLE
|
OPT_DEFS += -DSTENO_ENABLE
|
||||||
VIRTSER_ENABLE := yes
|
VIRTSER_ENABLE ?= yes
|
||||||
SRC += $(QUANTUM_DIR)/process_keycode/process_steno.c
|
SRC += $(QUANTUM_DIR)/process_keycode/process_steno.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -82,19 +82,19 @@ endif
|
|||||||
|
|
||||||
ifeq ($(strip $(UCIS_ENABLE)), yes)
|
ifeq ($(strip $(UCIS_ENABLE)), yes)
|
||||||
OPT_DEFS += -DUCIS_ENABLE
|
OPT_DEFS += -DUCIS_ENABLE
|
||||||
UNICODE_COMMON = yes
|
UNICODE_COMMON := yes
|
||||||
SRC += $(QUANTUM_DIR)/process_keycode/process_ucis.c
|
SRC += $(QUANTUM_DIR)/process_keycode/process_ucis.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(UNICODEMAP_ENABLE)), yes)
|
ifeq ($(strip $(UNICODEMAP_ENABLE)), yes)
|
||||||
OPT_DEFS += -DUNICODEMAP_ENABLE
|
OPT_DEFS += -DUNICODEMAP_ENABLE
|
||||||
UNICODE_COMMON = yes
|
UNICODE_COMMON := yes
|
||||||
SRC += $(QUANTUM_DIR)/process_keycode/process_unicodemap.c
|
SRC += $(QUANTUM_DIR)/process_keycode/process_unicodemap.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(UNICODE_ENABLE)), yes)
|
ifeq ($(strip $(UNICODE_ENABLE)), yes)
|
||||||
OPT_DEFS += -DUNICODE_ENABLE
|
OPT_DEFS += -DUNICODE_ENABLE
|
||||||
UNICODE_COMMON = yes
|
UNICODE_COMMON := yes
|
||||||
SRC += $(QUANTUM_DIR)/process_keycode/process_unicode.c
|
SRC += $(QUANTUM_DIR)/process_keycode/process_unicode.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -102,17 +102,69 @@ ifeq ($(strip $(UNICODE_COMMON)), yes)
|
|||||||
SRC += $(QUANTUM_DIR)/process_keycode/process_unicode_common.c
|
SRC += $(QUANTUM_DIR)/process_keycode/process_unicode_common.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
VALID_EEPROM_DRIVER_TYPES := vendor custom transient i2c
|
||||||
|
EEPROM_DRIVER ?= vendor
|
||||||
|
ifeq ($(filter $(EEPROM_DRIVER),$(VALID_EEPROM_DRIVER_TYPES)),)
|
||||||
|
$(error EEPROM_DRIVER="$(EEPROM_DRIVER)" is not a valid EEPROM driver)
|
||||||
|
else
|
||||||
|
OPT_DEFS += -DEEPROM_ENABLE
|
||||||
|
ifeq ($(strip $(EEPROM_DRIVER)), custom)
|
||||||
|
OPT_DEFS += -DEEPROM_DRIVER -DEEPROM_CUSTOM
|
||||||
|
COMMON_VPATH += $(DRIVER_PATH)/eeprom
|
||||||
|
SRC += eeprom_driver.c
|
||||||
|
else ifeq ($(strip $(EEPROM_DRIVER)), i2c)
|
||||||
|
OPT_DEFS += -DEEPROM_DRIVER -DEEPROM_I2C
|
||||||
|
COMMON_VPATH += $(DRIVER_PATH)/eeprom
|
||||||
|
QUANTUM_LIB_SRC += i2c_master.c
|
||||||
|
SRC += eeprom_driver.c eeprom_i2c.c
|
||||||
|
else ifeq ($(strip $(EEPROM_DRIVER)), transient)
|
||||||
|
OPT_DEFS += -DEEPROM_DRIVER -DEEPROM_TRANSIENT
|
||||||
|
COMMON_VPATH += $(DRIVER_PATH)/eeprom
|
||||||
|
SRC += eeprom_driver.c eeprom_transient.c
|
||||||
|
else ifeq ($(strip $(EEPROM_DRIVER)), vendor)
|
||||||
|
OPT_DEFS += -DEEPROM_VENDOR
|
||||||
|
ifeq ($(PLATFORM),AVR)
|
||||||
|
# Automatically provided by avr-libc, nothing required
|
||||||
|
else ifeq ($(PLATFORM),CHIBIOS)
|
||||||
|
ifeq ($(MCU_SERIES), STM32F3xx)
|
||||||
|
SRC += $(PLATFORM_COMMON_DIR)/eeprom_stm32.c
|
||||||
|
SRC += $(PLATFORM_COMMON_DIR)/flash_stm32.c
|
||||||
|
OPT_DEFS += -DEEPROM_EMU_STM32F303xC
|
||||||
|
OPT_DEFS += -DSTM32_EEPROM_ENABLE
|
||||||
|
else ifeq ($(MCU_SERIES), STM32F1xx)
|
||||||
|
SRC += $(PLATFORM_COMMON_DIR)/eeprom_stm32.c
|
||||||
|
SRC += $(PLATFORM_COMMON_DIR)/flash_stm32.c
|
||||||
|
OPT_DEFS += -DEEPROM_EMU_STM32F103xB
|
||||||
|
OPT_DEFS += -DSTM32_EEPROM_ENABLE
|
||||||
|
else ifeq ($(MCU_SERIES)_$(MCU_LDSCRIPT), STM32F0xx_STM32F072xB)
|
||||||
|
SRC += $(PLATFORM_COMMON_DIR)/eeprom_stm32.c
|
||||||
|
SRC += $(PLATFORM_COMMON_DIR)/flash_stm32.c
|
||||||
|
OPT_DEFS += -DEEPROM_EMU_STM32F072xB
|
||||||
|
OPT_DEFS += -DSTM32_EEPROM_ENABLE
|
||||||
|
else
|
||||||
|
# This will effectively work the same as "transient" if not supported by the chip
|
||||||
|
SRC += $(PLATFORM_COMMON_DIR)/eeprom_teensy.c
|
||||||
|
endif
|
||||||
|
else ifeq ($(PLATFORM),ARM_ATSAM)
|
||||||
|
SRC += $(PLATFORM_COMMON_DIR)/eeprom.c
|
||||||
|
else ifeq ($(PLATFORM),TEST)
|
||||||
|
SRC += $(PLATFORM_COMMON_DIR)/eeprom.c
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
|
ifeq ($(strip $(RGBLIGHT_ENABLE)), yes)
|
||||||
POST_CONFIG_H += $(QUANTUM_DIR)/rgblight_post_config.h
|
POST_CONFIG_H += $(QUANTUM_DIR)/rgblight_post_config.h
|
||||||
OPT_DEFS += -DRGBLIGHT_ENABLE
|
OPT_DEFS += -DRGBLIGHT_ENABLE
|
||||||
SRC += $(QUANTUM_DIR)/color.c
|
SRC += $(QUANTUM_DIR)/color.c
|
||||||
SRC += $(QUANTUM_DIR)/rgblight.c
|
SRC += $(QUANTUM_DIR)/rgblight.c
|
||||||
CIE1931_CURVE = yes
|
CIE1931_CURVE := yes
|
||||||
LED_BREATHING_TABLE = yes
|
LED_BREATHING_TABLE := yes
|
||||||
|
RGB_KEYCODES_ENABLE := yes
|
||||||
ifeq ($(strip $(RGBLIGHT_CUSTOM_DRIVER)), yes)
|
ifeq ($(strip $(RGBLIGHT_CUSTOM_DRIVER)), yes)
|
||||||
OPT_DEFS += -DRGBLIGHT_CUSTOM_DRIVER
|
OPT_DEFS += -DRGBLIGHT_CUSTOM_DRIVER
|
||||||
else
|
else
|
||||||
SRC += ws2812.c
|
WS2812_DRIVER_REQUIRED := yes
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -123,7 +175,9 @@ ifneq ($(strip $(LED_MATRIX_ENABLE)), no)
|
|||||||
ifeq ($(filter $(LED_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),)
|
ifeq ($(filter $(LED_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),)
|
||||||
$(error LED_MATRIX_ENABLE="$(LED_MATRIX_ENABLE)" is not a valid matrix type)
|
$(error LED_MATRIX_ENABLE="$(LED_MATRIX_ENABLE)" is not a valid matrix type)
|
||||||
else
|
else
|
||||||
OPT_DEFS += -DLED_MATRIX_ENABLE -DBACKLIGHT_ENABLE -DBACKLIGHT_CUSTOM_DRIVER
|
BACKLIGHT_ENABLE = yes
|
||||||
|
BACKLIGHT_DRIVER = custom
|
||||||
|
OPT_DEFS += -DLED_MATRIX_ENABLE
|
||||||
SRC += $(QUANTUM_DIR)/led_matrix.c
|
SRC += $(QUANTUM_DIR)/led_matrix.c
|
||||||
SRC += $(QUANTUM_DIR)/led_matrix_drivers.c
|
SRC += $(QUANTUM_DIR)/led_matrix_drivers.c
|
||||||
endif
|
endif
|
||||||
@@ -146,11 +200,12 @@ endif
|
|||||||
SRC += $(QUANTUM_DIR)/color.c
|
SRC += $(QUANTUM_DIR)/color.c
|
||||||
SRC += $(QUANTUM_DIR)/rgb_matrix.c
|
SRC += $(QUANTUM_DIR)/rgb_matrix.c
|
||||||
SRC += $(QUANTUM_DIR)/rgb_matrix_drivers.c
|
SRC += $(QUANTUM_DIR)/rgb_matrix_drivers.c
|
||||||
CIE1931_CURVE = yes
|
CIE1931_CURVE := yes
|
||||||
|
RGB_KEYCODES_ENABLE := yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
|
ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
|
||||||
RGB_MATRIX_ENABLE = IS31FL3731
|
RGB_MATRIX_ENABLE := IS31FL3731
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3731)
|
ifeq ($(strip $(RGB_MATRIX_ENABLE)), IS31FL3731)
|
||||||
@@ -176,7 +231,7 @@ endif
|
|||||||
|
|
||||||
ifeq ($(strip $(RGB_MATRIX_ENABLE)), WS2812)
|
ifeq ($(strip $(RGB_MATRIX_ENABLE)), WS2812)
|
||||||
OPT_DEFS += -DWS2812
|
OPT_DEFS += -DWS2812
|
||||||
SRC += ws2812.c
|
WS2812_DRIVER_REQUIRED := yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(RGB_MATRIX_CUSTOM_KB)), yes)
|
ifeq ($(strip $(RGB_MATRIX_CUSTOM_KB)), yes)
|
||||||
@@ -187,6 +242,10 @@ ifeq ($(strip $(RGB_MATRIX_CUSTOM_USER)), yes)
|
|||||||
OPT_DEFS += -DRGB_MATRIX_CUSTOM_USER
|
OPT_DEFS += -DRGB_MATRIX_CUSTOM_USER
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(strip $(RGB_KEYCODES_ENABLE)), yes)
|
||||||
|
SRC += $(QUANTUM_DIR)/process_keycode/process_rgb.c
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
|
ifeq ($(strip $(TAP_DANCE_ENABLE)), yes)
|
||||||
OPT_DEFS += -DTAP_DANCE_ENABLE
|
OPT_DEFS += -DTAP_DANCE_ENABLE
|
||||||
SRC += $(QUANTUM_DIR)/process_keycode/process_tap_dance.c
|
SRC += $(QUANTUM_DIR)/process_keycode/process_tap_dance.c
|
||||||
@@ -226,50 +285,75 @@ endif
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(LCD_ENABLE)), yes)
|
ifeq ($(strip $(LCD_ENABLE)), yes)
|
||||||
CIE1931_CURVE = yes
|
CIE1931_CURVE := yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# backward compat
|
# backward compat
|
||||||
ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), yes)
|
ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), yes)
|
||||||
BACKLIGHT_ENABLE = custom
|
BACKLIGHT_DRIVER := custom
|
||||||
endif
|
endif
|
||||||
|
|
||||||
VALID_BACKLIGHT_TYPES := yes custom
|
VALID_BACKLIGHT_TYPES := pwm software custom
|
||||||
|
|
||||||
BACKLIGHT_ENABLE ?= no
|
BACKLIGHT_ENABLE ?= no
|
||||||
ifneq ($(strip $(BACKLIGHT_ENABLE)), no)
|
BACKLIGHT_DRIVER ?= pwm
|
||||||
ifeq ($(filter $(BACKLIGHT_ENABLE),$(VALID_BACKLIGHT_TYPES)),)
|
ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
|
||||||
$(error BACKLIGHT_ENABLE="$(BACKLIGHT_ENABLE)" is not a valid backlight type)
|
SRC += $(QUANTUM_DIR)/process_keycode/process_backlight.c
|
||||||
|
ifeq ($(filter $(BACKLIGHT_DRIVER),$(VALID_BACKLIGHT_TYPES)),)
|
||||||
|
$(error BACKLIGHT_DRIVER="$(BACKLIGHT_DRIVER)" is not a valid backlight type)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
|
|
||||||
CIE1931_CURVE = yes
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
COMMON_VPATH += $(QUANTUM_DIR)/backlight
|
COMMON_VPATH += $(QUANTUM_DIR)/backlight
|
||||||
SRC += $(QUANTUM_DIR)/backlight/backlight.c
|
SRC += $(QUANTUM_DIR)/backlight/backlight.c
|
||||||
OPT_DEFS += -DBACKLIGHT_ENABLE
|
OPT_DEFS += -DBACKLIGHT_ENABLE
|
||||||
|
|
||||||
ifeq ($(strip $(BACKLIGHT_ENABLE)), custom)
|
ifeq ($(strip $(BACKLIGHT_DRIVER)), custom)
|
||||||
OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER
|
OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER
|
||||||
|
else ifeq ($(strip $(BACKLIGHT_DRIVER)), software)
|
||||||
|
SRC += $(QUANTUM_DIR)/backlight/backlight_soft.c
|
||||||
|
else
|
||||||
|
ifeq ($(PLATFORM),AVR)
|
||||||
|
SRC += $(QUANTUM_DIR)/backlight/backlight_avr.c
|
||||||
|
else
|
||||||
|
SRC += $(QUANTUM_DIR)/backlight/backlight_arm.c
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
VALID_WS2812_DRIVER_TYPES := bitbang pwm spi i2c
|
||||||
|
|
||||||
|
WS2812_DRIVER ?= bitbang
|
||||||
|
ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes)
|
||||||
|
ifeq ($(filter $(WS2812_DRIVER),$(VALID_WS2812_DRIVER_TYPES)),)
|
||||||
|
$(error WS2812_DRIVER="$(WS2812_DRIVER)" is not a valid WS2812 driver)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(PLATFORM),AVR)
|
OPT_DEFS += -DWS2812_DRIVER_$(strip $(shell echo $(WS2812_DRIVER) | tr '[:lower:]' '[:upper:]'))
|
||||||
SRC += $(QUANTUM_DIR)/backlight/backlight_avr.c
|
|
||||||
|
ifeq ($(strip $(WS2812_DRIVER)), bitbang)
|
||||||
|
SRC += ws2812.c
|
||||||
else
|
else
|
||||||
SRC += $(QUANTUM_DIR)/backlight/backlight_arm.c
|
SRC += ws2812_$(strip $(WS2812_DRIVER)).c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# add extra deps
|
||||||
|
ifeq ($(strip $(WS2812_DRIVER)), i2c)
|
||||||
|
QUANTUM_LIB_SRC += i2c_master.c
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
|
||||||
|
CIE1931_CURVE := yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(CIE1931_CURVE)), yes)
|
ifeq ($(strip $(CIE1931_CURVE)), yes)
|
||||||
OPT_DEFS += -DUSE_CIE1931_CURVE
|
OPT_DEFS += -DUSE_CIE1931_CURVE
|
||||||
LED_TABLES = yes
|
LED_TABLES := yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(LED_BREATHING_TABLE)), yes)
|
ifeq ($(strip $(LED_BREATHING_TABLE)), yes)
|
||||||
OPT_DEFS += -DUSE_LED_BREATHING_TABLE
|
OPT_DEFS += -DUSE_LED_BREATHING_TABLE
|
||||||
LED_TABLES = yes
|
LED_TABLES := yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(LED_TABLES)), yes)
|
ifeq ($(strip $(LED_TABLES)), yes)
|
||||||
@@ -319,6 +403,14 @@ ifeq ($(strip $(VELOCIKEY_ENABLE)), yes)
|
|||||||
SRC += $(QUANTUM_DIR)/velocikey.c
|
SRC += $(QUANTUM_DIR)/velocikey.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(strip $(VIA_ENABLE)), yes)
|
||||||
|
DYNAMIC_KEYMAP_ENABLE := yes
|
||||||
|
RAW_ENABLE := yes
|
||||||
|
BOOTMAGIC_ENABLE := lite
|
||||||
|
SRC += $(QUANTUM_DIR)/via.c
|
||||||
|
OPT_DEFS += -DVIA_ENABLE
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(DYNAMIC_KEYMAP_ENABLE)), yes)
|
ifeq ($(strip $(DYNAMIC_KEYMAP_ENABLE)), yes)
|
||||||
OPT_DEFS += -DDYNAMIC_KEYMAP_ENABLE
|
OPT_DEFS += -DDYNAMIC_KEYMAP_ENABLE
|
||||||
SRC += $(QUANTUM_DIR)/dynamic_keymap.c
|
SRC += $(QUANTUM_DIR)/dynamic_keymap.c
|
||||||
@@ -329,6 +421,12 @@ ifeq ($(strip $(LEADER_ENABLE)), yes)
|
|||||||
OPT_DEFS += -DLEADER_ENABLE
|
OPT_DEFS += -DLEADER_ENABLE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
ifeq ($(strip $(DIP_SWITCH_ENABLE)), yes)
|
||||||
|
SRC += $(QUANTUM_DIR)/dip_switch.c
|
||||||
|
OPT_DEFS += -DDIP_SWITCH_ENABLE
|
||||||
|
endif
|
||||||
|
|
||||||
include $(DRIVER_PATH)/qwiic/qwiic.mk
|
include $(DRIVER_PATH)/qwiic/qwiic.mk
|
||||||
|
|
||||||
QUANTUM_SRC:= \
|
QUANTUM_SRC:= \
|
||||||
@@ -336,12 +434,28 @@ QUANTUM_SRC:= \
|
|||||||
$(QUANTUM_DIR)/keymap_common.c \
|
$(QUANTUM_DIR)/keymap_common.c \
|
||||||
$(QUANTUM_DIR)/keycode_config.c
|
$(QUANTUM_DIR)/keycode_config.c
|
||||||
|
|
||||||
# Include the standard or split matrix code if needed
|
|
||||||
|
|
||||||
|
VALID_CUSTOM_MATRIX_TYPES:= yes lite no
|
||||||
|
|
||||||
|
CUSTOM_MATRIX ?= no
|
||||||
|
|
||||||
ifneq ($(strip $(CUSTOM_MATRIX)), yes)
|
ifneq ($(strip $(CUSTOM_MATRIX)), yes)
|
||||||
ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
|
ifeq ($(filter $(CUSTOM_MATRIX),$(VALID_CUSTOM_MATRIX_TYPES)),)
|
||||||
QUANTUM_SRC += $(QUANTUM_DIR)/split_common/matrix.c
|
$(error CUSTOM_MATRIX="$(CUSTOM_MATRIX)" is not a valid custom matrix type)
|
||||||
else
|
endif
|
||||||
QUANTUM_SRC += $(QUANTUM_DIR)/matrix.c
|
|
||||||
|
# Include common stuff for all non custom matrix users
|
||||||
|
QUANTUM_SRC += $(QUANTUM_DIR)/matrix_common.c
|
||||||
|
|
||||||
|
# if 'lite' then skip the actual matrix implementation
|
||||||
|
ifneq ($(strip $(CUSTOM_MATRIX)), lite)
|
||||||
|
# Include the standard or split matrix code if needed
|
||||||
|
ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
|
||||||
|
QUANTUM_SRC += $(QUANTUM_DIR)/split_common/matrix.c
|
||||||
|
else
|
||||||
|
QUANTUM_SRC += $(QUANTUM_DIR)/matrix.c
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -364,9 +478,17 @@ ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
|
|||||||
QUANTUM_SRC += $(QUANTUM_DIR)/split_common/transport.c
|
QUANTUM_SRC += $(QUANTUM_DIR)/split_common/transport.c
|
||||||
# Functions added via QUANTUM_LIB_SRC are only included in the final binary if they're called.
|
# Functions added via QUANTUM_LIB_SRC are only included in the final binary if they're called.
|
||||||
# Unused functions are pruned away, which is why we can add multiple drivers here without bloat.
|
# Unused functions are pruned away, which is why we can add multiple drivers here without bloat.
|
||||||
QUANTUM_LIB_SRC += $(QUANTUM_DIR)/split_common/serial.c \
|
ifeq ($(PLATFORM),AVR)
|
||||||
i2c_master.c \
|
QUANTUM_LIB_SRC += i2c_master.c \
|
||||||
i2c_slave.c
|
i2c_slave.c
|
||||||
|
endif
|
||||||
|
|
||||||
|
SERIAL_DRIVER ?= bitbang
|
||||||
|
ifeq ($(strip $(SERIAL_DRIVER)), bitbang)
|
||||||
|
QUANTUM_LIB_SRC += serial.c
|
||||||
|
else
|
||||||
|
QUANTUM_LIB_SRC += serial_$(strip $(SERIAL_DRIVER)).c
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
COMMON_VPATH += $(QUANTUM_PATH)/split_common
|
COMMON_VPATH += $(QUANTUM_PATH)/split_common
|
||||||
endif
|
endif
|
||||||
@@ -384,8 +506,19 @@ ifeq ($(strip $(SPACE_CADET_ENABLE)), yes)
|
|||||||
OPT_DEFS += -DSPACE_CADET_ENABLE
|
OPT_DEFS += -DSPACE_CADET_ENABLE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
MAGIC_ENABLE ?= yes
|
||||||
ifeq ($(strip $(DIP_SWITCH_ENABLE)), yes)
|
ifeq ($(strip $(MAGIC_ENABLE)), yes)
|
||||||
SRC += $(QUANTUM_DIR)/dip_switch.c
|
SRC += $(QUANTUM_DIR)/process_keycode/process_magic.c
|
||||||
OPT_DEFS += -DDIP_SWITCH_ENABLE
|
OPT_DEFS += -DMAGIC_KEYCODE_ENABLE
|
||||||
|
endif
|
||||||
|
|
||||||
|
GRAVE_ESC_ENABLE ?= yes
|
||||||
|
ifeq ($(strip $(GRAVE_ESC_ENABLE)), yes)
|
||||||
|
SRC += $(QUANTUM_DIR)/process_keycode/process_grave_esc.c
|
||||||
|
OPT_DEFS += -DGRAVE_ESC_ENABLE
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(strip $(DYNAMIC_MACRO_ENABLE)), yes)
|
||||||
|
SRC += $(QUANTUM_DIR)/process_keycode/process_dynamic_macro.c
|
||||||
|
OPT_DEFS += -DDYNAMIC_MACRO_ENABLE
|
||||||
endif
|
endif
|
||||||
|
75
docs/ChangeLog/20200229.md
Normal file
75
docs/ChangeLog/20200229.md
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
# QMK Breaking Change - 2020 Feb 29 Changelog
|
||||||
|
|
||||||
|
Four times a year QMK runs a process for merging Breaking Changes. A Breaking Change is any change which modifies how QMK behaves in a way that is incompatible or potentially dangerous. We limit these changes to 4 times per year so that users can have confidence that updating their QMK tree will not break their keymaps.
|
||||||
|
|
||||||
|
|
||||||
|
## Update ChibiOS/ChibiOS-Contrib/uGFX submodules
|
||||||
|
|
||||||
|
* General Notes
|
||||||
|
* A `make git-submodule` may be required after pulling the latest QMK firmware code to update affected submodules to the upgraded revisions
|
||||||
|
* Enabling link-time-optimization (`LINK_TIME_OPTIMIZATION_ENABLE = yes`) should work on a lot more boards
|
||||||
|
* Upgrade to ChibiOS ver19.1.3
|
||||||
|
* This will allow QMK to update to upstream ChibiOS a lot easier -- the old version was ~2 years out of date. Automated update scripts have been made available to simplify future upgrades.
|
||||||
|
* Includes improved MCU support and bugfixes
|
||||||
|
* ChibiOS revision is now included in Command output
|
||||||
|
* Timers should now be more accurate
|
||||||
|
* Upgrade to newer ChibiOS-Contrib
|
||||||
|
* Also includes improved MCU support and bugfixes
|
||||||
|
* ChibiOS-Contrib revision is now included in Command output
|
||||||
|
* Upgrade to newer uGFX
|
||||||
|
* Required in order to support updated ChibiOS
|
||||||
|
|
||||||
|
|
||||||
|
## Fix ChibiOS timer overflow for 16-bit SysTick devices
|
||||||
|
|
||||||
|
* On 16-bit SysTick devices, the timer subsystem in QMK was incorrectly dealing with overflow.
|
||||||
|
* When running at a 100000 SysTick frequency (possible on 16-bit devices, but uncommon), this overflow would occur after 0.65 seconds.
|
||||||
|
* Timers are now correctly handling this overflow case and timing should now be correct on ChibiOS/ARM.
|
||||||
|
|
||||||
|
|
||||||
|
## Update LUFA submodule
|
||||||
|
|
||||||
|
* Updates the LUFA submodule to include updates from upstream (abcminiuser/lufa)
|
||||||
|
* Includes some cleanup for QMK DFU generation
|
||||||
|
|
||||||
|
|
||||||
|
## Encoder flip
|
||||||
|
|
||||||
|
* Flips the encoder direction so that `clockwise == true` is for actually turning the knob clockwise
|
||||||
|
* Adds `ENCODER_DIRECTION_FLIP` define, so that reversing the expected dirction is simple for users.
|
||||||
|
* Cleans up documentation page for encoders
|
||||||
|
|
||||||
|
|
||||||
|
## Adding support for `BACKLIGHT_ON_STATE` for hardware PWM backlight
|
||||||
|
|
||||||
|
* Previously, the define only affected software PWM, and hardware PWM always assumed an N-channel MOSFET.
|
||||||
|
* The hardware PWM backlight setup has been updated to respect this option.
|
||||||
|
* The default "on" state has been changed to `1` - **this impacts all keyboards using software PWM backlight that do not define it explicitly**. If your keyboard's backlight is acting strange, it may have a P-channel MOSFET, and will need to have `#define BACKLIGHT_ON_STATE 0` added to the keyboard-level `config.h`. Please see the PR for more detailed information.
|
||||||
|
|
||||||
|
|
||||||
|
## Migrating `ACTION_LAYER_TAP_KEY()` entries in `fn_actions` to `LT()` keycodes
|
||||||
|
|
||||||
|
* `fn_actions` is deprecated, and its functionality has been superseded by direct keycodes and `process_record_user()`
|
||||||
|
* The end result of removing this obsolete feature should result in a decent reduction in firmware size and code complexity
|
||||||
|
* All keymaps affected are recommended to switch away from `fn_actions` in favour of the [custom keycode](https://docs.qmk.fm/#/custom_quantum_functions) and [macro](https://docs.qmk.fm/#/feature_macros) features
|
||||||
|
|
||||||
|
|
||||||
|
## Moving backlight keycode handling to `process_keycode/`
|
||||||
|
|
||||||
|
* This refactors the backlight keycode logic to be clearer and more modular.
|
||||||
|
* All backlight-related keycodes are now actioned in a single file.
|
||||||
|
* The `ACTION_BACKLIGHT_*` macros have also been deleted. If you are still using these in a `fn_actions[]` block, please switch to using the backlight keycodes or functions directly.
|
||||||
|
|
||||||
|
|
||||||
|
## Refactor Planck keymaps to use Layout Macros
|
||||||
|
|
||||||
|
* Refactor Planck keymaps to use layout macros instead of raw matrix assignments
|
||||||
|
* Makes keymaps revision-agnostic
|
||||||
|
* Should reduce noise and errors in Travis CI logs
|
||||||
|
|
||||||
|
|
||||||
|
## GON NerD codebase refactor
|
||||||
|
|
||||||
|
* Splits the codebase for GON NerD 60 and NerdD TKL PCBs into two separate directories.
|
||||||
|
* If your keymap is for a NerD 60 PCB, your `make` command is now `make gon/nerd60:<keymap>`.
|
||||||
|
* If your keymap is for a NerD TKL PCB, your `make` command is now `make gon/nerdtkl:<keymap>`.
|
@@ -15,7 +15,7 @@ QMK (*Quantum Mechanical Keyboard*) is an open source community that maintains Q
|
|||||||
|
|
||||||
If you plan on contributing a keymap, keyboard, or features to QMK, the easiest thing to do is [fork the repo through Github](https://github.com/qmk/qmk_firmware#fork-destination-box), and clone your repo locally to make your changes, push them, then open a [Pull Request](https://github.com/qmk/qmk_firmware/pulls) from your fork.
|
If you plan on contributing a keymap, keyboard, or features to QMK, the easiest thing to do is [fork the repo through Github](https://github.com/qmk/qmk_firmware#fork-destination-box), and clone your repo locally to make your changes, push them, then open a [Pull Request](https://github.com/qmk/qmk_firmware/pulls) from your fork.
|
||||||
|
|
||||||
Otherwise, you can either download it directly ([zip](https://github.com/qmk/qmk_firmware/zipball/master), [tar](https://github.com/qmk/qmk_firmware/tarball/master)), or clone it via git (`git@github.com:qmk/qmk_firmware.git`), or https (`https://github.com/qmk/qmk_firmware.git`).
|
Otherwise, you can clone it directly with `git clone https://github.com/qmk/qmk_firmware`. Do not download the zip or tar files; a git repository is required to download the submodules in order to compile.
|
||||||
|
|
||||||
## How to Compile
|
## How to Compile
|
||||||
|
|
||||||
|
@@ -1,4 +1,9 @@
|
|||||||
- Translations
|
- Translations
|
||||||
- [:uk: English](/)
|
- [:uk: English](/)
|
||||||
- [:cn: 中文](/zh-cn/)
|
- [:cn: 中文](/zh-cn/)
|
||||||
|
- [:es: Español](/es/)
|
||||||
- [:fr: Français](/fr-fr/)
|
- [:fr: Français](/fr-fr/)
|
||||||
|
- [:he: עברית](/he-il/)
|
||||||
|
- [:brazil: Português](/pt-br/)
|
||||||
|
- [:ru: Русский](/ru-ru/)
|
||||||
|
- [:jp: 日本語](/ja/)
|
||||||
|
@@ -3,7 +3,10 @@
|
|||||||
* [Building Your First Firmware](newbs_building_firmware.md)
|
* [Building Your First Firmware](newbs_building_firmware.md)
|
||||||
* [Flashing Firmware](newbs_flashing.md)
|
* [Flashing Firmware](newbs_flashing.md)
|
||||||
* [Testing and Debugging](newbs_testing_debugging.md)
|
* [Testing and Debugging](newbs_testing_debugging.md)
|
||||||
* [Git Best Practices](newbs_best_practices.md)
|
* [Best Git Practices](newbs_git_best_practices.md)
|
||||||
|
* [Using Your Fork's Master](newbs_git_using_your_master_branch.md)
|
||||||
|
* [Resolving Merge Conflicts](newbs_git_resolving_merge_conflicts.md)
|
||||||
|
* [Resynchronizing a Branch](newbs_git_resynchronize_a_branch.md)
|
||||||
* [Learning Resources](newbs_learn_more_resources.md)
|
* [Learning Resources](newbs_learn_more_resources.md)
|
||||||
|
|
||||||
* [QMK Basics](README.md)
|
* [QMK Basics](README.md)
|
||||||
@@ -15,6 +18,7 @@
|
|||||||
* [Getting Help](getting_started_getting_help.md)
|
* [Getting Help](getting_started_getting_help.md)
|
||||||
|
|
||||||
* [Breaking Changes](breaking_changes.md)
|
* [Breaking Changes](breaking_changes.md)
|
||||||
|
* [My Pull Request Was Flagged](breaking_changes_instructions.md)
|
||||||
* [2019 Aug 30](ChangeLog/20190830.md)
|
* [2019 Aug 30](ChangeLog/20190830.md)
|
||||||
|
|
||||||
* [FAQ](faq.md)
|
* [FAQ](faq.md)
|
||||||
@@ -33,6 +37,7 @@
|
|||||||
* [Keymap Overview](keymap.md)
|
* [Keymap Overview](keymap.md)
|
||||||
|
|
||||||
* [Hardware](hardware.md)
|
* [Hardware](hardware.md)
|
||||||
|
* [Compatible Microcontrollers](compatible_microcontrollers.md)
|
||||||
* [AVR Processors](hardware_avr.md)
|
* [AVR Processors](hardware_avr.md)
|
||||||
* [Drivers](hardware_drivers.md)
|
* [Drivers](hardware_drivers.md)
|
||||||
|
|
||||||
@@ -97,8 +102,12 @@
|
|||||||
* [Hand Wiring Guide](hand_wire.md)
|
* [Hand Wiring Guide](hand_wire.md)
|
||||||
* [ISP Flashing Guide](isp_flashing_guide.md)
|
* [ISP Flashing Guide](isp_flashing_guide.md)
|
||||||
* [ARM Debugging Guide](arm_debugging.md)
|
* [ARM Debugging Guide](arm_debugging.md)
|
||||||
|
* [ADC Driver](adc_driver.md)
|
||||||
* [I2C Driver](i2c_driver.md)
|
* [I2C Driver](i2c_driver.md)
|
||||||
|
* [WS2812 Driver](ws2812_driver.md)
|
||||||
|
* [EEPROM Driver](eeprom_driver.md)
|
||||||
* [GPIO Controls](internals_gpio_control.md)
|
* [GPIO Controls](internals_gpio_control.md)
|
||||||
|
* [Custom Matrix](custom_matrix.md)
|
||||||
* [Proton C Conversion](proton_c_conversion.md)
|
* [Proton C Conversion](proton_c_conversion.md)
|
||||||
|
|
||||||
* For a Deeper Understanding
|
* For a Deeper Understanding
|
||||||
@@ -109,7 +118,7 @@
|
|||||||
* [Using Eclipse with QMK](other_eclipse.md)
|
* [Using Eclipse with QMK](other_eclipse.md)
|
||||||
* [Using VSCode with QMK](other_vscode.md)
|
* [Using VSCode with QMK](other_vscode.md)
|
||||||
* [Support](support.md)
|
* [Support](support.md)
|
||||||
* [How to add translations](translating.md)
|
* [Translating the QMK Docs](translating.md)
|
||||||
|
|
||||||
* QMK Internals (In Progress)
|
* QMK Internals (In Progress)
|
||||||
* [Defines](internals_defines.md)
|
* [Defines](internals_defines.md)
|
||||||
|
50
docs/adc_driver.md
Normal file
50
docs/adc_driver.md
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
# ADC Driver
|
||||||
|
|
||||||
|
QMK can leverage the Analog-to-Digital Converter (ADC) on supported MCUs to measure voltages on certain pins. This can be useful for implementing things such as battery level indicators for Bluetooth keyboards, or volume controls using a potentiometer, as opposed to a [rotary encoder](feature_encoders.md).
|
||||||
|
|
||||||
|
This driver is currently AVR-only. The values returned are 10-bit integers (0-1023) mapped between 0V and VCC (usually 5V or 3.3V).
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
To use this driver, add the following to your `rules.mk`:
|
||||||
|
|
||||||
|
```make
|
||||||
|
SRC += analog.c
|
||||||
|
```
|
||||||
|
|
||||||
|
Then place this include at the top of your code:
|
||||||
|
|
||||||
|
```c
|
||||||
|
#include "analog.h"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Channels
|
||||||
|
|
||||||
|
|Channel|AT90USB64/128|ATmega16/32U4|ATmega32A|ATmega328P|
|
||||||
|
|-------|-------------|-------------|---------|----------|
|
||||||
|
|0 |`F0` |`F0` |`A0` |`C0` |
|
||||||
|
|1 |`F1` |`F1` |`A1` |`C1` |
|
||||||
|
|2 |`F2` | |`A2` |`C2` |
|
||||||
|
|3 |`F3` | |`A3` |`C3` |
|
||||||
|
|4 |`F4` |`F4` |`A4` |`C4` |
|
||||||
|
|5 |`F5` |`F5` |`A5` |`C5` |
|
||||||
|
|6 |`F6` |`F6` |`A6` |* |
|
||||||
|
|7 |`F7` |`F7` |`A7` |* |
|
||||||
|
|8 | |`D4` | | |
|
||||||
|
|9 | |`D6` | | |
|
||||||
|
|10 | |`D7` | | |
|
||||||
|
|11 | |`B4` | | |
|
||||||
|
|12 | |`B5` | | |
|
||||||
|
|13 | |`B6` | | |
|
||||||
|
|
||||||
|
<sup>\* The ATmega328P possesses two extra ADC channels; however, they are not present on the DIP pinout, and are not shared with GPIO pins. You can use `adc_read()` directly to gain access to these.</sup>
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
|Function |Description |
|
||||||
|
|----------------------------|-------------------------------------------------------------------------------------------------------------------|
|
||||||
|
|`analogReference(mode)` |Sets the analog voltage reference source. Must be one of `ADC_REF_EXTERNAL`, `ADC_REF_POWER` or `ADC_REF_INTERNAL`.|
|
||||||
|
|`analogRead(pin)` |Reads the value from the specified Arduino pin, eg. `4` for ADC6 on the ATmega32U4. |
|
||||||
|
|`analogReadPin(pin)` |Reads the value from the specified QMK pin, eg. `F6` for ADC6 on the ATmega32U4. |
|
||||||
|
|`pinToMux(pin)` |Translates a given QMK pin to a mux value. If an unsupported pin is given, returns the mux value for "0V (GND)". |
|
||||||
|
|`adc_read(mux)` |Reads the value from the ADC according to the specified mux. See your MCU's datasheet for more information. |
|
@@ -1,4 +1,4 @@
|
|||||||
# ARM Debugging usign Eclipse
|
# ARM Debugging using Eclipse
|
||||||
|
|
||||||
This page describes how to setup debugging for ARM MCUs using an SWD adapter and open-source/free tools. In this guide we will install GNU MCU Eclipse IDE for C/C++ Developers and OpenOCD together with all the necessary dependencies.
|
This page describes how to setup debugging for ARM MCUs using an SWD adapter and open-source/free tools. In this guide we will install GNU MCU Eclipse IDE for C/C++ Developers and OpenOCD together with all the necessary dependencies.
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ XPM installation instructions can be found [here](https://www.npmjs.com/package/
|
|||||||
|
|
||||||
### The ARM Toolchain
|
### The ARM Toolchain
|
||||||
|
|
||||||
Using XPM it is very easy to install the ARM toolchain. Enter the command `xpm install --global @gnu-mcu-eclipse/arm-none-eabi-gcc`.
|
Using XPM it is very easy to install the ARM toolchain. Enter the command `xpm install --global @xpack-dev-tools/arm-none-eabi-gcc`.
|
||||||
|
|
||||||
### Windows build tools
|
### Windows build tools
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ If you have an ST-Link the drivers can be found [here](https://www.st.com/en/dev
|
|||||||
|
|
||||||
### OpenOCD
|
### OpenOCD
|
||||||
|
|
||||||
This dependency allows SWD access from GDB and it is essential for debugging. Run `xpm install --global @gnu-mcu-eclipse/openocd`.
|
This dependency allows SWD access from GDB and it is essential for debugging. Run `xpm install --global @xpack-dev-tools/openocd`.
|
||||||
|
|
||||||
### Java
|
### Java
|
||||||
|
|
||||||
@@ -45,17 +45,17 @@ Now its finally time to install the IDE. Use the Release page [here](https://git
|
|||||||
|
|
||||||
## Configuring Eclipse
|
## Configuring Eclipse
|
||||||
|
|
||||||
Open up the Eclipse IDE we just downloaded. To import our QMK directory select File -> Import -> C/C++ -> Existing code as Makefile Project. Select next and use Browse to select your QMK folder. In the tool-chain list select ARM Cross GCC and select Finish.
|
Open up the Eclipse IDE we just downloaded. To import our QMK directory select File -> Import -> C/C++ -> Existing Code as Makefile Project. Select Next and use Browse to select your QMK folder. In the tool-chain list select ARM Cross GCC and select Finish.
|
||||||
|
|
||||||
Now you can see the QMK folder on the left hand side. Right click it and select Properties. On the left hand side, expand MCU and select ARM Toolchain Paths. Press xPack and OK. Repeat for OpenOCD Path and if you are on windows for Build Tool Path. Select Apply and Close.
|
Now you can see the QMK folder on the left hand side. Right click it and select Properties. On the left hand side, expand MCU and select ARM Toolchains Paths. Press xPack and OK. Repeat for OpenOCD Path and if you are on Windows for Build Tools Path. Select Apply and Close.
|
||||||
|
|
||||||
Now its time to install the necessary MCU packages. Go to Packs perspective by selecting Window -> Open Perspective -> Others -> Packs. Now select the yellow refresh symbol next to the Packs tab. This will take a long time as it is requesting the MCU definitions from various places. If some of the links fail you can probably select Ignore.
|
Now its time to install the necessary MCU packages. Go to Packs perspective by selecting Window -> Perspective -> Open Perspective -> Other... -> Packs. Now select the yellow refresh symbol next to the Packs tab. This will take a long time as it is requesting the MCU definitions from various places. If some of the links fail you can probably select Ignore.
|
||||||
|
|
||||||
When this finishes you must find the MCU which we will be building/debugging for. In this example I will be using the STM32F3 series MCUs. On the left, select STMicroelectonics -> STM32F3 Series. On the middle window we can see the pack. Right click and select Install. Once that is done we can go back to the default perspective, Window -> Open Perspective -> Others -> C/C++.
|
When this finishes you must find the MCU which we will be building/debugging for. In this example I will be using the STM32F3 series MCUs. On the left, select STMicroelectronics -> STM32F3 Series. On the middle window we can see the pack. Right click and select Install. Once that is done we can go back to the default perspective, Window -> Perspective -> Open Perspective -> Other... -> C/C++.
|
||||||
|
|
||||||
We need to let eclipse know the device we intent to build QMK on. Right click on the QMK folder -> Properties -> C/C++ Build -> Settings. Select the Devices tab and under devices select the appropriate variant of your MCU. For my example it is STM32F303CC
|
We need to let eclipse know the device we intent to build QMK on. Right click on the QMK folder -> Properties -> C/C++ Build -> Settings. Select the Devices tab and under Devices select the appropriate variant of your MCU. For my example it is STM32F303CC
|
||||||
|
|
||||||
While we are here let's setup the build command as well. Select C/C++ Build and then the Behavior tab. On the build command, replace `all` with your necessary make command. For example for a rev6 Planck with the default keymap this would be `planck/rev6:default`. Select Apply and Close.
|
While we are here let's setup the build command as well. Select C/C++ Build and then the Behavior tab. On the Build command, replace `all` with your necessary make command. For example for a rev6 Planck with the default keymap this would be `planck/rev6:default`. Select Apply and Close.
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
@@ -71,7 +71,7 @@ NOTE: Make sure the SWCLK and SWDIO pins are not used in the matrix of your keyb
|
|||||||
|
|
||||||
### Configuring the Debugger
|
### Configuring the Debugger
|
||||||
|
|
||||||
Right click on your QMK folder, select Debug As -> Debug Configuration. Here double click on GDB OpenOCD Debugging. Select the debugger tab and enter the configuration necessary for your MCU. This might take some fiddling and googleing to find out. The default script for the STM32F3 is called stm32f3discovery.cfg. To let OpenOCD know, in the Config options enter `-f board/stm32f3discovery.cfg`.
|
Right click on your QMK folder, select Debug As -> Debug Configurations... . Here double click on GDB OpenOCD Debugging. Select the Debugger tab and enter the configuration necessary for your MCU. This might take some fiddling and Googling to find out. The default script for the STM32F3 is called `stm32f3discovery.cfg`. To let OpenOCD know, in the Config options enter `-f board/stm32f3discovery.cfg`.
|
||||||
|
|
||||||
NOTE: In my case this configuration script requires editing to disable the reset assertion. The locations of the scripts can be found in the actual executable field usually under the path `openocd/version/.content/scripts/board`. Here I edited `reset_config srst_only` to `reset_config none`.
|
NOTE: In my case this configuration script requires editing to disable the reset assertion. The locations of the scripts can be found in the actual executable field usually under the path `openocd/version/.content/scripts/board`. Here I edited `reset_config srst_only` to `reset_config none`.
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ Select Apply and Close.
|
|||||||
|
|
||||||
Reset your keyboard.
|
Reset your keyboard.
|
||||||
|
|
||||||
Press the bug icon and if all goes well you should soon find yourself in the debug perspective. Here the program counter will pause at the beginning of the main function and way for you to press Play. Most of the features of all debuggers work on ARM MCUs but for exact details google is your friend!
|
Press the bug icon and if all goes well you should soon find yourself in the Debug perspective. Here the program counter will pause at the beginning of the main function and wait for you to press Play. Most of the features of all debuggers work on Arm MCUs but for exact details Google is your friend!
|
||||||
|
|
||||||
|
|
||||||
Happy debugging!
|
Happy debugging!
|
||||||
|
@@ -6,20 +6,21 @@ The breaking change period is when we will merge PR's that change QMK in dangero
|
|||||||
|
|
||||||
## What has been included in past Breaking Changes?
|
## What has been included in past Breaking Changes?
|
||||||
|
|
||||||
|
* [2020 Feb 29](ChangeLog/20200229.md)
|
||||||
* [2019 Aug 30](ChangeLog/20190830.md)
|
* [2019 Aug 30](ChangeLog/20190830.md)
|
||||||
|
|
||||||
## When is the next Breaking Change?
|
## When is the next Breaking Change?
|
||||||
|
|
||||||
The next Breaking Change is scheduled for Nov 29.
|
The next Breaking Change is scheduled for May 30, 2020.
|
||||||
|
|
||||||
### Important Dates
|
### Important Dates
|
||||||
|
|
||||||
* [x] 2019 Sep 21 - `future` is created. It will be rebased weekly.
|
* [x] 2020 Feb 29 - `future` is created. It will be rebased weekly.
|
||||||
* [ ] 2019 Nov 01 - `future` closed to new PR's.
|
* [ ] 2020 May 2 - `future` closed to new PR's.
|
||||||
* [ ] 2019 Nov 01 - Call for testers.
|
* [ ] 2020 May 2 - Call for testers.
|
||||||
* [ ] 2019 Nov 27 - `master` is locked, no PR's merged.
|
* [ ] 2020 May 28 - `master` is locked, no PR's merged.
|
||||||
* [ ] 2019 Nov 29 - Merge `future` to `master`.
|
* [ ] 2020 May 30 - Merge `future` to `master`.
|
||||||
* [ ] 2019 Nov 30 - `master` is unlocked. PR's can be merged again.
|
* [ ] 2020 May 30 - `master` is unlocked. PR's can be merged again.
|
||||||
|
|
||||||
## What changes will be included?
|
## What changes will be included?
|
||||||
|
|
||||||
|
42
docs/breaking_changes_instructions.md
Normal file
42
docs/breaking_changes_instructions.md
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
# Breaking Changes: My Pull Request Was Flagged
|
||||||
|
|
||||||
|
A QMK member may have replied to your pull request stating that your submission is a breaking change. In their judgment, the changes you have proposed have greater implications for either QMK, or its users.
|
||||||
|
|
||||||
|
Some things that may cause a pull request to be flagged are:
|
||||||
|
|
||||||
|
- **Edits to User Keymaps**
|
||||||
|
A user may submit their keymap to QMK, then some time later open a pull request with further updates, only to find it can't be merged because it was edited in the `qmk/qmk_firmware` repository. As not all users are proficient at using Git or GitHub, the user may find themself unable to fix the issue on their own.
|
||||||
|
- **Changes to Expected Behavior**
|
||||||
|
Changes to QMK behavior may cause users to believe their hardware or QMK is broken if they flash new firmware that incorporates changes to existing QMK features, and find themselves without a means to restore the desired behavior.
|
||||||
|
- **Changes Requiring User Action**
|
||||||
|
Changes may also require action to be taken by users, such as updating a toolchain or taking some action in Git.
|
||||||
|
- **Changes Necessitating Increased Scrutiny**
|
||||||
|
On occasion, a submission may have implications for QMK as a project. This could be copyright/licensing issues, coding conventions, large feature overhauls, "high-risk" changes that need wider testing by our community, or something else entirely.
|
||||||
|
- **Changes Requiring Communication to End Users**
|
||||||
|
This includes warnings about future deprecations, outdated practices, and anything else that needs to be communicated but doesn't fit into one of the above categories.
|
||||||
|
|
||||||
|
## What Do I Do?
|
||||||
|
|
||||||
|
If it is determined that your submission is a breaking change, there are a few things you can do to smooth the process:
|
||||||
|
|
||||||
|
### Consider Splitting Up Your PR
|
||||||
|
|
||||||
|
If you are contributing core code, and the only reason it needs to go through breaking changes is that you are updating keymaps to match your change, consider whether you can submit your feature in a way that the old keymaps continue to work. Then submit a separate PR that goes through the breaking changes process to remove the old code.
|
||||||
|
|
||||||
|
### Contribute a ChangeLog Entry
|
||||||
|
|
||||||
|
We require submissions that go through the Breaking Change process to include a changelog entry. The entry should be a short summary of the changes your pull request makes – [each section here started as a changelog](ChangeLog/20190830.md "n.b. This should link to the 2019 Aug 30 Breaking Changes doc - @noroadsleft").
|
||||||
|
|
||||||
|
Your changelog should be located at `docs/ChangeLog/YYYYMMDD/PR####.md`, where `YYYYMMDD` is the date on which QMK's breaking change branch – usually named `future` – will be merged into the `master` branch, and `####` is the number of your pull request.
|
||||||
|
|
||||||
|
If your submission requires action on the part of users, your changelog should instruct users what action(s) must be taken, or link to a location that does so.
|
||||||
|
|
||||||
|
### Document Your Changes
|
||||||
|
|
||||||
|
Understanding the purpose for your submission, and possible implications or actions it will require can make the review process more straightforward. A changelog may suffice for this purpose, but more extensive changes may require a level of detail that is ill-suited for a changelog.
|
||||||
|
|
||||||
|
Commenting on your pull request and being responsive to questions, comments, and change requests is much appreciated.
|
||||||
|
|
||||||
|
### Ask for Help
|
||||||
|
|
||||||
|
Having your submission flagged may have caught you off guard. If you find yourself intimidated or overwhelmed, let us know. Comment on your pull request, or [reach out to the QMK team on Discord](https://discord.gg/Uq7gcHh).
|
163
docs/cli.md
163
docs/cli.md
@@ -69,9 +69,41 @@ There are some limitations to the local CLI compared to the global CLI:
|
|||||||
|
|
||||||
# CLI Commands
|
# CLI Commands
|
||||||
|
|
||||||
|
## `qmk cformat`
|
||||||
|
|
||||||
|
This command formats C code using clang-format.
|
||||||
|
|
||||||
|
Run it with no arguments to format all core code that has been changed. Default checks `origin/master` with `git diff`, branch can be changed using `-b <branch_name>`
|
||||||
|
|
||||||
|
Run it with `-a` to format all core code, or pass filenames on the command line to run it on specific files.
|
||||||
|
|
||||||
|
**Usage for specified files**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk cformat [file1] [file2] [...] [fileN]
|
||||||
|
```
|
||||||
|
|
||||||
|
**Usage for all core files**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk cformat -a
|
||||||
|
```
|
||||||
|
|
||||||
|
**Usage for only changed files against origin/master**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk cformat
|
||||||
|
```
|
||||||
|
|
||||||
|
**Usage for only changed files against branch_name**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk cformat -b branch_name
|
||||||
|
```
|
||||||
|
|
||||||
## `qmk compile`
|
## `qmk compile`
|
||||||
|
|
||||||
This command allows you to compile firmware from any directory. You can compile JSON exports from <https://config.qmk.fm> or compile keymaps in the repo.
|
This command allows you to compile firmware from any directory. You can compile JSON exports from <https://config.qmk.fm>, compile keymaps in the repo, or compile the keyboard in the current working directory.
|
||||||
|
|
||||||
**Usage for Configurator Exports**:
|
**Usage for Configurator Exports**:
|
||||||
|
|
||||||
@@ -85,14 +117,75 @@ qmk compile <configuratorExport.json>
|
|||||||
qmk compile -kb <keyboard_name> -km <keymap_name>
|
qmk compile -kb <keyboard_name> -km <keymap_name>
|
||||||
```
|
```
|
||||||
|
|
||||||
## `qmk cformat`
|
**Usage in Keyboard Directory**:
|
||||||
|
|
||||||
This command formats C code using clang-format. Run it with no arguments to format all core code, or pass filenames on the command line to run it on specific files.
|
Must be in keyboard directory with a default keymap, or in keymap directory for keyboard, or supply one with `--keymap <keymap_name>`
|
||||||
|
```
|
||||||
|
qmk compile
|
||||||
|
```
|
||||||
|
|
||||||
**Usage**:
|
**Example**:
|
||||||
|
```
|
||||||
|
$ qmk config compile.keymap=default
|
||||||
|
$ cd ~/qmk_firmware/keyboards/planck/rev6
|
||||||
|
$ qmk compile
|
||||||
|
Ψ Compiling keymap with make planck/rev6:default
|
||||||
|
...
|
||||||
|
```
|
||||||
|
or with optional keymap argument
|
||||||
|
|
||||||
```
|
```
|
||||||
qmk cformat [file1] [file2] [...] [fileN]
|
$ cd ~/qmk_firmware/keyboards/clueboard/66/rev4
|
||||||
|
$ qmk compile -km 66_iso
|
||||||
|
Ψ Compiling keymap with make clueboard/66/rev4:66_iso
|
||||||
|
...
|
||||||
|
```
|
||||||
|
or in keymap directory
|
||||||
|
|
||||||
|
```
|
||||||
|
$ cd ~/qmk_firmware/keyboards/gh60/satan/keymaps/colemak
|
||||||
|
$ qmk compile
|
||||||
|
Ψ Compiling keymap with make make gh60/satan:colemak
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
**Usage in Layout Directory**:
|
||||||
|
|
||||||
|
Must be under `qmk_firmware/layouts/`, and in a keymap folder.
|
||||||
|
```
|
||||||
|
qmk compile -kb <keyboard_name>
|
||||||
|
```
|
||||||
|
|
||||||
|
**Example**:
|
||||||
|
```
|
||||||
|
$ cd ~/qmk_firmware/layouts/community/60_ansi/mechmerlin-ansi
|
||||||
|
$ qmk compile -kb dz60
|
||||||
|
Ψ Compiling keymap with make dz60:mechmerlin-ansi
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
## `qmk flash`
|
||||||
|
|
||||||
|
This command is similar to `qmk compile`, but can also target a bootloader. The bootloader is optional, and is set to `:flash` by default.
|
||||||
|
To specify a different bootloader, use `-bl <bootloader>`. Visit <https://docs.qmk.fm/#/flashing>
|
||||||
|
for more details of the available bootloaders.
|
||||||
|
|
||||||
|
**Usage for Configurator Exports**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk flash <configuratorExport.json> -bl <bootloader>
|
||||||
|
```
|
||||||
|
|
||||||
|
**Usage for Keymaps**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk flash -kb <keyboard_name> -km <keymap_name> -bl <bootloader>
|
||||||
|
```
|
||||||
|
|
||||||
|
**Listing the Bootloaders**
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk flash -b
|
||||||
```
|
```
|
||||||
|
|
||||||
## `qmk config`
|
## `qmk config`
|
||||||
@@ -117,12 +210,58 @@ qmk docs [-p PORT]
|
|||||||
|
|
||||||
## `qmk doctor`
|
## `qmk doctor`
|
||||||
|
|
||||||
This command examines your environment and alerts you to potential build or flash problems.
|
This command examines your environment and alerts you to potential build or flash problems. It can fix many of them if you want it to.
|
||||||
|
|
||||||
**Usage**:
|
**Usage**:
|
||||||
|
|
||||||
```
|
```
|
||||||
qmk doctor
|
qmk doctor [-y] [-n]
|
||||||
|
```
|
||||||
|
|
||||||
|
**Examples**:
|
||||||
|
|
||||||
|
Check your environment for problems and prompt to fix them:
|
||||||
|
|
||||||
|
qmk doctor
|
||||||
|
|
||||||
|
Check your environment and automatically fix any problems found:
|
||||||
|
|
||||||
|
qmk doctor -y
|
||||||
|
|
||||||
|
Check your environment and report problems only:
|
||||||
|
|
||||||
|
qmk doctor -n
|
||||||
|
|
||||||
|
## `qmk json-keymap`
|
||||||
|
|
||||||
|
Creates a keymap.c from a QMK Configurator export.
|
||||||
|
|
||||||
|
**Usage**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk json-keymap [-o OUTPUT] filename
|
||||||
|
```
|
||||||
|
|
||||||
|
## `qmk kle2json`
|
||||||
|
|
||||||
|
This command allows you to convert from raw KLE data to QMK Configurator JSON. It accepts either an absolute file path, or a file name in the current directory. By default it will not overwrite `info.json` if it is already present. Use the `-f` or `--force` flag to overwrite.
|
||||||
|
|
||||||
|
**Usage**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk kle2json [-f] <filename>
|
||||||
|
```
|
||||||
|
|
||||||
|
**Examples**:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ qmk kle2json kle.txt
|
||||||
|
☒ File info.json already exists, use -f or --force to overwrite.
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
$ qmk kle2json -f kle.txt -f
|
||||||
|
Ψ Wrote out to info.json
|
||||||
```
|
```
|
||||||
|
|
||||||
## `qmk list-keyboards`
|
## `qmk list-keyboards`
|
||||||
@@ -135,6 +274,16 @@ This command lists all the keyboards currently defined in `qmk_firmware`
|
|||||||
qmk list-keyboards
|
qmk list-keyboards
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## `qmk list-keymaps`
|
||||||
|
|
||||||
|
This command lists all the keymaps for a specified keyboard (and revision).
|
||||||
|
|
||||||
|
**Usage**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk list-keymaps -kb planck/ez
|
||||||
|
```
|
||||||
|
|
||||||
## `qmk new-keymap`
|
## `qmk new-keymap`
|
||||||
|
|
||||||
This command creates a new keymap based on a keyboard's existing default keymap.
|
This command creates a new keymap based on a keyboard's existing default keymap.
|
||||||
|
@@ -173,3 +173,35 @@ You will only be able to access these arguments using `cli.args`. For example:
|
|||||||
```
|
```
|
||||||
cli.log.info('Reading from %s and writing to %s', cli.args.filename, cli.args.output)
|
cli.log.info('Reading from %s and writing to %s', cli.args.filename, cli.args.output)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Testing, and Linting, and Formatting (oh my!)
|
||||||
|
|
||||||
|
We use nose2, flake8, and yapf to test, lint, and format code. You can use the `pytest` and `pyformat` subcommands to run these tests:
|
||||||
|
|
||||||
|
### Testing and Linting
|
||||||
|
|
||||||
|
qmk pytest
|
||||||
|
|
||||||
|
### Formatting
|
||||||
|
|
||||||
|
qmk pyformat
|
||||||
|
|
||||||
|
## Formatting Details
|
||||||
|
|
||||||
|
We use [yapf](https://github.com/google/yapf) to automatically format code. Our configuration is in the `[yapf]` section of `setup.cfg`.
|
||||||
|
|
||||||
|
?> Tip- Many editors can use yapf as a plugin to automatically format code as you type.
|
||||||
|
|
||||||
|
## Testing Details
|
||||||
|
|
||||||
|
Our tests can be found in `lib/python/qmk/tests/`. You will find both unit and integration tests in this directory. We hope you will write both unit and integration tests for your code, but if you do not please favor integration tests.
|
||||||
|
|
||||||
|
If your PR does not include a comprehensive set of tests please add comments like this to your code so that other people know where they can help:
|
||||||
|
|
||||||
|
# TODO(unassigned/<yourGithubUsername>): Write <unit|integration> tests
|
||||||
|
|
||||||
|
We use [nose2](https://nose2.readthedocs.io/en/latest/getting_started.html) to run our tests. You can refer to the nose2 documentation for more details on what you can do in your test functions.
|
||||||
|
|
||||||
|
## Linting Details
|
||||||
|
|
||||||
|
We use flake8 to lint our code. Your code should pass flake8 before you open a PR. This will be checked when you run `qmk pytest` and by CI when you submit a PR.
|
||||||
|
@@ -14,7 +14,7 @@ Most of our style is pretty easy to pick up on, but right now it's not entirely
|
|||||||
* Think of them as a story describing the feature
|
* Think of them as a story describing the feature
|
||||||
* Use them liberally to explain why particular decisions were made.
|
* Use them liberally to explain why particular decisions were made.
|
||||||
* Do not write obvious comments
|
* Do not write obvious comments
|
||||||
* If you not sure if a comment is obvious, go ahead and include it.
|
* If you're not sure if a comment is obvious, go ahead and include it.
|
||||||
* In general we don't wrap lines, they can be as long as needed. If you do choose to wrap lines please do not wrap any wider than 76 columns.
|
* In general we don't wrap lines, they can be as long as needed. If you do choose to wrap lines please do not wrap any wider than 76 columns.
|
||||||
* We use `#pragma once` at the start of header files rather than old-style include guards (`#ifndef THIS_FILE_H`, `#define THIS_FILE_H`, ..., `#endif`)
|
* We use `#pragma once` at the start of header files rather than old-style include guards (`#ifndef THIS_FILE_H`, `#define THIS_FILE_H`, ..., `#endif`)
|
||||||
* We accept both forms of preprocessor if's: `#ifdef DEFINED` and `#if defined(DEFINED)`
|
* We accept both forms of preprocessor if's: `#ifdef DEFINED` and `#if defined(DEFINED)`
|
||||||
|
@@ -8,7 +8,7 @@ Most of our style follows PEP8 with some local modifications to make things less
|
|||||||
* Think of them as a story describing the feature
|
* Think of them as a story describing the feature
|
||||||
* Use them liberally to explain why particular decisions were made.
|
* Use them liberally to explain why particular decisions were made.
|
||||||
* Do not write obvious comments
|
* Do not write obvious comments
|
||||||
* If you not sure if a comment is obvious, go ahead and include it.
|
* If you're not sure if a comment is obvious, go ahead and include it.
|
||||||
* We require useful docstrings for all functions.
|
* We require useful docstrings for all functions.
|
||||||
* In general we don't wrap lines, they can be as long as needed. If you do choose to wrap lines please do not wrap any wider than 76 columns.
|
* In general we don't wrap lines, they can be as long as needed. If you do choose to wrap lines please do not wrap any wider than 76 columns.
|
||||||
* Some of our practices conflict with the wider python community to make our codebase more approachable to non-pythonistas.
|
* Some of our practices conflict with the wider python community to make our codebase more approachable to non-pythonistas.
|
||||||
@@ -77,9 +77,9 @@ Always use a .py filename extension. Never use dashes.
|
|||||||
|
|
||||||
## Names to Avoid
|
## Names to Avoid
|
||||||
|
|
||||||
* single character names except for counters or iterators. You may use "e" as an exception identifier in try/except statements.
|
* single character names except for counters or iterators. You may use `e` as an exception identifier in try/except statements.
|
||||||
* dashes (-) in any package/module name
|
* dashes (`-`) in any package/module name
|
||||||
* __double_leading_and_trailing_underscore__ names (reserved by Python)
|
* `__double_leading_and_trailing_underscore__` names (reserved by Python)
|
||||||
|
|
||||||
# Docstrings
|
# Docstrings
|
||||||
|
|
||||||
@@ -309,6 +309,18 @@ FIXME(username): Revisit this code when the frob feature is done.
|
|||||||
|
|
||||||
...where username is your GitHub username.
|
...where username is your GitHub username.
|
||||||
|
|
||||||
# Unit Tests
|
# Testing
|
||||||
|
|
||||||
These are good. We should have some one day.
|
We use a combination of Integration and Unit testing to ensure that the our code is as bug-free as possible. All the tests can be found in `lib/python/qmk/tests/`. You can run all the tests with `qmk pytest`.
|
||||||
|
|
||||||
|
At the time of this writing our tests are not very comprehensive. Looking at the current tests and writing new test cases for untested situations is a great way to both familiarize yourself with the codebase and contribute to QMK.
|
||||||
|
|
||||||
|
## Integration Tests
|
||||||
|
|
||||||
|
Integration tests can be found in `lib/python/qmk/tests/test_cli_commands.py`. This is where CLI commands are actually run and their overall behavior is verified. We use [`subprocess`](https://docs.python.org/3.5/library/subprocess.html#module-subprocess) to launch each CLI command and a combination of checking output and returncode to determine if the right thing happened.
|
||||||
|
|
||||||
|
## Unit Tests
|
||||||
|
|
||||||
|
The other `test_*.py` files in `lib/python/qmk/tests/` contain unit tests. You can write tests for individual functions inside `lib/python/qmk/` here. Generally these files are named after the module, with dots replaced by underscores.
|
||||||
|
|
||||||
|
At the time of this writing we do not do any mocking for our tests. If you would like to help us change this please [open an issue](https://github.com/qmk/qmk_firmware/issues/new?assignees=&labels=cli%2C+python&template=other_issues.md&title=) or [join #cli on Discord](https://discord.gg/heQPAgy) and start a conversation there.
|
||||||
|
@@ -1,25 +1,36 @@
|
|||||||
# Atmel AVR
|
# Compatible Microcontrollers
|
||||||
|
|
||||||
QMK should run on any Atmel AVR processor with enough Flash. It has been tested on the following:
|
QMK runs on any USB-capable AVR or ARM microcontroller with enough flash space - generally 32kB or more, though it will *just* squeeze into 16kB with most features disabled.
|
||||||
|
|
||||||
* ATmega32U4 ([PJRC Teensy 2.0](http://www.pjrc.com/teensy/))
|
## Atmel AVR
|
||||||
* AT90USB1286 ([PJRC Teensy++ 2.0](http://www.pjrc.com/teensy/))
|
|
||||||
* AT90USB1287 ([Atmel USBKEY](http://www.atmel.com/tools/AT90USBKEY.aspx))
|
|
||||||
* ATmega168P with using [V-USB](http://www.obdev.at/products/vusb/index.html)
|
|
||||||
* ATmega328P with using [V-USB](http://www.obdev.at/products/vusb/index.html)
|
|
||||||
* ATmega32U2
|
|
||||||
* AT90USB1286, 646, 647 should work
|
|
||||||
* AT90USB162 testing...
|
|
||||||
|
|
||||||
NOTE: To enable full features of firmware you'll need 32KB flash size.
|
The following use [LUFA](https://www.fourwalledcubicle.com/LUFA.php) as the USB stack:
|
||||||
|
|
||||||
Please add any tested microcontrollers to this list.
|
* [ATmega16U2](https://www.microchip.com/wwwproducts/en/ATmega16U2) / [ATmega32U2](https://www.microchip.com/wwwproducts/en/ATmega32U2)
|
||||||
|
* [ATmega16U4](https://www.microchip.com/wwwproducts/en/ATmega16U4) / [ATmega32U4](https://www.microchip.com/wwwproducts/en/ATmega32U4)
|
||||||
|
* [AT90USB64](https://www.microchip.com/wwwproducts/en/AT90USB646) / [AT90USB128](https://www.microchip.com/wwwproducts/en/AT90USB1286)
|
||||||
|
|
||||||
# ARM
|
Certain MCUs which do not have native USB will use [V-USB](https://www.obdev.at/products/vusb/index.html) instead:
|
||||||
|
|
||||||
You can also use any ARM processor that [ChibiOS](http://www.chibios.org) supports. The following processors have been tested:
|
* [ATmega32A](https://www.microchip.com/wwwproducts/en/ATmega32A)
|
||||||
|
* [ATmega328P](https://www.microchip.com/wwwproducts/en/ATmega328P)
|
||||||
|
|
||||||
* [Kinetis MKL26Z64](http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/kinetis-cortex-m-mcus/l-series-ultra-low-power-m0-plus/kinetis-kl2x-48-mhz-usb-ultra-low-power-microcontrollers-mcus-based-on-arm-cortex-m0-plus-core:KL2x)
|
## ARM
|
||||||
* [Kinetis MK20DX128](http://www.nxp.com/assets/documents/data/en/data-sheets/K20P64M50SF0.pdf)
|
|
||||||
* [Kinetis MK20DX128](http://www.nxp.com/assets/documents/data/en/data-sheets/K20P64M50SF0.pdf)
|
You can also use any ARM chip with USB that [ChibiOS](http://www.chibios.org) supports. Most have plenty of flash. Known to work are:
|
||||||
* [Kinetis MK20DX256](http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/kinetis-cortex-m-mcus/k-series-performance-m4/k2x-usb/kinetis-k20-72-mhz-full-speed-usb-mixed-signal-integration-microcontrollers-mcus-based-on-arm-cortex-m4-core:K20_72)
|
|
||||||
|
### STMicroelectronics (STM32)
|
||||||
|
|
||||||
|
* [STM32F0x2](https://www.st.com/en/microcontrollers-microprocessors/stm32f0x2.html)
|
||||||
|
* [STM32F103](https://www.st.com/en/microcontrollers-microprocessors/stm32f103.html)
|
||||||
|
* [STM32F303](https://www.st.com/en/microcontrollers-microprocessors/stm32f303.html)
|
||||||
|
|
||||||
|
### NXP (Kinetis)
|
||||||
|
|
||||||
|
* [MKL26Z64](https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/kl-series-cortex-m0-plus/kinetis-kl2x-72-96-mhz-usb-ultra-low-power-microcontrollers-mcus-based-on-arm-cortex-m0-plus-core:KL2x)
|
||||||
|
* [MK20DX128](https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/k-series-cortex-m4/k2x-usb/kinetis-k20-50-mhz-full-speed-usb-mixed-signal-integration-microcontrollers-based-on-arm-cortex-m4-core:K20_50)
|
||||||
|
* [MK20DX256](https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/k-series-cortex-m4/k2x-usb/kinetis-k20-72-mhz-full-speed-usb-mixed-signal-integration-microcontrollers-mcus-based-on-arm-cortex-m4-core:K20_72)
|
||||||
|
|
||||||
|
## Atmel ATSAM
|
||||||
|
|
||||||
|
There is limited support for one of Atmel's ATSAM microcontrollers, that being the [ATSAMD51J18A](https://www.microchip.com/wwwproducts/en/ATSAMD51J18A) used by the [Massdrop keyboards](https://github.com/qmk/qmk_firmware/tree/master/keyboards/massdrop).
|
||||||
|
@@ -53,6 +53,8 @@ This is a C header file that is one of the first things included, and will persi
|
|||||||
* pins of the rows, from top to bottom
|
* pins of the rows, from top to bottom
|
||||||
* `#define MATRIX_COL_PINS { F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7 }`
|
* `#define MATRIX_COL_PINS { F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7 }`
|
||||||
* pins of the columns, from left to right
|
* pins of the columns, from left to right
|
||||||
|
* `#define MATRIX_IO_DELAY 30`
|
||||||
|
* the delay in microseconds when between changing matrix pin state and reading values
|
||||||
* `#define UNUSED_PINS { D1, D2, D3, B1, B2, B3 }`
|
* `#define UNUSED_PINS { D1, D2, D3, B1, B2, B3 }`
|
||||||
* pins unused by the keyboard for reference
|
* pins unused by the keyboard for reference
|
||||||
* `#define MATRIX_HAS_GHOST`
|
* `#define MATRIX_HAS_GHOST`
|
||||||
@@ -78,7 +80,7 @@ This is a C header file that is one of the first things included, and will persi
|
|||||||
* `#define BACKLIGHT_PIN B7`
|
* `#define BACKLIGHT_PIN B7`
|
||||||
* pin of the backlight
|
* pin of the backlight
|
||||||
* `#define BACKLIGHT_LEVELS 3`
|
* `#define BACKLIGHT_LEVELS 3`
|
||||||
* number of levels your backlight will have (maximum 15 excluding off)
|
* number of levels your backlight will have (maximum 31 excluding off)
|
||||||
* `#define BACKLIGHT_BREATHING`
|
* `#define BACKLIGHT_BREATHING`
|
||||||
* enables backlight breathing
|
* enables backlight breathing
|
||||||
* `#define BREATHING_PERIOD 6`
|
* `#define BREATHING_PERIOD 6`
|
||||||
@@ -140,13 +142,19 @@ If you define these options you will enable the associated feature, which may in
|
|||||||
* `#define PERMISSIVE_HOLD`
|
* `#define PERMISSIVE_HOLD`
|
||||||
* makes tap and hold keys trigger the hold if another key is pressed before releasing, even if it hasn't hit the `TAPPING_TERM`
|
* makes tap and hold keys trigger the hold if another key is pressed before releasing, even if it hasn't hit the `TAPPING_TERM`
|
||||||
* See [Permissive Hold](feature_advanced_keycodes.md#permissive-hold) for details
|
* See [Permissive Hold](feature_advanced_keycodes.md#permissive-hold) for details
|
||||||
|
* `#define PERMISSIVE_HOLD_PER_KEY`
|
||||||
|
* enabled handling for per key `PERMISSIVE_HOLD` settings
|
||||||
* `#define IGNORE_MOD_TAP_INTERRUPT`
|
* `#define IGNORE_MOD_TAP_INTERRUPT`
|
||||||
* makes it possible to do rolling combos (zx) with keys that convert to other keys on hold, by enforcing the `TAPPING_TERM` for both keys.
|
* makes it possible to do rolling combos (zx) with keys that convert to other keys on hold, by enforcing the `TAPPING_TERM` for both keys.
|
||||||
* See [Mod tap interrupt](feature_advanced_keycodes.md#ignore-mod-tap-interrupt) for details
|
* See [Mod tap interrupt](feature_advanced_keycodes.md#ignore-mod-tap-interrupt) for details
|
||||||
|
* `#define IGNORE_MOD_TAP_INTERRUPT_PER_KEY`
|
||||||
|
* enables handling for per key `IGNORE_MOD_TAP_INTERRUPT` settings
|
||||||
* `#define TAPPING_FORCE_HOLD`
|
* `#define TAPPING_FORCE_HOLD`
|
||||||
* makes it possible to use a dual role key as modifier shortly after having been tapped
|
* makes it possible to use a dual role key as modifier shortly after having been tapped
|
||||||
* See [Hold after tap](feature_advanced_keycodes.md#tapping-force-hold)
|
* See [Hold after tap](feature_advanced_keycodes.md#tapping-force-hold)
|
||||||
* Breaks any Tap Toggle functionality (`TT` or the One Shot Tap Toggle)
|
* Breaks any Tap Toggle functionality (`TT` or the One Shot Tap Toggle)
|
||||||
|
* `#define TAPPING_FORCE_HOLD_PER_KEY`
|
||||||
|
* enables handling for per key `TAPPING_FORCE_HOLD` settings
|
||||||
* `#define LEADER_TIMEOUT 300`
|
* `#define LEADER_TIMEOUT 300`
|
||||||
* how long before the leader key times out
|
* how long before the leader key times out
|
||||||
* If you're having issues finishing the sequence before it times out, you may need to increase the timeout setting. Or you may want to enable the `LEADER_PER_KEY_TIMING` option, which resets the timeout after each key is tapped.
|
* If you're having issues finishing the sequence before it times out, you may need to increase the timeout setting. Or you may want to enable the `LEADER_PER_KEY_TIMING` option, which resets the timeout after each key is tapped.
|
||||||
@@ -196,8 +204,8 @@ If you define these options you will enable the associated feature, which may in
|
|||||||
* units to step when in/decreasing saturation
|
* units to step when in/decreasing saturation
|
||||||
* `#define RGBLIGHT_VAL_STEP 12`
|
* `#define RGBLIGHT_VAL_STEP 12`
|
||||||
* units to step when in/decreasing value (brightness)
|
* units to step when in/decreasing value (brightness)
|
||||||
* `#define RGBW_BB_TWI`
|
* `#define RGBW`
|
||||||
* bit-bangs TWI to EZ RGBW LEDs (only required for Ergodox EZ)
|
* Enables RGBW LED support
|
||||||
|
|
||||||
## Mouse Key Options
|
## Mouse Key Options
|
||||||
|
|
||||||
@@ -272,9 +280,12 @@ There are a few different ways to set handedness for split keyboards (listed in
|
|||||||
* Default behavior for ARM
|
* Default behavior for ARM
|
||||||
* Required for AVR Teensy
|
* Required for AVR Teensy
|
||||||
|
|
||||||
* `#define SPLIT_USB_TIMEOUT 2500`
|
* `#define SPLIT_USB_TIMEOUT 2000`
|
||||||
* Maximum timeout when detecting master/slave when using `SPLIT_USB_DETECT`
|
* Maximum timeout when detecting master/slave when using `SPLIT_USB_DETECT`
|
||||||
|
|
||||||
|
* `#define SPLIT_USB_TIMEOUT_POLL 10`
|
||||||
|
* Poll frequency when detecting master/slave when using `SPLIT_USB_DETECT`
|
||||||
|
|
||||||
# The `rules.mk` File
|
# The `rules.mk` File
|
||||||
|
|
||||||
This is a [make](https://www.gnu.org/software/make/manual/make.html) file that is included by the top-level `Makefile`. It is used to set some information about the MCU that we will be compiling for as well as enabling and disabling certain features.
|
This is a [make](https://www.gnu.org/software/make/manual/make.html) file that is included by the top-level `Makefile`. It is used to set some information about the MCU that we will be compiling for as well as enabling and disabling certain features.
|
||||||
@@ -287,8 +298,27 @@ This is a [make](https://www.gnu.org/software/make/manual/make.html) file that i
|
|||||||
* Defines which format (bin, hex) is copied to the root `qmk_firmware` folder after building.
|
* Defines which format (bin, hex) is copied to the root `qmk_firmware` folder after building.
|
||||||
* `SRC`
|
* `SRC`
|
||||||
* Used to add files to the compilation/linking list.
|
* Used to add files to the compilation/linking list.
|
||||||
|
* `LIB_SRC`
|
||||||
|
* Used to add files as a library to the compilation/linking list.
|
||||||
|
The files specified by `LIB_SRC` is linked after the files specified by `SRC`.
|
||||||
|
For example, if you specify:
|
||||||
|
```
|
||||||
|
SRC += a.c
|
||||||
|
LIB_SRC += lib_b.c
|
||||||
|
SRC += c.c
|
||||||
|
LIB_SRC += lib_d.c
|
||||||
|
```
|
||||||
|
The link order is as follows.
|
||||||
|
```
|
||||||
|
... a.o c.o ... lib_b.a lib_d.a ...
|
||||||
|
```
|
||||||
* `LAYOUTS`
|
* `LAYOUTS`
|
||||||
* A list of [layouts](feature_layouts.md) this keyboard supports.
|
* A list of [layouts](feature_layouts.md) this keyboard supports.
|
||||||
|
* `LINK_TIME_OPTIMIZATION_ENABLE`
|
||||||
|
* Enables Link Time Optimization (`LTO`) when compiling the keyboard. This makes the process take longer, but can significantly reduce the compiled size (and since the firmware is small, the added time is not noticeable). However, this will automatically disable the old Macros and Functions features automatically, as these break when `LTO` is enabled.
|
||||||
|
It does this by automatically defining `NO_ACTION_MACRO` and `NO_ACTION_FUNCTION`
|
||||||
|
* `LTO_ENABLE`
|
||||||
|
* It has the same meaning as LINK_TIME_OPTIMIZATION_ENABLE. You can use `LTO_ENABLE` instead of `LINK_TIME_OPTIMIZATION_ENABLE`.
|
||||||
|
|
||||||
## AVR MCU Options
|
## AVR MCU Options
|
||||||
* `MCU = atmega32u4`
|
* `MCU = atmega32u4`
|
||||||
@@ -347,8 +377,6 @@ Use these to enable or disable building certain features. The more you have enab
|
|||||||
* Forces the keyboard to wait for a USB connection to be established before it starts up
|
* Forces the keyboard to wait for a USB connection to be established before it starts up
|
||||||
* `NO_USB_STARTUP_CHECK`
|
* `NO_USB_STARTUP_CHECK`
|
||||||
* Disables usb suspend check after keyboard startup. Usually the keyboard waits for the host to wake it up before any tasks are performed. This is useful for split keyboards as one half will not get a wakeup call but must send commands to the master.
|
* Disables usb suspend check after keyboard startup. Usually the keyboard waits for the host to wake it up before any tasks are performed. This is useful for split keyboards as one half will not get a wakeup call but must send commands to the master.
|
||||||
* `LINK_TIME_OPTIMIZATION_ENABLE`
|
|
||||||
= Enables Link Time Optimization (`LTO`) when compiling the keyboard. This makes the process take longer, but can significantly reduce the compiled size (and since the firmware is small, the added time is not noticable). However, this will automatically disable the old Macros and Functions features automatically, as these break when `LTO` is enabled. It does this by automatically defining `NO_ACTION_MACRO` and `NO_ACTION_FUNCTION`
|
|
||||||
|
|
||||||
## USB Endpoint Limitations
|
## USB Endpoint Limitations
|
||||||
|
|
||||||
|
@@ -85,7 +85,7 @@ Limited experimentation on the devices I have available shows that 7 is high eno
|
|||||||
|
|
||||||
Documentation is one of the easiest ways to get started contributing to QMK. Finding places where the documentation is wrong or incomplete and fixing those is easy! We also very badly need someone to edit our documentation, so if you have editing skills but aren't sure where or how to jump in please [reach out for help](#where-can-i-go-for-help)!
|
Documentation is one of the easiest ways to get started contributing to QMK. Finding places where the documentation is wrong or incomplete and fixing those is easy! We also very badly need someone to edit our documentation, so if you have editing skills but aren't sure where or how to jump in please [reach out for help](#where-can-i-go-for-help)!
|
||||||
|
|
||||||
You'll find all our documentation in the `qmk_firmware/docs` directory, or if you'd rather use a web based workflow you can click "Suggest An Edit" at the top of each page on http://docs.qmk.fm/.
|
You'll find all our documentation in the `qmk_firmware/docs` directory, or if you'd rather use a web based workflow you can click the "Edit this page" link at the bottom of each page on https://docs.qmk.fm/.
|
||||||
|
|
||||||
When providing code examples in your documentation, try to observe naming conventions used elsewhere in the docs. For example, standardizing enums as `my_layers` or `my_keycodes` for consistency:
|
When providing code examples in your documentation, try to observe naming conventions used elsewhere in the docs. For example, standardizing enums as `my_layers` or `my_keycodes` for consistency:
|
||||||
|
|
||||||
@@ -101,6 +101,18 @@ enum my_keycodes {
|
|||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Previewing the Documentation
|
||||||
|
|
||||||
|
Before opening a pull request, you can preview your changes if you have set up the development environment by running this command from the `qmk_firmware/` folder:
|
||||||
|
|
||||||
|
./bin/qmk docs
|
||||||
|
|
||||||
|
or if you only have Python 3 installed:
|
||||||
|
|
||||||
|
python3 -m http.server 8936
|
||||||
|
|
||||||
|
and navigating to `http://localhost:8936/`.
|
||||||
|
|
||||||
## Keymaps
|
## Keymaps
|
||||||
|
|
||||||
Most first-time QMK contributors start with their personal keymaps. We try to keep keymap standards pretty casual (keymaps, after all, reflect the personality of their creators) but we do ask that you follow these guidelines to make it easier for others to discover and learn from your keymap.
|
Most first-time QMK contributors start with their personal keymaps. We try to keep keymap standards pretty casual (keymaps, after all, reflect the personality of their creators) but we do ask that you follow these guidelines to make it easier for others to discover and learn from your keymap.
|
||||||
|
108
docs/custom_matrix.md
Normal file
108
docs/custom_matrix.md
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
# Custom Matrix
|
||||||
|
|
||||||
|
QMK provides a mechanism to supplement or replace the default matrix scanning routine with your own code.
|
||||||
|
|
||||||
|
The reasons to use this feature include:
|
||||||
|
|
||||||
|
* Extra hardware between the keyboard's switches and MCU pins
|
||||||
|
* I/O multiplexer
|
||||||
|
* Line decoder
|
||||||
|
* Irregular switch matrix
|
||||||
|
* Simultaneous use of `COL2ROW` and `ROW2COL`
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
Implementing custom matrix usually involves compilation of an additional source file. It is recommended that for consistency, this file is called `matrix.c`.
|
||||||
|
|
||||||
|
Add a new file to your keyboard directory:
|
||||||
|
```text
|
||||||
|
keyboards/<keyboard>/matrix.c
|
||||||
|
```
|
||||||
|
|
||||||
|
And to configure compilation for the new file, add this to your `rules.mk`:
|
||||||
|
```make
|
||||||
|
SRC += matrix.c
|
||||||
|
```
|
||||||
|
|
||||||
|
## 'lite'
|
||||||
|
|
||||||
|
Provides a default implementation for various scanning functions, reducing the boilerplate code when implementing custom matrix.
|
||||||
|
To configure it, add this to your `rules.mk`:
|
||||||
|
|
||||||
|
```make
|
||||||
|
CUSTOM_MATRIX = lite
|
||||||
|
```
|
||||||
|
|
||||||
|
And implement the following functions in a `matrix.c` file in your keyboard folder:
|
||||||
|
|
||||||
|
```c
|
||||||
|
void matrix_init_custom(void) {
|
||||||
|
// TODO: initialize hardware here
|
||||||
|
}
|
||||||
|
|
||||||
|
bool matrix_scan_custom(matrix_row_t current_matrix[]) {
|
||||||
|
bool matrix_has_changed = false;
|
||||||
|
|
||||||
|
// TODO: add matrix scanning routine here
|
||||||
|
|
||||||
|
return matrix_has_changed;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Full Replacement
|
||||||
|
|
||||||
|
When more control over the scanning routine is required, you can choose to implement the full scanning routine.
|
||||||
|
To configure it, add this to your rules.mk:
|
||||||
|
|
||||||
|
```make
|
||||||
|
CUSTOM_MATRIX = yes
|
||||||
|
```
|
||||||
|
|
||||||
|
And implement the following functions in a `matrix.c` file in your keyboard folder:
|
||||||
|
|
||||||
|
```c
|
||||||
|
matrix_row_t matrix_get_row(uint8_t row) {
|
||||||
|
// TODO: return the requested row data
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_print(void) {
|
||||||
|
// TODO: use print() to dump the current matrix state to console
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_init(void) {
|
||||||
|
// TODO: initialize hardware and global matrix state here
|
||||||
|
|
||||||
|
// Unless hardware debouncing - Init the configured debounce routine
|
||||||
|
debounce_init(MATRIX_ROWS);
|
||||||
|
|
||||||
|
// This *must* be called for correct keyboard behavior
|
||||||
|
matrix_init_quantum();
|
||||||
|
}
|
||||||
|
|
||||||
|
uint8_t matrix_scan(void) {
|
||||||
|
bool matrix_has_changed = false;
|
||||||
|
|
||||||
|
// TODO: add matrix scanning routine here
|
||||||
|
|
||||||
|
// Unless hardware debouncing - use the configured debounce routine
|
||||||
|
debounce(raw_matrix, matrix, MATRIX_ROWS, changed);
|
||||||
|
|
||||||
|
// This *must* be called for correct keyboard behavior
|
||||||
|
matrix_scan_quantum();
|
||||||
|
|
||||||
|
return matrix_has_changed;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
And also provide defaults for the following callbacks:
|
||||||
|
|
||||||
|
```c
|
||||||
|
__attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); }
|
||||||
|
|
||||||
|
__attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); }
|
||||||
|
|
||||||
|
__attribute__((weak)) void matrix_init_user(void) {}
|
||||||
|
|
||||||
|
__attribute__((weak)) void matrix_scan_user(void) {}
|
||||||
|
```
|
@@ -90,68 +90,93 @@ keyrecord_t record {
|
|||||||
|
|
||||||
# LED Control
|
# LED Control
|
||||||
|
|
||||||
QMK provides methods to read the 5 LEDs defined as part of the HID spec:
|
QMK provides methods to read 5 of the LEDs defined in the HID spec:
|
||||||
|
|
||||||
* `USB_LED_NUM_LOCK`
|
* Num Lock
|
||||||
* `USB_LED_CAPS_LOCK`
|
* Caps Lock
|
||||||
* `USB_LED_SCROLL_LOCK`
|
* Scroll Lock
|
||||||
* `USB_LED_COMPOSE`
|
* Compose
|
||||||
* `USB_LED_KANA`
|
* Kana
|
||||||
|
|
||||||
These five constants correspond to the positional bits of the host LED state.
|
There are two ways to get the lock LED state:
|
||||||
There are two ways to get the host LED state:
|
|
||||||
|
|
||||||
* by implementing `led_set_user()`
|
* by implementing `bool led_update_kb(led_t led_state)` or `_user(led_t led_state)`; or
|
||||||
* by calling `host_keyboard_leds()`
|
* by calling `led_t host_keyboard_led_state()`
|
||||||
|
|
||||||
## `led_set_user()`
|
!> `host_keyboard_led_state()` may already reflect a new value before `led_update_user()` is called.
|
||||||
|
|
||||||
This function will be called when the state of one of those 5 LEDs changes. It receives the LED state as a parameter.
|
Two more deprecated functions exist that provide the LED state as a `uint8_t`:
|
||||||
Use the `IS_LED_ON(usb_led, led_name)` and `IS_LED_OFF(usb_led, led_name)` macros to check the LED status.
|
|
||||||
|
|
||||||
!> `host_keyboard_leds()` may already reflect a new value before `led_set_user()` is called.
|
* `uint8_t led_set_kb(uint8_t usb_led)` and `_user(uint8_t usb_led)`
|
||||||
|
* `uint8_t host_keyboard_leds()`
|
||||||
|
|
||||||
### Example `led_set_user()` Implementation
|
## `led_update_user()`
|
||||||
|
|
||||||
|
This function will be called when the state of one of those 5 LEDs changes. It receives the LED state as a struct parameter.
|
||||||
|
|
||||||
|
By convention, return `true` from `led_update_user()` to get the `led_update_kb()` hook to run its code, and
|
||||||
|
return `false` when you would prefer not to run the code in `led_update_kb()`.
|
||||||
|
|
||||||
|
Some examples include:
|
||||||
|
|
||||||
|
- overriding the LEDs to use them for something else like layer indication
|
||||||
|
- return `false` because you do not want the `_kb()` function to run, as it would override your layer behavior.
|
||||||
|
- play a sound when an LED turns on or off.
|
||||||
|
- return `true` because you want the `_kb` function to run, and this is in addition to the default LED behavior.
|
||||||
|
|
||||||
|
?> Because the `led_set_*` functions return `void` instead of `bool`, they do not allow for overriding the keyboard LED control, and thus it's recommended to use `led_update_*` instead.
|
||||||
|
|
||||||
|
### Example `led_update_kb()` Implementation
|
||||||
|
|
||||||
```c
|
```c
|
||||||
void led_set_user(uint8_t usb_led) {
|
bool led_update_kb(led_t led_state) {
|
||||||
if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
|
bool res = led_update_user(led_state);
|
||||||
writePinLow(B0);
|
if(res) {
|
||||||
} else {
|
// writePin sets the pin high for 1 and low for 0.
|
||||||
writePinHigh(B0);
|
// In this example the pins are inverted, setting
|
||||||
}
|
// it low/0 turns it on, and high/1 turns the LED off.
|
||||||
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
// This behavior depends on whether the LED is between the pin
|
||||||
writePinLow(B1);
|
// and VCC or the pin and GND.
|
||||||
} else {
|
writePin(B0, !led_state.num_lock);
|
||||||
writePinHigh(B1);
|
writePin(B1, !led_state.caps_lock);
|
||||||
}
|
writePin(B2, !led_state.scroll_lock);
|
||||||
if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
|
writePin(B3, !led_state.compose);
|
||||||
writePinLow(B2);
|
writePin(B4, !led_state.kana);
|
||||||
} else {
|
|
||||||
writePinHigh(B2);
|
|
||||||
}
|
|
||||||
if (IS_LED_ON(usb_led, USB_LED_COMPOSE)) {
|
|
||||||
writePinLow(B3);
|
|
||||||
} else {
|
|
||||||
writePinHigh(B3);
|
|
||||||
}
|
|
||||||
if (IS_LED_ON(usb_led, USB_LED_KANA)) {
|
|
||||||
writePinLow(B4);
|
|
||||||
} else {
|
|
||||||
writePinHigh(B4);
|
|
||||||
}
|
}
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### `led_set_*` Function Documentation
|
### Example `led_update_user()` Implementation
|
||||||
|
|
||||||
* Keyboard/Revision: `void led_set_kb(uint8_t usb_led)`
|
This incomplete example would play a sound if Caps Lock is turned on or off. It returns `true`, because you also want the LEDs to maintain their state.
|
||||||
* Keymap: `void led_set_user(uint8_t usb_led)`
|
|
||||||
|
|
||||||
## `host_keyboard_leds()`
|
```c
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
float caps_on[][2] = SONG(CAPS_LOCK_ON_SOUND);
|
||||||
|
float caps_off[][2] = SONG(CAPS_LOCK_OFF_SOUND);
|
||||||
|
#endif
|
||||||
|
|
||||||
Call this function to get the last received LED state. This is useful for reading the LED state outside `led_set_*`, e.g. in [`matrix_scan_user()`](#matrix-scanning-code).
|
bool led_update_user(led_t led_state) {
|
||||||
For convenience, you can use the `IS_HOST_LED_ON(led_name)` and `IS_HOST_LED_OFF(led_name)` macros instead of calling and checking `host_keyboard_leds()` directly.
|
#ifdef AUDIO_ENABLE
|
||||||
|
static uint8_t caps_state = 0;
|
||||||
|
if (caps_state != led_state.caps_lock) {
|
||||||
|
led_state.caps_lock ? PLAY_SONG(caps_on) : PLAY_SONG(caps_off);
|
||||||
|
caps_state = led_state.caps_lock;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### `led_update_*` Function Documentation
|
||||||
|
|
||||||
|
* Keyboard/Revision: `bool led_update_kb(led_t led_state)`
|
||||||
|
* Keymap: `bool led_update_user(led_t led_state)`
|
||||||
|
|
||||||
|
## `host_keyboard_led_state()`
|
||||||
|
|
||||||
|
Call this function to get the last received LED state as a `led_t`. This is useful for reading the LED state outside `led_update_*`, e.g. in [`matrix_scan_user()`](#matrix-scanning-code).
|
||||||
|
|
||||||
## Setting Physical LED State
|
## Setting Physical LED State
|
||||||
|
|
||||||
@@ -369,7 +394,7 @@ void keyboard_post_init_user(void) {
|
|||||||
// Set default layer, if enabled
|
// Set default layer, if enabled
|
||||||
if (user_config.rgb_layer_change) {
|
if (user_config.rgb_layer_change) {
|
||||||
rgblight_enable_noeeprom();
|
rgblight_enable_noeeprom();
|
||||||
rgblight_sethsv_noeeprom_cyan();
|
rgblight_sethsv_noeeprom_cyan();
|
||||||
rgblight_mode_noeeprom(1);
|
rgblight_mode_noeeprom(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -417,18 +442,18 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||||||
}
|
}
|
||||||
return true; // Let QMK send the enter press/release events
|
return true; // Let QMK send the enter press/release events
|
||||||
case RGB_LYR: // This allows me to use underglow as layer indication, or as normal
|
case RGB_LYR: // This allows me to use underglow as layer indication, or as normal
|
||||||
if (record->event.pressed) {
|
if (record->event.pressed) {
|
||||||
user_config.rgb_layer_change ^= 1; // Toggles the status
|
user_config.rgb_layer_change ^= 1; // Toggles the status
|
||||||
eeconfig_update_user(user_config.raw); // Writes the new status to EEPROM
|
eeconfig_update_user(user_config.raw); // Writes the new status to EEPROM
|
||||||
if (user_config.rgb_layer_change) { // if layer state indication is enabled,
|
if (user_config.rgb_layer_change) { // if layer state indication is enabled,
|
||||||
layer_state_set(layer_state); // then immediately update the layer color
|
layer_state_set(layer_state); // then immediately update the layer color
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false; break;
|
return false; break;
|
||||||
case RGB_MODE_FORWARD ... RGB_MODE_GRADIENT: // For any of the RGB codes (see quantum_keycodes.h, L400 for reference)
|
case RGB_MODE_FORWARD ... RGB_MODE_GRADIENT: // For any of the RGB codes (see quantum_keycodes.h, L400 for reference)
|
||||||
if (record->event.pressed) { //This disables layer indication, as it's assumed that if you're changing this ... you want that disabled
|
if (record->event.pressed) { //This disables layer indication, as it's assumed that if you're changing this ... you want that disabled
|
||||||
if (user_config.rgb_layer_change) { // only if this is enabled
|
if (user_config.rgb_layer_change) { // only if this is enabled
|
||||||
user_config.rgb_layer_change = false; // disable it, and
|
user_config.rgb_layer_change = false; // disable it, and
|
||||||
eeconfig_update_user(user_config.raw); // write the setings to EEPROM
|
eeconfig_update_user(user_config.raw); // write the setings to EEPROM
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -441,7 +466,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||||||
And lastly, you want to add the `eeconfig_init_user` function, so that when the EEPROM is reset, you can specify default values, and even custom actions. To force an EEPROM reset, use the `EEP_RST` keycode or [Bootmagic](feature_bootmagic.md) functionallity. For example, if you want to set rgb layer indication by default, and save the default valued.
|
And lastly, you want to add the `eeconfig_init_user` function, so that when the EEPROM is reset, you can specify default values, and even custom actions. To force an EEPROM reset, use the `EEP_RST` keycode or [Bootmagic](feature_bootmagic.md) functionallity. For example, if you want to set rgb layer indication by default, and save the default valued.
|
||||||
|
|
||||||
```c
|
```c
|
||||||
void eeconfig_init_user(void) { // EEPROM is getting reset!
|
void eeconfig_init_user(void) { // EEPROM is getting reset!
|
||||||
user_config.raw = 0;
|
user_config.raw = 0;
|
||||||
user_config.rgb_layer_change = true; // We want this enabled by default
|
user_config.rgb_layer_change = true; // We want this enabled by default
|
||||||
eeconfig_update_user(user_config.raw); // Write default value to EEPROM now
|
eeconfig_update_user(user_config.raw); // Write default value to EEPROM now
|
||||||
@@ -464,14 +489,24 @@ The `val` is the value of the data that you want to write to EEPROM. And the `e
|
|||||||
|
|
||||||
# Custom Tapping Term
|
# Custom Tapping Term
|
||||||
|
|
||||||
By default, the tapping term is defined globally, and is not configurable by key. For most users, this is perfectly fine. But in come cases, dual function keys would be greatly improved by different timeouts than `LT` keys, or because some keys may be easier to hold than others. Instead of using custom key codes for each, this allows for per key configurable `TAPPING_TERM`.
|
By default, the tapping term and related options (such as `IGNORE_MOD_TAP_INTERRUPT`) are defined globally, and are not configurable by key. For most users, this is perfectly fine. But in some cases, dual function keys would be greatly improved by different timeout behaviors than `LT` keys, or because some keys may be easier to hold than others. Instead of using custom key codes for each, this allows for per key configurable timeout behaviors.
|
||||||
|
|
||||||
To enable this functionality, you need to add `#define TAPPING_TERM_PER_KEY` to your `config.h`, first.
|
There are two configurable options to control per-key timeout behaviors:
|
||||||
|
|
||||||
|
- `TAPPING_TERM_PER_KEY`
|
||||||
|
- `IGNORE_MOD_TAP_INTERRUPT_PER_KEY`
|
||||||
|
|
||||||
|
You need to add `#define` lines to your `config.h` for each feature you want.
|
||||||
|
|
||||||
|
```
|
||||||
|
#define TAPPING_TERM_PER_KEY
|
||||||
|
#define IGNORE_MOD_TAP_INTERRUPT_PER_KEY
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Example `get_tapping_term` Implementation
|
## Example `get_tapping_term` Implementation
|
||||||
|
|
||||||
To change the `TAPPING TERM` based on the keycode, you'd want to add something like the following to your `keymap.c` file:
|
To change the `TAPPING_TERM` based on the keycode, you'd want to add something like the following to your `keymap.c` file:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
uint16_t get_tapping_term(uint16_t keycode) {
|
uint16_t get_tapping_term(uint16_t keycode) {
|
||||||
@@ -486,6 +521,21 @@ uint16_t get_tapping_term(uint16_t keycode) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### `get_tapping_term` Function Documentation
|
## Example `get_ignore_mod_tap_interrupt` Implementation
|
||||||
|
|
||||||
Unlike many of the other functions here, there isn't a need (or even reason) to have a quantum or keyboard level function. Only a user level function is useful here, so no need to mark it as such.
|
To change the `IGNORE_MOD_TAP_INTERRUPT` value based on the keycode, you'd want to add something like the following to your `keymap.c` file:
|
||||||
|
|
||||||
|
```c
|
||||||
|
bool get_ignore_mod_tap_interrupt(uint16_t keycode) {
|
||||||
|
switch (keycode) {
|
||||||
|
case SFT_T(KC_SPC):
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## `get_tapping_term` / `get_ignore_mod_tap_interrupt` Function Documentation
|
||||||
|
|
||||||
|
Unlike many of the other functions here, there isn't a need (or even reason) to have a quantum or keyboard level function. Only user level functions are useful here, so no need to mark them as such.
|
||||||
|
33
docs/de/README.md
Normal file
33
docs/de/README.md
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Quantum Mechanical Keyboard Firmware
|
||||||
|
|
||||||
|
[](https://github.com/qmk/qmk_firmware/tags)
|
||||||
|
[](https://travis-ci.org/qmk/qmk_firmware)
|
||||||
|
[](https://discord.gg/Uq7gcHh)
|
||||||
|
[](https://docs.qmk.fm)
|
||||||
|
[](https://github.com/qmk/qmk_firmware/pulse/monthly)
|
||||||
|
[](https://github.com/qmk/qmk_firmware/)
|
||||||
|
|
||||||
|
## Was ist QMK Firmware?
|
||||||
|
|
||||||
|
QMK (*Quantum Mechanical Keyboard*) ist eine Open-Source-Community, welche die QMK-Firmware, die QMK-Toolbox, [qmk.fm](https://qmk.fm) und diese Dokumententation betreut. QMK-Firmware ist eine Weiterentwicklung der [tmk\_keyboard](http://github.com/tmk/tmk_keyboard)-Tastatur-Firmware mit vielen nützlichen Zusatzfunktionen für Atmel AVR-Prozessoren. Ursprünglich wurde sie für Produkte von [OLKB](http://olkb.com), das [ErgoDox EZ](http://www.ergodox-ez.com) und das [Clueboard](http://clueboard.co/) entwickelt. Im Laufe der Zeit wurde sie mit Hilfe von [ChibiOS](http://chibios.org) auch für die ARM-Architektur angepasst. Außerdem ist es inzwischen möglich, auch handverdrahtete Tastaturen und selbst geätzte PCBs mit QMK zu verwenden.
|
||||||
|
|
||||||
|
## Bezugsquelle für QMK
|
||||||
|
|
||||||
|
Wenn Du vorhast, deine Tastatur, Tastaturbelegung oder Features zu QMK beizusteuern, geht das am einfachsten, indem Du das [Repository auf Github](https://github.com/qmk/qmk_firmware#fork-destination-box) forkst, die Änderungen in deinem lokalen Repo vornimmst und anschließend einen [Pull Request](https://github.com/qmk/qmk_firmware/pulls) einreichst.
|
||||||
|
|
||||||
|
Ansonsten kannst Du es als [zip](https://github.com/qmk/qmk_firmware/zipball/master) oder [tar](https://github.com/qmk/qmk_firmware/tarball/master) herunterladen, oder es direkt via git klonen (`git clone git@github.com:qmk/qmk_firmware.git` bzw. `git clone https://github.com/qmk/qmk_firmware.git`).
|
||||||
|
|
||||||
|
|
||||||
|
## Anleitung fürs Kompilieren
|
||||||
|
|
||||||
|
Bevor Du in der Lage bist, die Firmware zu kompilieren, musst Du eine [Entwicklungsumgebung](de/getting_started_build_tools.md) für AVR und/oder ARM aufsetzen. Danach kannst Du mit dem `make` Befehl eine Keymap für deine Tastatur erzeugen. Die Notation dafür ist:
|
||||||
|
|
||||||
|
make planck/rev4:default
|
||||||
|
|
||||||
|
Dies generiert die Revision `rev4` für eine Tastatur vom Type `planck` mit der `default` Tastaturbelegung. Nicht alle Tastaturen haben Revisionen (auch bekannt als Subprojekt oder Unterordner) weswegen dies auch ausgelassen werden kann:
|
||||||
|
|
||||||
|
make preonic:default
|
||||||
|
|
||||||
|
## Möglichkeiten der Anpassung
|
||||||
|
|
||||||
|
QMK hat viele [Features](de/features.md), die es zu entdecken gibt. In der [Dokumentation](https://docs.qmk.fmk) kannst Du Dir einen Überblick verschaffen. Die meisten Features basieren darauf, die [Tastaturbelegung](de/keymap.md) anzupassen und das Verhalten der [Keycodes](de/keycodes.md) zu verändern.
|
121
docs/de/_summary.md
Normal file
121
docs/de/_summary.md
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
* [Anleitung für Anfänger](de/newbs.md)
|
||||||
|
* [Erste Schritte](de/newbs_getting_started.md)
|
||||||
|
* [Die erste Firmware](de/newbs_building_firmware.md)
|
||||||
|
* [Firmware flashen](de/newbs_flashing.md)
|
||||||
|
* [Testen und Debuggen](de/newbs_testing_debugging.md)
|
||||||
|
* [Git Tips und Tricks](de/newbs_best_practices.md)
|
||||||
|
* [Hilfreiche Ressourcen](de/newbs_learn_more_resources.md)
|
||||||
|
|
||||||
|
* [QMK Basics](de/README.md)
|
||||||
|
* [QMK Einführung](de/getting_started_introduction.md)
|
||||||
|
* [QMK CLI](de/cli.md)
|
||||||
|
* [QMK CLI Konfiguration](de/cli_configuration.md)
|
||||||
|
* [Zu QMK beitragen](de/contributing.md)
|
||||||
|
* [Anleitung für Github](de/getting_started_github.md)
|
||||||
|
* [Nach Hilfe fragen](de/getting_started_getting_help.md)
|
||||||
|
|
||||||
|
* [Breaking Changes](de/breaking_changes.md)
|
||||||
|
* [2019 Aug 30](de/ChangeLog/20190830.md)
|
||||||
|
|
||||||
|
* [FAQ](de/faq.md)
|
||||||
|
* [Häufige Fragen](de/faq_general.md)
|
||||||
|
* [Build/Kompilieren](de/faq_build.md)
|
||||||
|
* [Debugging/Troubleshooting](de/faq_debug.md)
|
||||||
|
* [Keymap](de/faq_keymap.md)
|
||||||
|
* [Treiber Installation mit Zadig](de/driver_installation_zadig.md)
|
||||||
|
|
||||||
|
* Detailierte Guides
|
||||||
|
* [Build Tools installieren](de/getting_started_build_tools.md)
|
||||||
|
* [Vagrant Guide](de/getting_started_vagrant.md)
|
||||||
|
* [Build/Compile Anleitung](de/getting_started_make_guide.md)
|
||||||
|
* [Firmware flashen](de/flashing.md)
|
||||||
|
* [Funktionalität anpassen](de/custom_quantum_functions.md)
|
||||||
|
* [Keymap Überblick](de/keymap.md)
|
||||||
|
|
||||||
|
* [Hardware](de/hardware.md)
|
||||||
|
* [AVR Prozessoren](de/hardware_avr.md)
|
||||||
|
* [Treiber](de/hardware_drivers.md)
|
||||||
|
|
||||||
|
* Referenz
|
||||||
|
* [Tastatur Richtlinien](de/hardware_keyboard_guidelines.md)
|
||||||
|
* [Konfigurations Optionen](de/config_options.md)
|
||||||
|
* [Keycodes](de/keycodes.md)
|
||||||
|
* [Coding Konventionen - C](de/coding_conventions_c.md)
|
||||||
|
* [Coding Konventionen - Python](de/coding_conventions_python.md)
|
||||||
|
* [Dokumentations Best Practices](de/documentation_best_practices.md)
|
||||||
|
* [Dokumentations Templates](de/documentation_templates.md)
|
||||||
|
* [Glossar](de/reference_glossary.md)
|
||||||
|
* [Unit Testing](de/unit_testing.md)
|
||||||
|
* [Nützliche Funktionen](de/ref_functions.md)
|
||||||
|
* [Configurator Support](de/reference_configurator_support.md)
|
||||||
|
* [info.json Format](de/reference_info_json.md)
|
||||||
|
* [Python CLI Development](de/cli_development.md)
|
||||||
|
|
||||||
|
* [Features](de/features.md)
|
||||||
|
* [Basic Keycodes](de/keycodes_basic.md)
|
||||||
|
* [US ANSI Shifted Keys](de/keycodes_us_ansi_shifted.md)
|
||||||
|
* [Quantum Keycodes](de/quantum_keycodes.md)
|
||||||
|
* [Advanced Keycodes](de/feature_advanced_keycodes.md)
|
||||||
|
* [Audio](de/feature_audio.md)
|
||||||
|
* [Auto Shift](de/feature_auto_shift.md)
|
||||||
|
* [Backlight](de/feature_backlight.md)
|
||||||
|
* [Bluetooth](de/feature_bluetooth.md)
|
||||||
|
* [Bootmagic](de/feature_bootmagic.md)
|
||||||
|
* [Combos](de/feature_combo.md)
|
||||||
|
* [Command](de/feature_command.md)
|
||||||
|
* [Debounce API](de/feature_debounce_type.md)
|
||||||
|
* [DIP Switch](de/feature_dip_switch.md)
|
||||||
|
* [Dynamic Macros](de/feature_dynamic_macros.md)
|
||||||
|
* [Encoders](de/feature_encoders.md)
|
||||||
|
* [Grave Escape](de/feature_grave_esc.md)
|
||||||
|
* [Haptic Feedback](de/feature_haptic_feedback.md)
|
||||||
|
* [HD44780 LCD Controller](de/feature_hd44780.md)
|
||||||
|
* [Key Lock](de/feature_key_lock.md)
|
||||||
|
* [Layouts](de/feature_layouts.md)
|
||||||
|
* [Leader Key](de/feature_leader_key.md)
|
||||||
|
* [LED Matrix](de/feature_led_matrix.md)
|
||||||
|
* [Macros](de/feature_macros.md)
|
||||||
|
* [Mouse Keys](de/feature_mouse_keys.md)
|
||||||
|
* [OLED Driver](de/feature_oled_driver.md)
|
||||||
|
* [One Shot Keys](de/feature_advanced_keycodes.md#one-shot-keys)
|
||||||
|
* [Pointing Device](de/feature_pointing_device.md)
|
||||||
|
* [PS/2 Mouse](de/feature_ps2_mouse.md)
|
||||||
|
* [RGB Lighting](de/feature_rgblight.md)
|
||||||
|
* [RGB Matrix](de/feature_rgb_matrix.md)
|
||||||
|
* [Space Cadet](de/feature_space_cadet.md)
|
||||||
|
* [Split Keyboard](de/feature_split_keyboard.md)
|
||||||
|
* [Stenography](de/feature_stenography.md)
|
||||||
|
* [Swap Hands](de/feature_swap_hands.md)
|
||||||
|
* [Tap Dance](de/feature_tap_dance.md)
|
||||||
|
* [Terminal](de/feature_terminal.md)
|
||||||
|
* [Thermal Printer](de/feature_thermal_printer.md)
|
||||||
|
* [Unicode](de/feature_unicode.md)
|
||||||
|
* [Userspace](de/feature_userspace.md)
|
||||||
|
* [Velocikey](de/feature_velocikey.md)
|
||||||
|
|
||||||
|
* Für Maker und Modder
|
||||||
|
* [Hand Wiring Guide](de/hand_wire.md)
|
||||||
|
* [ISP Flashing Guide](de/isp_flashing_guide.md)
|
||||||
|
* [ARM Debugging Guide](de/arm_debugging.md)
|
||||||
|
* [I2C Driver](de/i2c_driver.md)
|
||||||
|
* [GPIO Controls](de/internals_gpio_control.md)
|
||||||
|
* [Proton C Conversion](de/proton_c_conversion.md)
|
||||||
|
|
||||||
|
* Für ein tieferes Verständnis
|
||||||
|
* [Wie Tastaturen funktionieren](de/how_keyboards_work.md)
|
||||||
|
* [QMK verstehen](de/understanding_qmk.md)
|
||||||
|
|
||||||
|
* Andere Themen
|
||||||
|
* [Eclipse mit QMK](de/other_eclipse.md)
|
||||||
|
* [VSCode mit QMK](de/other_vscode.md)
|
||||||
|
* [Support](de/support.md)
|
||||||
|
* [Übersetzungen](de/translating.md)
|
||||||
|
|
||||||
|
* QMK Internals (In Progress)
|
||||||
|
* [Defines](de/internals_defines.md)
|
||||||
|
* [Input Callback Reg](de/internals_input_callback_reg.md)
|
||||||
|
* [Midi Device](de/internals_midi_device.md)
|
||||||
|
* [Midi Device Setup Process](de/internals_midi_device_setup_process.md)
|
||||||
|
* [Midi Util](de/internals_midi_util.md)
|
||||||
|
* [Send Functions](de/internals_send_functions.md)
|
||||||
|
* [Sysex Tools](de/internals_sysex_tools.md)
|
169
docs/de/cli.md
Normal file
169
docs/de/cli.md
Normal file
@@ -0,0 +1,169 @@
|
|||||||
|
# QMK CLI (Kommandozeile)
|
||||||
|
|
||||||
|
Diese Seite beschreibt die Einrichtung und den Umgang mit dem QMK CLI (Kommandozeile).
|
||||||
|
|
||||||
|
# Übersicht
|
||||||
|
|
||||||
|
Die QMK CLI vereinfacht das Zusammenbauen und Arbeiten mit QMK Tastaturen. Hier findest Du wichtige Befehle, um beispielsweise das Herunterladen und Kompilieren der QMK Firmware oder das Erstellen von Tastaturbelegungen (und vieles mehr) zu erleichtern.
|
||||||
|
|
||||||
|
* [Globale CLI](#globale-cli)
|
||||||
|
* [Lokale CLI](#lokale-cli)
|
||||||
|
* [CLI-Befehle](#cli-befehle)
|
||||||
|
|
||||||
|
# System-Anforderungen
|
||||||
|
|
||||||
|
Die CLI benötigt Python 3.5 oder höher. Außerdem ist es nötig, die Packages laut [`requirements.txt`](https://github.com/qmk/qmk_firmware/blob/master/requirements.txt) zu installieren.
|
||||||
|
|
||||||
|
# Globale CLI
|
||||||
|
|
||||||
|
QMK bietet ein installierbares CLI, das Du zum Einrichten Deiner QMK Build-Umgebung verwenden kannst. Dieses ermöglicht Dir das Arbeiten mit QMK, und erleichtert das Arbeiten mit mehreren Kopien der `qmk_firmware`. Wir empfehlen, dieses CLI zu installieren und regelmäßig upzudaten.
|
||||||
|
|
||||||
|
## Installation mit Homebrew (macOS, manche Linux)
|
||||||
|
|
||||||
|
Solltest Du [Homebrew](https://brew.sh) installiert haben, kannst Du QMK per tap installieren:
|
||||||
|
|
||||||
|
```
|
||||||
|
brew tap qmk/qmk
|
||||||
|
brew install qmk
|
||||||
|
export QMK_HOME='~/qmk_firmware' # Optional: setzt den Installationsort für `qmk_firmware`
|
||||||
|
qmk setup # Dies klont `qmk/qmk_firmware` und richtet optional auch Deine Build-Umgebung ein
|
||||||
|
```
|
||||||
|
|
||||||
|
## Installation mit easy_install oder pip
|
||||||
|
|
||||||
|
Falls Du kein Homebrew hast, kannst Du QMK auch manuell installieren. Zuerst musst Du sicherstellen, dass Python 3.5 (oder höher) und pip installiert ist. Dann installiere QMK mit diesem Befehl:
|
||||||
|
|
||||||
|
```
|
||||||
|
pip3 install qmk
|
||||||
|
export QMK_HOME='~/qmk_firmware' # Optional: setzt den Installationsort für `qmk_firmware`
|
||||||
|
qmk setup # Dies klont `qmk/qmk_firmware` und richtet optional auch Deine Build-Umgebung ein
|
||||||
|
```
|
||||||
|
## Installation mit git Repo
|
||||||
|
|
||||||
|
`git clone https://github.com/qmk/qmk_cli.git && cd qmk_cli && python3 setup.py install`
|
||||||
|
|
||||||
|
## Packaging für andere Betriebssysteme
|
||||||
|
|
||||||
|
Wir suchen nach Freiwilligen, die ein `qmk`-Package für weitere Betriebssysteme erstellen und pflegen. Falls Du ein Package für Dein OS erstellen möchtest, bitte befolge diese Richtlinien:
|
||||||
|
|
||||||
|
* Verwende "Best Practices" für Dein OS, sollten sie mit diesen Richtlinien in Konflikt stehen.
|
||||||
|
* Dokumentiere den Grund in einem Kommentar, wenn Du abweichen musstest.
|
||||||
|
* Installiere mit einem [virtualenv](https://virtualenv.pypa.io/en/latest/).
|
||||||
|
* Weise den User an, die Umgebungs-Variable `QMK_HOME` zu setzen, um die Firmware-Quelle anders einzustellen als `~/qmk_firmware`.
|
||||||
|
|
||||||
|
# Lokale CLI
|
||||||
|
|
||||||
|
Wenn Du die globale CLI nicht verwenden möchtest, beinhaltet `qmk_firmware` auch eine lokale CLI. Du kannst sie hier finden: `qmk_firmware/bin/qmk`. Du kannst den `qmk`-Befehl aus irgendeinem Datei-Verzeichnis ausführen und es wird immer auf dieser Kopie von `qmk_firmware` arbeiten.
|
||||||
|
|
||||||
|
**Beispiel**:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ ~/qmk_firmware/bin/qmk hello
|
||||||
|
Ψ Hello, World!
|
||||||
|
```
|
||||||
|
|
||||||
|
## Einschränkungen der lokalen CLI
|
||||||
|
|
||||||
|
Hier ein Vergleich mit der globalen CLI:
|
||||||
|
|
||||||
|
* Die lokale CLI unterstützt kein `qmk setup` oder `qmk clone`.
|
||||||
|
* Die lokale CLI arbeitet immer innerhalb der selben `qmk_firmware`-Verzeichnisstruktur, auch wenn Du mehrere Repositories geklont hast.
|
||||||
|
* Die lokale CLI läuft nicht in einer virtualenv. Daher ist es möglich, dass Abhängigkeiten (dependencies) miteinander in Konflikt kommen/stehen.
|
||||||
|
|
||||||
|
# CLI-Befehle
|
||||||
|
|
||||||
|
## `qmk compile`
|
||||||
|
|
||||||
|
Dieser Befehl erlaubt es dir, die Firmware - aus egal welchem Datei-Verzeichnis - zu compilen. Du kannst JSON-Exporte von <https://config.qmk.fm> oder Keymaps in der Repo kompilen.
|
||||||
|
|
||||||
|
**Anwendung für Konfigurations-Exports**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk compile <configuratorExport.json>
|
||||||
|
```
|
||||||
|
|
||||||
|
**Anwendung für Keymaps**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk compile -kb <keyboard_name> -km <keymap_name>
|
||||||
|
```
|
||||||
|
|
||||||
|
## `qmk cformat`
|
||||||
|
|
||||||
|
Dieser Befehl formatiert C-Code im clang-Format. Benutze ihn ohne Argumente, um den core-Code zu formatieren, oder benutze Namen von Dateien in der CLI, um den Befehl auf bestimmte Dateien anzuwenden.
|
||||||
|
|
||||||
|
**Anwendung**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk cformat [file1] [file2] [...] [fileN]
|
||||||
|
```
|
||||||
|
|
||||||
|
## `qmk config`
|
||||||
|
|
||||||
|
Dieser Befehl konfiguriert das Verhalten von QMK. Für die volle `qmk config`-Dokumentation gehe zu [CLI-Konfiguration](cli_configuration.md).
|
||||||
|
|
||||||
|
**Anwendung**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk config [-ro] [config_token1] [config_token2] [...] [config_tokenN]
|
||||||
|
```
|
||||||
|
|
||||||
|
## `qmk docs`
|
||||||
|
|
||||||
|
Dieser Befehl startet einen lokalen HTTP-Server, den Du zum Browsen oder Verbessern der Dokumentation verwenden kannst. Der Default-Port ist 8936.
|
||||||
|
|
||||||
|
**Anwendung**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk docs [-p PORT]
|
||||||
|
```
|
||||||
|
|
||||||
|
## `qmk doctor`
|
||||||
|
|
||||||
|
Dieser Befehl untersucht Deine Umgebung und warnt Dich vor potentiellen Build- oder Flash-Problemen.
|
||||||
|
|
||||||
|
**Anwendung**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk doctor
|
||||||
|
```
|
||||||
|
|
||||||
|
## `qmk list-keyboards`
|
||||||
|
|
||||||
|
Dieser Befehl listet alle zurzeit in `qmk_firmware` definierten Tastaturen/Keyboards auf.
|
||||||
|
|
||||||
|
**Anwendung**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk list-keyboards
|
||||||
|
```
|
||||||
|
|
||||||
|
## `qmk new-keymap`
|
||||||
|
|
||||||
|
Dieser Befehl erstellt eine neue Keymap basierend auf einer existierenden Standard-Keymap eines bestimmten Keyboards.
|
||||||
|
|
||||||
|
**Anwendung**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk new-keymap [-kb KEYBOARD] [-km KEYMAP]
|
||||||
|
```
|
||||||
|
|
||||||
|
## `qmk pyformat`
|
||||||
|
|
||||||
|
Dieser Befehl formatiert Python-Code in `qmk_firmware`.
|
||||||
|
|
||||||
|
**Anwendung**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk pyformat
|
||||||
|
```
|
||||||
|
|
||||||
|
## `qmk pytest`
|
||||||
|
|
||||||
|
Dieser Befehl führt die Python Test Suite aus. Wenn Du Python-Code veränderst, solltest Du sicherstellen, dass der Test erfolgreich ausgeführt wurde.
|
||||||
|
|
||||||
|
**Anwendung**:
|
||||||
|
|
||||||
|
```
|
||||||
|
qmk pytest
|
||||||
|
```
|
47
docs/de/driver_installation_zadig.md
Normal file
47
docs/de/driver_installation_zadig.md
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
# Bootloader Treiber Installation mit Zadig
|
||||||
|
|
||||||
|
QMK erscheint für den Host als normales HID Eingabegerät und benötigt deshalb keine zusätzlichen Treiber. Der Bootloader, den Du für das Flashen der Firmware benötigst, jedoch meistens schon.
|
||||||
|
|
||||||
|
Hierzu gibt es zwei Ausnahmen: den Caterina Bootloader, meistens auf Pro Micros, sowie den HalfKay Bootloader auf PJRC Teensys. Diese erscheinen als serieller Port und als generisches HID Gerät und benötigen keine Treiber.
|
||||||
|
|
||||||
|
Wir empfehlen deshalb [Zadig](https://zadig.akeo.ie/). Wenn Du die Entwicklungsumgebung mit MSYS2 oder WSL installiert hast, wird dich dass `qmk_install.sh` Skript gefragt haben, ob es die Treiber für dich installieren sollte.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Versetze deine Tastatur in den Bootloader-Modus, entweder durch Betätigung des physischen `RESET` Schalters - meist auf der Unterseite der Platine - oder durch das Auslösen des Key-Codes `RESET` bzw. `KC_RESET` (sollte in der zur Tastatur gehörigen `keycode.c` zu entnehmen sein). Sollte deine Tastatur weder noch besitzen, versuche es damit die `Escape`-Taste oder `Leertaste + B` zu halten während Du die Tastatur mit dem PC verbindest (Siehe auch [Bootmagic](de/feature_bootmagic.md) für weitere Details). Ein paar Tastaturen benutzen das [Command](de/feature_command.md)-Feature an Stelle von Bootmagic; in diesem Fall kannst du mit den Tastenkombinationen `linkes Shift + rechtes Shift + B` oder `linkes Shift + rechtes Shift + Escape` zu jeder Zeit in den Bootloader wechseln solange die Tastatur verbunden ist.
|
||||||
|
|
||||||
|
Eingie Tastaturen haben u.U. spezielle Anweisungen um in den Bootloader-Modus zu gelangen. Zum Beispiel kann die [Bootmagic-Lite](de/feature_bootmagic.md#bootmagic-lite)-Taste (default: Escape) auf eine andere Taste gemappt sein; oder die magische Kombination (default: linkes Shift+rechtes Shift) verwendet anstatt Shift die STRG-Tasten. Die zur Tastatur gehörige README sollte dir Aufschluss darüber geben wie der Bootloader-Modus ausgelöst werden kann wenn Du unsicher bist.
|
||||||
|
|
||||||
|
Um ein Gerät mit USBaspLoader in den Bootloader-Modus zu versetzen, halte `BOOT` gedrückt während Du den `RESET`-Knopf drückst.
|
||||||
|
Alternativ, halte `BOOT` gedrückt während Du das USB-Kabel einsteckst.
|
||||||
|
|
||||||
|
Zadig sollte das Bootloader-Gerät automatisch erkennen. Manchmal musst Du zusätzlich noch **Options → List All Devices** auswählen.
|
||||||
|
|
||||||
|
- Tastaturen mit Atmel AVR MCUs sollten als `ATm32U4DFU` (oder ähnlich) angezeigt werden, mit der Vendor ID `03EB`.
|
||||||
|
- USBasp werden als `USBasp` angezeigt, mit VID/PID `16C0:05DC`.
|
||||||
|
- Tastaturen AVR controller und dem QMK-DFU Bootloader haben den namen `<Tastatur Name> Bootloader` und die VID `03EB`.
|
||||||
|
- Die meisten ARM Tastaturen werden als `STM32 BOOTLOADER` angezeigt, mit VID/PID `0483:DF11`.
|
||||||
|
|
||||||
|
!> Sollte Zadig ein oder mehrere Geräte mit `HidUsb`-Treiber anzeigen, dann ist deine Tastatur wahrscheinlich nicht im Bootloader-Modus. Der Pfeil wird orange eingefärbt sein und Du wirst nach einer Bestätigung gefragt um Veränderungen am System vorzunehmen. In diesem Fall **fahre nicht fort**!
|
||||||
|
|
||||||
|
Wenn der Pfeil grün angezeigt wird, wähle den Treiber aus und klicke auf **Treiber installieren**. Der `libusb-win32`-Treiber sollte gewöhnlich für AVR verwendet werden und `WinUSB` für ARM. Sollte es danach noch nicht möglich sein die Tastatur zu flashen, versuche es mit einem anderen Treiber. Für USBaspLoader Geräte, die über die Befehlszeile mit MSYS2 geflasht werden, wird der `libusbk`-Treiber empfohlen. Ansonsten sollte `libusb-win32` funktionieren wenn die QMK Toolbox verwendet wird.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Entferne nun deine Tastatur und verbinde sie erneut um sicherzugehen dass der neue Treiber erfolgreich installiert wurde. Wenn Du QMK Toolbox benutzt, starte die Anwendung zur Sicherheit einmal neu, da Veränderungen am Treiber manchmal nicht richtig erkannt werden. Wenn dies immer noch nicht erfolgreich war hilft es an dieser Stelle manchmal ein Neustart des Computers.
|
||||||
|
|
||||||
|
## Wiederherstellung einer Installation für ein falsches Gerät
|
||||||
|
|
||||||
|
Wenn Du feststellst dass Du anschließend auf deiner Tastatur nicht mehr tippen kannst, ist etwas bei der Installation schief gelaufen. Ein häufiger Fehler ist es dass die Tastatur nicht im Bootloader-Modus war und stattdessen der Treiber für das HID-Gerät ersetzt wurde. Dies kannst Du einfach mit Zadig überprüfen, eine funktionierende Tastatur verwendet als Treiber `HidUsb` auf allen Interfaces .
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Öffne den Geräte-Manager und suche nach einem Gerät das wie deine Tastatur aussieht.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Rechtsklick und **Gerät deinstallieren** anklicken. Bitte gehe sicher dass in diesem Schritt auch **Treibersoftware für dieses Gerät löschen** markiert ist.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Klick **Aktion → Suche nach veränderter Hardware**. Nun solltest Du wieder in der Lage sein normal zu tippen. Vergewissere dich mit Hilfe von Zadig dass die Tastatur nun `HidUsb` als Treiber verwendet. Wenn dies der Fall ist sollte wieder alles funktionieren.
|
22
docs/de/newbs.md
Normal file
22
docs/de/newbs.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# Anleitung für absolute Beginner
|
||||||
|
QMK ist eine mächtige Open Source Firmware für mechanische Tastaturen. Mit QMK kannst Du deine Tastatur sowohl sehr einfach als auch sehr umfangreich anpassen. Menschen unterschiedlichen Wissensstandes - vom kompletten Anfänger bis zum erfahrenen Programmierer - haben ihre Tastaturen mit QMK erfolgreich auf ihre persönlichen Bedürfnisse angepasst. Diese Anleitung soll Dir unabhängig von deinen Vorkenntnissen dabei helfen dies ebenfalls zu bewältigen.
|
||||||
|
|
||||||
|
Bist Du unsicher ob deine Tastatur QMK unterstützt? Wenn es eine mechanische Tastatur ist, die Du selbst gebaut hast, stehen deine Chancen gut. Wir unterstützen eine [Vielzahl](https://qmk.fm/keyboards/) selbst gebauter Tastaturen, sodass selbst wenn deine jetzige Tastatur nicht unterstützt wird Du keine Probleme haben solltest eine für deine Anforderungen zu finden.
|
||||||
|
|
||||||
|
## Übersicht
|
||||||
|
|
||||||
|
Diese Anleitung ist in 7 Abschnitte unterteilt:
|
||||||
|
|
||||||
|
* [Die ersten Schritte](newbs_getting_started.md)
|
||||||
|
* [Die erste Firmware auf der Kommandozeile erzeugen](newbs_building_firmware.md)
|
||||||
|
* [Die erste Firmware mit der Online GUI erzeugen](newbs_building_firmware_configurator.md)
|
||||||
|
* [Firmware flashen](newbs_flashing.md)
|
||||||
|
* [Testen und Debuggen](newbs_testing_debugging.md)
|
||||||
|
* [Git Leitfaden](newbs_best_practices.md)
|
||||||
|
* [Weitere hilfreiche Ressourcen für Anfänger](newbs_learn_more_resources.md)
|
||||||
|
|
||||||
|
Diese Anleitung richtet sich an Personen, die vorher noch nie Software kompiliert haben. Die Entscheidungen und Empfehlungen basieren auf dieser Grundannahme. Es gibt unterschiedliche Herangehensweisen für viele der Prozeduren und wir unterstützen die meisten Alternativen. Wenn Du mal nicht weiter weißt oder Dir nicht sicher bist, wie Du an ein Problem herangehen sollst, kannst Du uns gerne [um Hilfe bitten](getting_started_getting_help.md).
|
||||||
|
|
||||||
|
## Weitere Ressourcen
|
||||||
|
|
||||||
|
* [Thomas Baart's QMK Basics Blog](https://thomasbaart.nl/category/mechanical-keyboards/firmware/qmk/qmk-basics/) – Ein äußerst hilfreicher Blog eines Community-Mitglieds, der einige Grundlagen der QMK-Firmware aus der Sicht des Benutzers erklärt (auf Englisch).
|
78
docs/de/newbs_building_firmware.md
Normal file
78
docs/de/newbs_building_firmware.md
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
# Eine eigene Firmware erstellen
|
||||||
|
|
||||||
|
Nachdem Du nun eine funktionierende Entwicklungsumgebung aufgesetzt hast, bist Du nun bereit, deine eigene Firmware zu erstellen. Dieses Sektion des Guides wird zwischen drei Programmen hin- und herwechseln: deinem Dateimanager, deinem Texteditor und der Befehlszeile. Lasse diese drei Fenster geöffnet, bis Du fertig und zufrieden mit deiner Tastatur-Firmware bist.
|
||||||
|
|
||||||
|
Solltest Du die Befehlszeile zwischenzeitlich geschlossen haben, vergiss nicht wieder in das richtige Verzeichnis zu navigieren, benutze dazu den Befehl `cd qmk_firmware`.
|
||||||
|
|
||||||
|
## Navigiere in deinen Keymap Ordner
|
||||||
|
|
||||||
|
Beginne damit, in das `keymaps` Verzeichnis für deine Tastatur zu navigieren.
|
||||||
|
|
||||||
|
Wenn Du macOS oder Windows benutzt, kannst Du einfach in das keymaps Verzeichnis wechseln.
|
||||||
|
|
||||||
|
?> macOS:<br>
|
||||||
|
open keyboards/<keyboard_folder>/keymaps
|
||||||
|
|
||||||
|
?> Windows:<br>
|
||||||
|
start .\\keyboards\\<keyboard_folder>\\keymaps
|
||||||
|
|
||||||
|
## Eine Kopie der `default` Tastaturbelegung erstellen
|
||||||
|
|
||||||
|
Wenn Du den `keymaps` Ordner geöffnet hast, solltest Du zuerst eine Kopie des `default` Verzeichnisses erstellen. Wir empfehlen dafür deinen GitHub Benutzernamen zu verweden, aber Du kannst auch jeden anderen Namen verwenden solange er nur aus Kleinbuchstaben, Zahlen und Unterstrichen besteht.
|
||||||
|
|
||||||
|
Um den Prozess zu automatisieren kannst Du dazu auch das Skript `new_keymap.sh` verwenden.
|
||||||
|
|
||||||
|
Navigiere dazu in das `qmk_firmware/util` Verzeichnis und gib folgenden Befehl ein:
|
||||||
|
|
||||||
|
```
|
||||||
|
./new_keymap.sh <keyboard path> <username>
|
||||||
|
```
|
||||||
|
|
||||||
|
Um zum Beispiel den Benutzernamen John für die Tastaturbelegung eines 1up60hse zu verwenden, würdest Du Folgendes eingeben:
|
||||||
|
|
||||||
|
```
|
||||||
|
./new_keymap.sh 1upkeyboards/1up60hse john
|
||||||
|
```
|
||||||
|
|
||||||
|
## Öffne `keymap.c` in deinem bevorzugtem Text Editor
|
||||||
|
|
||||||
|
Öffne deine `keymap.c`. In dieser Datei findest Du die Strukturen, die das Verhalten deiner Tastatur bestimmen. Oben in der `keymap.c` befinden sich Definitionen (defines) und Aufzählungen (enums), die die Tastaturbelegung leserlicher machen sollen. Weiter unten wirst Du eine Zeile finden, die wie folgt aussieht:
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
Diese Zeile markiert den Anfang der Liste der Ebenen (Layers). Darunter befinden sich Zeilen die entweder `LAYOUT` oder `KEYMAP` enthalten, das deutet auf den Start einer Ebene hin. Danach folgt eine Liste von Tasten, die dieser Ebene zugewiesen sind.
|
||||||
|
|
||||||
|
!> Beim Bearbeiten einer Tastaturbelegung solltest Du darauf achten, keine Kommata hinzuzufügen oder zu entfernen. Ansonsten kann dies dazu führen, dass deine Firmware nicht mehr kompiliert und es ist nicht immer einfach festzustellen, wo genau ein Komma zuviel oder zu wenig ist. Die letzte Zeile hat am Ende kein Komma, die Zeilen davor jedoch schon.
|
||||||
|
|
||||||
|
## Personalisiere die Tastaturbelegung nach deinen Wünschen
|
||||||
|
|
||||||
|
Wie Du diesen Schritt abschließt ist vollkommen Dir überlassen. Ändere die eine Sache die Dich stört oder verändere alles von Grund auf. Du kannst Ebenen entfernen die Du nicht brauchst oder Neue hinzufügen, bis zu 32 Stück. Die folgende Dokumentation verrät Dir was Du hier alles definieren kannst:
|
||||||
|
|
||||||
|
* [Keycodes](de/keycodes.md)
|
||||||
|
* [Features](de/features.md)
|
||||||
|
* [FAQ](de/faq.md)
|
||||||
|
|
||||||
|
?> Während Du langsam ein Gefühl dafür kriegst wie Keymaps funktionieren, solltest Du darauf achten nicht zuviel auf einmal zu verändern. Größere Änderungen machen es schwieriger, Probleme zu debuggen.
|
||||||
|
|
||||||
|
## Deine Firmware erzeugen
|
||||||
|
|
||||||
|
Wenn Du damit fertig bist, deine Tastaturbelegung anzupassen, musst Du noch die Firmware erzeugen. Öffne dazu wieder die Befehlszeile und führe folgenden Befehl aus:
|
||||||
|
|
||||||
|
make <my_keyboard>:<my_keymap>
|
||||||
|
|
||||||
|
Wenn deine Tastaturbelegung z.B. "xyverz" heißt und Du die Belegung für ein rev5 planck erzeugen möchtest, lautet der Befehl:
|
||||||
|
|
||||||
|
make planck/rev5:xyverz
|
||||||
|
|
||||||
|
Während des Kompiliervorgangs wird viel Text auf dem Bildschirm ausgegeben. Es sollte am Ende mit etwas enden das ungefähr so aussieht:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/planck_rev5_xyverz.elf [OK]
|
||||||
|
Creating load file for flashing: .build/planck_rev5_xyverz.hex [OK]
|
||||||
|
Copying planck_rev5_xyverz.hex to qmk_firmware folder [OK]
|
||||||
|
Checking file size of planck_rev5_xyverz.hex [OK]
|
||||||
|
* File size is fine - 18392/28672
|
||||||
|
```
|
||||||
|
|
||||||
|
## Deine Firmware flashen
|
||||||
|
Bitte fahre mit [Firmware flashen](de/newbs_flashing.md) fort, um zu erfahren, wie Du deine neue Firmware auf deine Tastatur flashen kannst.
|
369
docs/de/newbs_flashing.md
Normal file
369
docs/de/newbs_flashing.md
Normal file
@@ -0,0 +1,369 @@
|
|||||||
|
# Deine Tastatur flashen
|
||||||
|
|
||||||
|
Nachdem deine Firmware nun fertig ist musst Du Sie noch auf deine Tastatur flashen.
|
||||||
|
|
||||||
|
## Flash-Vorgang mit QMK Toolbox
|
||||||
|
|
||||||
|
Der einfachste Weg deine Tastatur zu flashen ist mit Hilfe der [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases)
|
||||||
|
|
||||||
|
Leider ist die QMK Toolbox derzeit nur für Windows und macOS verfügbar. Wenn Du Linux benutzt (oder es vorziehst die Firmware mit der Kommandozeile zu flashen) solltest Du die Methode benutzen die [hier](de/newbs_flashing.md#tastatur-mit-der-befehlszeile-flashen) beschrieben wird.
|
||||||
|
|
||||||
|
### Lade die Datei in QMK Toolbox
|
||||||
|
|
||||||
|
Beginne damit die Datei in der QMK Toolbox Anwendung zu laden. Versichere dich dass Du die Firmware-Datei im Finder oder Explorer findest. Deine Tastatur-Firmware sollte entweder vom Typ `.hex` oder `.bin` sein sein. QMK sollte die für deine Tastatur entsprechende Datei automatisch in das Root-Verzeichnis (normalerweise `qmk_firmware`) kopieren.
|
||||||
|
|
||||||
|
?> Wenn Du Windows oder macOS benutzt kannst Du mit folgenden Befehlen ganz einfach das aktuelle Firmware-Verzeichnis im Explorer oder Finder öffnen.
|
||||||
|
|
||||||
|
#### Windows:
|
||||||
|
|
||||||
|
``` start . ```
|
||||||
|
|
||||||
|
#### macOS:
|
||||||
|
|
||||||
|
``` open . ```
|
||||||
|
|
||||||
|
Die Firmware-Dateien folgen dabei immer folgendem Schema:
|
||||||
|
|
||||||
|
<meine_Tastatur>_<meine_Tastaturbelegung>.{bin,hex}
|
||||||
|
|
||||||
|
Zum Beispiel würde ein `planck/rev5` mit der `default` Tastaturbelegung folgenden Dateinamen haben:
|
||||||
|
|
||||||
|
planck_rev5_default.hex
|
||||||
|
|
||||||
|
Wenn Du die Firmware-Datei gefunden hast kannst Du sie in das "Local file" ("Lokale Datei") Feld in der QMK Toolbox ziehen, alternativ kannst Du auf "Öffnen" klicken und in das Verzeichnis navigieren indem sich die Firmware-Datei befindet.
|
||||||
|
|
||||||
|
### Die Tastatur in den DFU (Bootloader) Modus versetzen
|
||||||
|
|
||||||
|
Um deine angepasste Firmware auf deine Tastatur zu flashen musst Du diese erst in einen speziellen "flashing"-Modus versetzen. Während die Tastatur in diesem Modus ist kannst Du nicht auf ihr tippen oder sie wie gewohnt als Tastatur benutzen. Es ist wichtig dass der flashing-Prozesses nicht unterbrochen oder die Tastatur ausstöpselst wird, da der Vorgang ansonst wiederholt werden muss.
|
||||||
|
|
||||||
|
Verschiedene Tastaturen verwenden unterschiedliche Methoden um in den Bootloader-Modus zu gelangen. Wenn dein PCB im Moment QMK oder TMK verwendet und Du keine spezifischen Anweisungen erhalten hast probiere die folgenden Methoden in dieser Reihenfolge:
|
||||||
|
|
||||||
|
* Halte beide Shift-Tasten und drücke `Pause`
|
||||||
|
* Halte beide Shift-Tasten und drücke `B`
|
||||||
|
* Entferne deine Tastatur vom Computer, drücke gleichzeitig `Leertaste` und `B`, verbinde die Tastatur wieder mit dem Computer und warte eine Sekunde bevor Du die Tasten wieder loslässt.
|
||||||
|
* Drücke den physischen `RESET`-Knopf auf der Unterseite des PCBs
|
||||||
|
* Suche auf dem PCB den Pin mit dem Label `RESET`, verbinde diesen mit deinem GND-Pin
|
||||||
|
* Suche auf dem PCB den Pin mit dem Label `BOOT0`, verbinde diesen mit GND und schließe die Tastatur wieder an den PC an TODO: DIS IS DANGEROUS!!
|
||||||
|
|
||||||
|
Wenn Du damit erfolgreich warst solltest Du in der QMK Toolbox eine Nachricht sehen die ungefähr so aussieht:
|
||||||
|
|
||||||
|
```
|
||||||
|
*** Clueboard - Clueboard 66% HotSwap disconnected -- 0xC1ED:0x2390
|
||||||
|
*** DFU device connected
|
||||||
|
```
|
||||||
|
|
||||||
|
### Tastatur flashen
|
||||||
|
|
||||||
|
Klicke auf den `Flash`-Knopf in der QMK Toolbox. Die Ausgabe wird ungefähr so aussehen:
|
||||||
|
|
||||||
|
```
|
||||||
|
*** Clueboard - Clueboard 66% HotSwap disconnected -- 0xC1ED:0x2390
|
||||||
|
*** DFU device connected
|
||||||
|
*** Attempting to flash, please don't remove device
|
||||||
|
>>> dfu-programmer atmega32u4 erase --force
|
||||||
|
Erasing flash... Success
|
||||||
|
Checking memory from 0x0 to 0x6FFF... Empty.
|
||||||
|
>>> dfu-programmer atmega32u4 flash qmk_firmware/clueboard_66_hotswap_skully.hex
|
||||||
|
Checking memory from 0x0 to 0x55FF... Empty.
|
||||||
|
0% 100% Programming 0x5600 bytes...
|
||||||
|
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
|
||||||
|
0% 100% Reading 0x7000 bytes...
|
||||||
|
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
|
||||||
|
Validating... Success
|
||||||
|
0x5600 bytes written into 0x7000 bytes memory (76.79%).
|
||||||
|
>>> dfu-programmer atmega32u4 reset
|
||||||
|
|
||||||
|
*** DFU device disconnected
|
||||||
|
*** Clueboard - Clueboard 66% HotSwap connected -- 0xC1ED:0x2390
|
||||||
|
```
|
||||||
|
|
||||||
|
## Tastatur mit der Befehlszeile flashen
|
||||||
|
|
||||||
|
Zunächst solltest Du versuchen herauszufinden welchen Bootlader deine Tastatur benutzt. Diese vier Bootloader sind am Weitesten verbreitet:
|
||||||
|
|
||||||
|
| MCU | Bootloader |
|
||||||
|
| --- | --- |
|
||||||
|
| Pro-Micro und Klone | CATERINA |
|
||||||
|
| Teensy | Halfkay |
|
||||||
|
| OLKB Boards | QMK-DFU |
|
||||||
|
| sonstige atmega32u4 | DFU |
|
||||||
|
|
||||||
|
Auf der Seite [Flash Anleitung und Bootloader Informationen](de/flashing.md) kannst Du mehr über das Thema erfahren.
|
||||||
|
|
||||||
|
Wenn Du weißt welchen Bootloader deine Tastaur verwendet, kannst Du diese Information bei der Kompilation hinzufügen um den Flash-Vorgang mit dem `make`-Befehl zu automatisieren.
|
||||||
|
```rules.mk
|
||||||
|
...
|
||||||
|
BOOTLOADER = caterina
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
### DFU
|
||||||
|
|
||||||
|
Wenn Du den DFU-Bootloader verwendest und Du bereit bist deine Firmware zu kompilieren und zu flashen, öffne ein Befehlszeile und führe folgenden Befehl aus:
|
||||||
|
|
||||||
|
make <meine_Tastatur>:<meine_Tastaturbelegung>:dfu
|
||||||
|
|
||||||
|
Wenn deine Tastaturbelegung z.B den Namen "xzverz" trägt und Du ein rev5 planck flashen möchtest sähe der Befehl wie folgt aus:
|
||||||
|
|
||||||
|
make planck/rev5:xyverz:dfu
|
||||||
|
|
||||||
|
|
||||||
|
Nachdem der Vorgang abgeschlossen ist sollte die Ausgabe ungefähr so aussehen:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/planck_rev5_xyverz.elf [OK]
|
||||||
|
Creating load file for flashing: .build/planck_rev5_xyverz.hex [OK]
|
||||||
|
Copying planck_rev5_xyverz.hex to qmk_firmware folder [OK]
|
||||||
|
Checking file size of planck_rev5_xyverz.hex
|
||||||
|
* File size is fine - 18574/28672
|
||||||
|
```
|
||||||
|
|
||||||
|
Wenn dieser Punkt erreicht ist wird das Build-Skript alle 5 Sekunden nach einem DFU Bootloader suchen. Dieser Vorgang wird wiederholt bis er erfolgreich ist oder abgebrochen wird.
|
||||||
|
|
||||||
|
dfu-programmer: no device present.
|
||||||
|
Error: Bootloader not found. Trying again in 5s.
|
||||||
|
|
||||||
|
Wenn diese Nachricht erscheint konnte das Build-Skript den Controller nicht eigenständig in den DFU Modus versetzen (z.B. weil der Modus in rules.mk falsch gesetzt wurde oder ein Problem mit der Hardware besteht), wenn dies eintritt musst Du die oben beschrieben Schritte benutzen um den Controller in den DFU Modus zu versetzen. Danach sollte die Ausgabe ungefähr so aussehen:
|
||||||
|
|
||||||
|
```
|
||||||
|
*** Attempting to flash, please don't remove device
|
||||||
|
>>> dfu-programmer atmega32u4 erase --force
|
||||||
|
Erasing flash... Success
|
||||||
|
Checking memory from 0x0 to 0x6FFF... Empty.
|
||||||
|
>>> dfu-programmer atmega32u4 flash qmk_firmware/clueboard_66_hotswap_skully.hex
|
||||||
|
Checking memory from 0x0 to 0x55FF... Empty.
|
||||||
|
0% 100% Programming 0x5600 bytes...
|
||||||
|
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
|
||||||
|
0% 100% Reading 0x7000 bytes...
|
||||||
|
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
|
||||||
|
Validating... Success
|
||||||
|
0x5600 bytes written into 0x7000 bytes memory (76.79%).
|
||||||
|
>>> dfu-programmer atmega32u4 reset
|
||||||
|
```
|
||||||
|
|
||||||
|
?> Wenn Du mit diesem Schritt Probleme hast (z.B. `dfu-programmer: no device present`) hilft dir hoffentlich der Abschnitt [Häufig gestellte Fragen (Build/Kompilieren)](de/faq_build.md).
|
||||||
|
|
||||||
|
#### DFU Befehle
|
||||||
|
|
||||||
|
Es gibt verschiedene DFU Befehle um die Firmware auf ein DFU Gerät zu flashen:
|
||||||
|
|
||||||
|
* `:dfu` - Dies ist die default Option. Es wird gecheckt ob ein DFU Gerät verfügbar ist, ist dies der Fall wird die Firmware geflasht. Dieser Check wird alle 5 Sekunden ausgeführt bis ein DFU Gerät erkannt wird.
|
||||||
|
* `:dfu-ee` - Der Flash-Vorgang benutzt eine `.eep` Datei anstatt einer `.hex` Datei. Dies ist eher unüblich.
|
||||||
|
* `:dfu-split-left` - Dies flasht die Firmware wie gewohnt (`:dfu`). Allerdings nur die "linke Seite" der EEPROM für geteilte Tastaturen. _Dies ist ideal für auf Elite C basierenden geteilten Tastaturen._
|
||||||
|
* `:dfu-split-right` - Dies flasht die Firmware wie gewohnt (`:dfu`). Allerdings nur die "rechte Seite" der EEPROM für geteilte Tastaturen. _Dies ist ideal für auf Elite C basierenden geteilten Tastaturen._
|
||||||
|
|
||||||
|
|
||||||
|
### Caterina
|
||||||
|
Für Arduinos und andere ProMicro Klone (z.B. SparkFun ProMicro), wenn Du bereit bist zu kompilieren und die Tastatur zu flashen, öffne ein Befehlszeilen-Fenster und führe den Build-Befehl aus:
|
||||||
|
|
||||||
|
make <meine_Tastatur>:<meine_Tastaturbelegung>:avrdude
|
||||||
|
|
||||||
|
Wenn deine Tastaturbelegung zum Beispiel den Namen "xyverz" hat und Du eine Tastaturbelegung für ein "rev2 Lets Split" erzeugen möchtest, lautet der Befehl dafür:
|
||||||
|
|
||||||
|
make lets_split/rev2:xyverz:avrdude
|
||||||
|
|
||||||
|
Nachdem die Kompilation abgeschlossen ist sollte die Ausgabe ungefähr so aussehen:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/lets_split_rev2_xyverz.elf [OK]
|
||||||
|
Creating load file for flashing: .build/lets_split_rev2_xyverz.hex [OK]
|
||||||
|
Checking file size of lets_split_rev2_xyverz.hex [OK]
|
||||||
|
* File size is fine - 27938/28672
|
||||||
|
Detecting USB port, reset your controller now..............
|
||||||
|
```
|
||||||
|
|
||||||
|
Nun wird die Tastatur automatisch zurückgesetzt und das Skript wird die Firmware flashen sobald es den Bootloader erkennt. Die Ausgabe sollte ungefähr so aussehen:
|
||||||
|
|
||||||
|
```
|
||||||
|
Detected controller on USB port at /dev/ttyS15
|
||||||
|
|
||||||
|
Connecting to programmer: .
|
||||||
|
Found programmer: Id = "CATERIN"; type = S
|
||||||
|
Software Version = 1.0; No Hardware Version given.
|
||||||
|
Programmer supports auto addr increment.
|
||||||
|
Programmer supports buffered memory access with buffersize=128 bytes.
|
||||||
|
|
||||||
|
Programmer supports the following devices:
|
||||||
|
Device code: 0x44
|
||||||
|
|
||||||
|
avrdude.exe: AVR device initialized and ready to accept instructions
|
||||||
|
|
||||||
|
Reading | ################################################## | 100% 0.00s
|
||||||
|
|
||||||
|
avrdude.exe: Device signature = 0x1e9587 (probably m32u4)
|
||||||
|
avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
|
||||||
|
To disable this feature, specify the -D option.
|
||||||
|
avrdude.exe: erasing chip
|
||||||
|
avrdude.exe: reading input file "./.build/lets_split_rev2_xyverz.hex"
|
||||||
|
avrdude.exe: input file ./.build/lets_split_rev2_xyverz.hex auto detected as Intel Hex
|
||||||
|
avrdude.exe: writing flash (27938 bytes):
|
||||||
|
|
||||||
|
Writing | ################################################## | 100% 2.40s
|
||||||
|
|
||||||
|
avrdude.exe: 27938 bytes of flash written
|
||||||
|
avrdude.exe: verifying flash memory against ./.build/lets_split_rev2_xyverz.hex:
|
||||||
|
avrdude.exe: load data flash data from input file ./.build/lets_split_rev2_xyverz.hex:
|
||||||
|
avrdude.exe: input file ./.build/lets_split_rev2_xyverz.hex auto detected as Intel Hex
|
||||||
|
avrdude.exe: input file ./.build/lets_split_rev2_xyverz.hex contains 27938 bytes
|
||||||
|
avrdude.exe: reading on-chip flash data:
|
||||||
|
|
||||||
|
Reading | ################################################## | 100% 0.43s
|
||||||
|
|
||||||
|
avrdude.exe: verifying ...
|
||||||
|
avrdude.exe: 27938 bytes of flash verified
|
||||||
|
|
||||||
|
avrdude.exe: safemode: Fuses OK (E:CB, H:D8, L:FF)
|
||||||
|
|
||||||
|
avrdude.exe done. Thank you.
|
||||||
|
```
|
||||||
|
Sollten dabei Probleme auftreten (z.B. "Zugriff verweigert" / "Permission denied") muss der Make-Befehl mit privilegierten Berechtigungen ausgeführt werden:
|
||||||
|
|
||||||
|
sudo make <meine_Tastatur>:<meine_Tastaturbelegung>:avrdude
|
||||||
|
|
||||||
|
Zusätzlich ist es möglich mehrere Tastaturen in einem Vorgang zu flashen:
|
||||||
|
|
||||||
|
make <keyboard>:<keymap>:avrdude-loop
|
||||||
|
|
||||||
|
Du kannst den Loop mit STRG + C unterbrechen sobald der Vorgang abgeschlossen ist. Die korrekte Tastenkombination kann abweichen und hängt vom Betriebssystem ab.
|
||||||
|
|
||||||
|
|
||||||
|
### HalfKay
|
||||||
|
|
||||||
|
Für Tastaturen mit PJRC Controllern (Teensy's), wenn Du bereit bist zu kompilieren und die Tastatur zu flashen, öffne ein Befehlszeilen-Fenster und führe den Build-Befehl aus:
|
||||||
|
|
||||||
|
make <meine_Tastatur>:<meine_Tastaturbelegung>:teensy
|
||||||
|
|
||||||
|
Wenn deine Tastaturbelegung zum Beispiel den Namen "xyverz" hat und Du eine Tastaturbelegung für ein Ergodox oder Ergodox EZ erzeugen möchtest, lautet der Befehl dafür:
|
||||||
|
|
||||||
|
make ergodox_ez:xyverz:teensy
|
||||||
|
|
||||||
|
Nachdem die Kompilation abgeschlossen ist sollte die Ausgabe ungefähr so aussehen:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/ergodox_ez_xyverz.elf [OK]
|
||||||
|
Creating load file for flashing: .build/ergodox_ez_xyverz.hex [OK]
|
||||||
|
Checking file size of ergodox_ez_xyverz.hex [OK]
|
||||||
|
* File size is fine - 25584/32256
|
||||||
|
Teensy Loader, Command Line, Version 2.1
|
||||||
|
Read "./.build/ergodox_ez_xyverz.hex": 25584 bytes, 79.3% usage
|
||||||
|
Waiting for Teensy device...
|
||||||
|
(hint: press the reset button)
|
||||||
|
```
|
||||||
|
|
||||||
|
An diesem Punkt solltest Du die Tastatur zurücksetzen um den Flash-Vorgang auszulösen. Wenn dies abgeschlossen ist sollte die Ausgabe ungefähr so aussehen:
|
||||||
|
|
||||||
|
```
|
||||||
|
Found HalfKay Bootloader
|
||||||
|
Read "./.build/ergodox_ez_xyverz.hex": 28532 bytes, 88.5% usage
|
||||||
|
Programming.............................................................
|
||||||
|
...................................................
|
||||||
|
Booting
|
||||||
|
```
|
||||||
|
|
||||||
|
### BootloadHID
|
||||||
|
|
||||||
|
Für auf Bootmapper Client(BMC)/bootloaderHID/ATmega32A basierende Tastaturen, wenn Du bereit bist zu kompilieren und die Tastatur zu flashen, öffne ein Befehlszeilen-Fenster und führe den Build-Befehl aus:
|
||||||
|
|
||||||
|
make <meine_Tastatur>:<meine_Tastaturbelegung>:bootloaderHID
|
||||||
|
|
||||||
|
Wenn deine Tastaturbelegung zum Beispiel den Namen "xyverz" hat und Du eine Tastaturbelegung für ein jj40 erzeugen möchtest, lautet der Befehl dafür:
|
||||||
|
|
||||||
|
make jj40:xyverz:bootloaderHID
|
||||||
|
|
||||||
|
Nachdem die Kompilation abgeschlossen ist sollte die Ausgabe ungefähr so aussehen:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/jj40_default.elf [OK]
|
||||||
|
Creating load file for flashing: .build/jj40_default.hex [OK]
|
||||||
|
Copying jj40_default.hex to qmk_firmware folder [OK]
|
||||||
|
Checking file size of jj40_default.hex [OK]
|
||||||
|
* The firmware size is fine - 21920/28672 (6752 bytes free)
|
||||||
|
```
|
||||||
|
|
||||||
|
Wenn dieser Punkt erreicht ist wird das Build-Skript alle 5 Sekunden nach einem DFU Bootloader suchen. Dieser Vorgang wird wiederholt bis er erfolgreich ist oder abgebrochen wird.
|
||||||
|
|
||||||
|
```
|
||||||
|
Error opening HIDBoot device: The specified device was not found
|
||||||
|
Trying again in 5s.
|
||||||
|
```
|
||||||
|
|
||||||
|
An diesem Punkt solltest Du die Tastatur zurücksetzen um den Flash-Vorgang auszulösen. Wenn dies abgeschlossen ist sollte die Ausgabe ungefähr so aussehen:
|
||||||
|
|
||||||
|
```
|
||||||
|
Page size = 128 (0x80)
|
||||||
|
Device size = 32768 (0x8000); 30720 bytes remaining
|
||||||
|
Uploading 22016 (0x5600) bytes starting at 0 (0x0)
|
||||||
|
0x05580 ... 0x05600
|
||||||
|
```
|
||||||
|
|
||||||
|
### STM32 (ARM)
|
||||||
|
|
||||||
|
Für die meisten ARM Tastaturen (inkl. Proton C, Planck Rev 6 und Preonic Rev 3), wenn Du bereit bist zu kompilieren und die Tastatur zu flashen, öffne ein Befehlszeilen-Fenster und führe den Build-Befehl aus:
|
||||||
|
|
||||||
|
make <meine_Tastatur>:<meine_Tastaturbelegung>:dfu-util
|
||||||
|
|
||||||
|
Wenn deine Tastaturbelegung zum Beispiel den Namen "xyverz" hat und Du eine Tastaturbelegung für ein Planck Revision 6 erzeugen möchtest, benutze dafür den folgenden Befehl und reboote die Tastatur in den Bootloader (kurz bevor der Kompiliervorgang abgeschlossen ist):
|
||||||
|
|
||||||
|
make planck/rev6:xyverz:dfu-util
|
||||||
|
|
||||||
|
Nachdem der Kompiliervorgang abgeschlossen ist sollte die Ausgabe ungefähr so aussehen:
|
||||||
|
|
||||||
|
Für auf Bootmapper Client(BMC)/bootloaderHID/ATmega32A basierende Tastaturen, wenn Du bereit bist zu kompilieren und die Tastatur zu flashen, öffne ein Befehlszeilen-Fenster und führe den Build-Befehl aus:
|
||||||
|
|
||||||
|
make <meine_Tastatur>:<meine_Tastaturbelegung>:bootloaderHID
|
||||||
|
|
||||||
|
Wenn deine Tastaturbelegung zum Beispiel den Namen "xyverz" hat und Du eine Tastaturbelegung für ein jj40 erzeugen möchtest, lautet der Befehl dafür:
|
||||||
|
```
|
||||||
|
Linking: .build/planck_rev6_xyverz.elf [OK]
|
||||||
|
Creating binary load file for flashing: .build/planck_rev6_xyverz.bin [OK]
|
||||||
|
Creating load file for flashing: .build/planck_rev6_xyverz.hex [OK]
|
||||||
|
|
||||||
|
Size after:
|
||||||
|
text data bss dec hex filename
|
||||||
|
0 41820 0 41820 a35c .build/planck_rev6_xyverz.hex
|
||||||
|
|
||||||
|
Copying planck_rev6_xyverz.bin to qmk_firmware folder [OK]
|
||||||
|
dfu-util 0.9
|
||||||
|
|
||||||
|
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
|
||||||
|
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
|
||||||
|
This program is Free Software and has ABSOLUTELY NO WARRANTY
|
||||||
|
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
|
||||||
|
|
||||||
|
Invalid DFU suffix signature
|
||||||
|
A valid DFU suffix will be required in a future dfu-util release!!!
|
||||||
|
Opening DFU capable USB device...
|
||||||
|
ID 0483:df11
|
||||||
|
Run-time device DFU version 011a
|
||||||
|
Claiming USB DFU Interface...
|
||||||
|
Setting Alternate Setting #0 ...
|
||||||
|
Determining device status: state = dfuERROR, status = 10
|
||||||
|
dfuERROR, clearing status
|
||||||
|
Determining device status: state = dfuIDLE, status = 0
|
||||||
|
dfuIDLE, continuing
|
||||||
|
DFU mode device DFU version 011a
|
||||||
|
Device returned transfer size 2048
|
||||||
|
DfuSe interface name: "Internal Flash "
|
||||||
|
Downloading to address = 0x08000000, size = 41824
|
||||||
|
Download [=========================] 100% 41824 bytes
|
||||||
|
Download done.
|
||||||
|
File downloaded successfully
|
||||||
|
Transitioning to dfuMANIFEST state
|
||||||
|
```
|
||||||
|
|
||||||
|
#### STM32 Befehle
|
||||||
|
|
||||||
|
Für Tastaturen mit STM32 Controller sind die DFU Befehle wie folgt:
|
||||||
|
|
||||||
|
* `:dfu-util` - The default command for flashing to STM32 devices.
|
||||||
|
* `:dfu-util` - Der Standard-Befehl für STM32 Geräte.
|
||||||
|
* `:dfu-util-wait` - Funktioniert wie der Standard-Befehl, aber mit einem 10 Sekunden Timeout bevor erneut versucht wird die Firmware zu flashen. Mit dem Parameter `TIME_DELAY=20` auf der Befehlszeile kann der Timeout beeinflusst werden.
|
||||||
|
* z.B.: `make <meine_Tastatur>:<meine_Tastaturbelegung>:dfu-util TIME_DELAY=5`
|
||||||
|
* `:dfu-util-split-left` - Gleiche Funktionsweise wie `dfu-util`, jedoch wird zusätzlich das EEPROM Setting "linke Seite" für geteilte Tastaturen gesetzt.
|
||||||
|
* `:dfu-util-split-right` - Gleiche Funktionsweise wie `dfu-util`, jedoch wird zusätzlich das EEPROM Setting "rechte Seite" für geteilte Tastaturen gesetzt.
|
||||||
|
|
||||||
|
## Probier's aus!
|
||||||
|
|
||||||
|
Herzlichen Glückwunsch! Deine individuell angepasst Firmware wurde auf deine Tastatur übertragen!
|
||||||
|
|
||||||
|
Probiere deine neue Tastatur aus und gehe sicher dass alles wie gewünscht funktioniert. Wir haben einen weiteren Artikel zum Thema [Testen und Debuggen](de/newbs_testing_debugging.md) verfasst der sich mit Problembeseitigung beschäftigt um den Beginnger-Guide abzuschließen.
|
101
docs/de/newbs_getting_started.md
Normal file
101
docs/de/newbs_getting_started.md
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
# Einleitung
|
||||||
|
Genau wie in einem Computer befindet sich auch in einer Tastatur ein Prozessor.
|
||||||
|
|
||||||
|
Dieser Prozessor führt Software aus, die registriert wenn Tasten gedrückt bzw. wieder losgelassen werden und leitet die entsprechenden Signale an den Computer weiter.
|
||||||
|
|
||||||
|
QMK übernimmt die Rolle dieser Software und teilt dem Host-Computer den aktuellen Zustand der Tastatur mit. Wenn Du eine Tastaturbelegung definierst, ist dies äquivalent zu einem ausführbarem Programm, das auf deiner Tastatur läuft.
|
||||||
|
|
||||||
|
QMK möchte seine BenutzerInnen in die Lage versetzen, simple Aufgaben möglichst einfach zu gestalten und gleichzeitig komplexe Dinge zu ermöglichen, die mit normalen Tastaturen ohne zusätzliche Software undenkbar wären. Du musst nicht programmieren können, um abgefahrene Tastaturbelegungen zu gestalten - es reicht wenn Du eine Idee hast und ein paar einfache syntaktische Regeln verstehen kannst.
|
||||||
|
|
||||||
|
# Los geht's!
|
||||||
|
Bevor Du damit loslegen kannst, deine Tastaturbelegung zu erstellen, musst Du ein wenig Software installieren und Dir eine Entwicklungsumgebung aufsetzen. Die gute Nachricht ist, dass das nur einmal erledigt werden muss, egal für wie viele verschiedene Tastaturen Du hinterher Firmware entwickeln willst.
|
||||||
|
|
||||||
|
Wenn Du es vorziehst mit einer grafischen Oberfläche zu entwickeln kannst Du auch dazu gerne direkt mit dem online [QMK Konfigurator](https://config.qmk.fm) loslegen. Siehe auch: [Firmware mit der Online GUI erzeugen](de/newbs_building_firmware_configurator.md)
|
||||||
|
|
||||||
|
## Software herunterladen
|
||||||
|
|
||||||
|
### Text Editor
|
||||||
|
|
||||||
|
Du wirst ein Programm benötigen, mit dem Du **plain text** (= reiner Text) Dateien bearbeiten und speichern kannst. Wenn Du Windows benutzt, reicht dafür schon das normale `Notepad` und für Linux z.B. `gedit` oder `leafpad`. Beide sind sehr rudimentäre Editoren deren Funktionsumfang aber vollkommen ausreicht. Für macOS' standard `TextEdit` muss man ein bisschen vorsichtig sein und darauf achten, beim Speichern explizit unter _Format_ die Option _Reiner Text_ auszuwählen.
|
||||||
|
|
||||||
|
Ansonsten ist es empfehlenswert, einen Editor herunterzuladen der für die Programmierung und das Bearbeiten von Code ausgelegt ist wie z.b [Notepad++](http://notepad-plus-plus.org/), [Sublime Text](https://www.sublimetext.com/) oder [VS Code](https://code.visualstudio.com/).
|
||||||
|
|
||||||
|
?> Immer noch unsicher, welcher Text Editor der Richtige für Dich ist? Laurence Bradford hat eine hervorragende [Einleitung](https://learntocodewith.me/programming/basics/text-editors/) zu dem Thema geschrieben (auf Englisch).
|
||||||
|
|
||||||
|
### QMK Toolbox
|
||||||
|
|
||||||
|
QMK Toolbox ist ein optionales grafisches Programm für Windows und macOS, das es erleichtern soll, deine Tastatur zu programmieren und zu debuggen. Du wirst es höchstwahrscheinlich früher oder später als unverzichtbar ansehen, wenn es darum geht eine Tastatur einfach zu flashen oder zu debuggen, da es ermöglicht, sich debug-Nachrichten direkt anzeigen zu lassen.
|
||||||
|
|
||||||
|
[Hier kannst Du die aktuelle Version herunterladen.](https://github.com/qmk/qmk_toolbox/releases/latest)
|
||||||
|
|
||||||
|
* Für Windows: `qmk_toolbox.exe` (portable) oder `qmk_toolbox_install.exe` (installer)
|
||||||
|
* Für macOS: `QMK.Toolbox.app.zip` (portable) oder `QMK.Toolbox.pkg` (installer)
|
||||||
|
|
||||||
|
## Die Entwicklungsumgebung aufsetzen
|
||||||
|
|
||||||
|
|
||||||
|
Wir haben versucht, die Installation der Entwicklungsumgebung für QMK so einfach wie möglich zu gestalten. Alles, was Du tun musst, ist eine Linux oder Unix Umgebung aufzusetzen, danach macht QMK den Rest.
|
||||||
|
|
||||||
|
?> Wenn Du das erste Mal mit der Linux/Unix Befehlszeile arbeitest, schadet es nicht, sich mit ein paar Grundlagen und Befehlen vertraut zu machen. Diese Ressourcen sollten ausreichen, um sich das Nötigste anzueignen um mit QMK arbeiten zu können:<br>
|
||||||
|
[Erforderliche Linux Grundlagen](https://www.guru99.com/must-know-linux-commands.html)<br>
|
||||||
|
[Noch ein paar Linux Befehle](https://www.tjhsst.edu/~dhyatt/superap/unixcmd.html)
|
||||||
|
|
||||||
|
### Windows
|
||||||
|
|
||||||
|
Du wirst MSYS2 (o.Ä.) und Git benötigen.
|
||||||
|
|
||||||
|
* Befolge die Installationsanleitung auf der [MSYS2 Homepage](http://www.msys2.org)
|
||||||
|
* Schließe alle offenen MSYS2 Fenster und öffne ein neues MSYS2 MinGW 64-bit Terminal
|
||||||
|
* Installiere Git mit dem Kommando: `pacman -S git`
|
||||||
|
|
||||||
|
### macOS
|
||||||
|
|
||||||
|
Du wirst Homebrew benötigen. Folge dafür den Anweisungen auf der [Homebrew homepage](https://brew.sh).
|
||||||
|
|
||||||
|
Nachdem Homebrew erfolgreich installiert ist, kannst Du mit _QMK aufsetzen_ fortfahren.
|
||||||
|
|
||||||
|
### Linux
|
||||||
|
|
||||||
|
Du benötigst Git, aber es ist ziemlich wahrscheinlich, dass es bereits installiert ist. Sollte dies nicht der Fall sein, kannst Du es mit dem folgenden Aufruf installieren:
|
||||||
|
|
||||||
|
* Debian / Ubuntu / Devuan: `apt-get install git`
|
||||||
|
* Fedora / Red Hat / CentOS: `yum install git`
|
||||||
|
* Arch Linux: `pacman -S git`
|
||||||
|
|
||||||
|
?> Docker ist ebenfalls eine Option für alle Plattformen. [Hier](de/getting_started_build_tools.md#docker) kannst Du dazu weitere Informationen finden.
|
||||||
|
|
||||||
|
## QMK aufsetzen
|
||||||
|
Wenn Du damit fertig bist, deine Linux/Unix Umgebung zu installieren, kannst Du damit fortfahren QMK herunterzuladen. Dafür werden wir mit Git das QMK Repository "klonen". Öffne ein Terminal oder ein MSYS2 MinGW Fenster, dies wirst Du für den Rest der Anleitung benötigen. In diesem Fenster rufst Du nun die beiden folgenden Kommandos auf:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git clone --recurse-submodules https://github.com/qmk/qmk_firmware.git
|
||||||
|
cd qmk_firmware
|
||||||
|
```
|
||||||
|
?> Wenn Du bereits weißt, [wie man GitHub benutzt](de/getting_started_github.md), empfehlen wir, dass Du Dir ein eigenen Fork erstellst. Wenn Du nicht weißt, was das bedeuten soll, kannst Du diesen Ratschlag getrost ignorieren.
|
||||||
|
|
||||||
|
QMK liefert ein Script mit, das helfen soll, Dir alles Weitere abzunehmen. Du kannst es mit dem folgenden Befehl aufrufen:
|
||||||
|
|
||||||
|
util/qmk_install.sh
|
||||||
|
|
||||||
|
## Die Build-Umgebung testen
|
||||||
|
|
||||||
|
Nun sollte hoffentlich alles Nötige für eine funktionierende QMK Build-Umgebung installiert sein und Du solltest in der Lage sein, die QMK-Firmware zu kompilieren. Um dies mit einer `default` Tastaturbelegung zu testen, kannst Du den folgenden Befehl ausprobieren:
|
||||||
|
|
||||||
|
make <keyboard>:default
|
||||||
|
|
||||||
|
Der Befehl um z.B. die Firmware für ein _Clueboard 66%_ zu erzeugen lautet:
|
||||||
|
|
||||||
|
make clueboard/66/rev3:default
|
||||||
|
|
||||||
|
Wenn es fertig ist, sollte der Output ungefähr so ähnlich wie das Folgende aussehen:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/clueboard_66_rev3_default.elf [OK]
|
||||||
|
Creating load file for flashing: .build/clueboard_66_rev3_default.hex [OK]
|
||||||
|
Copying clueboard_66_rev3_default.hex to qmk_firmware folder [OK]
|
||||||
|
Checking file size of clueboard_66_rev3_default.hex [OK]
|
||||||
|
* The firmware size is fine - 26356/28672 (2316 bytes free)
|
||||||
|
```
|
||||||
|
|
||||||
|
# Eine eigene Tastaturbelegung erstellen
|
||||||
|
Du bist nun fertig mit dem Setup der Entwicklungsumgebung und solltest somit in der Lage sein, deine eigenen Tastaturbelegungen zu erstellen. Um fortzufahren, folge bitte der nächsten Anleitung unter [Die erste Firmware](de/newbs_building_firmware.md).
|
14
docs/de/newbs_learn_more_resources.md
Normal file
14
docs/de/newbs_learn_more_resources.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Lernmaterial
|
||||||
|
|
||||||
|
Diese weiterführenden Ressourcen sind darauf ausgerichtet, Neulingen der QMK Commmunity mehr Informationen und ein besseres Verständnis zu einzelnen Themen zu bieten.
|
||||||
|
|
||||||
|
Git Ressourcen:
|
||||||
|
|
||||||
|
* [Gutes allgemeines Tutorial](https://www.codecademy.com/learn/learn-git) (auf Englisch)
|
||||||
|
* [Git spielerisch anhand von Beispielen lernen](https://learngitbranching.js.org/) (auf Englisch)
|
||||||
|
* [Mehr über den allgemeinen Umgang mit Github](getting_started_github.md)
|
||||||
|
* [Mehr über Git im Bezug zu QMK](contributing.md)
|
||||||
|
|
||||||
|
Mehr über die Arbeit mit der Befehlszeile:
|
||||||
|
|
||||||
|
* [Gutes allgemeines Tutorial über die Arbeit mit der Befehlszeile](https://www.codecademy.com/learn/learn-the-command-line) (auf Englisch)
|
100
docs/de/newbs_testing_debugging.md
Normal file
100
docs/de/newbs_testing_debugging.md
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
# Testen und Debuggen
|
||||||
|
|
||||||
|
Nachdem Du deine Tastatur mit deiner angepassten Firmware geflasht hast, ist es nun an der Zeit sie auszuprobieren. Mit ein bisschen Glück sollte alles ohne Probleme funktionieren, wenn dies nicht der Fall ist, soll dieses Dokument dir dabei helfen, herauszufinden wo das Problem liegt.
|
||||||
|
|
||||||
|
## Testen
|
||||||
|
|
||||||
|
Die Tastatur zu testen ist relativ selbsterklärend. Drücke jede der Tasten um dich zu versichern, dass der gesendete Keyode der ist, den du erwarten würdest. Dafür gibt es sogar ein paar Programme die helfen sollen, dass keine Taste ausgelassen wurde.
|
||||||
|
|
||||||
|
Anmerkung: Diese Programme werden weder von QMK bereitgestellt oder gutgeheißen.
|
||||||
|
|
||||||
|
* [Switch Hitter](https://elitekeyboards.com/switchhitter.php) (Nur für Windows)
|
||||||
|
* [Keyboard Viewer](https://www.imore.com/how-use-keyboard-viewer-your-mac) (Nur für Mac)
|
||||||
|
* [Keyboard Tester](http://www.keyboardtester.com) (Web basiert)
|
||||||
|
* [Keyboard Checker](http://keyboardchecker.com) (Web basiert)
|
||||||
|
|
||||||
|
## Debuggen
|
||||||
|
|
||||||
|
Deine Tastatur wird Debug Informationen liefern wenn Du `CONSOLE_ENABLE = yes` in deiner `rules.mk` gesetzt hast. Die default-Ausgabe ist sehr beschränkt und kann wenn nötig durch die Aktivierung des Debug-Modes erhöht werden. Benutze dafür entweder den `DEBUG` Keycode in deiner Tastaturbelegung, das [Command](de/feature_command.md)-Feature oder füge den folgenden Code zu deiner Tastaturbelegung hinzu.
|
||||||
|
|
||||||
|
```c
|
||||||
|
void keyboard_post_init_user(void) {
|
||||||
|
// Customise these values to desired behaviour
|
||||||
|
debug_enable=true;
|
||||||
|
debug_matrix=true;
|
||||||
|
//debug_keyboard=true;
|
||||||
|
//debug_mouse=true;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Debuggen mit der QMK Toolbox
|
||||||
|
|
||||||
|
Für kompatible Plattformen kann die [QMK Toolbox](https://github.com/qmk/qmk_toolbox) benutzt werden um Debug-Nachrichten deiner Tastatur anzuzeigen.
|
||||||
|
|
||||||
|
### Debuggen mit hid_listen
|
||||||
|
|
||||||
|
Bevorzugst Du es lieber auf der Befehlszeile zu debuggen? Dafür eignet sich das Programm [hid_listen](https://www.pjrc.com/teensy/hid_listen.html) von PJRC. Binaries sind für Windows, Linux und MacOS verfügbar.
|
||||||
|
|
||||||
|
<!-- FIXME: Describe the debugging messages here. -->
|
||||||
|
|
||||||
|
## Eigene Debug-Nachrichten senden
|
||||||
|
|
||||||
|
Manchmal ist es hilfreich Debug-Nachrichten innerhalb deines eigenen [Custom Codes](de/custom_quantum_functions.md) zu drucken. Das ist ziemlich einfach. Beginne damit `print.h` am Anfang deiner Datei zu inkludieren:
|
||||||
|
|
||||||
|
#include <print.h>
|
||||||
|
|
||||||
|
Danach stehen dir verschiedene Druck-Funktionen zur Verfügung:
|
||||||
|
|
||||||
|
* `print("string")`: Druckt einen simplen String
|
||||||
|
* `uprintf("%s string", var)`: Druckt einen formatierten String
|
||||||
|
* `dprint("string")` Druckt einen simplen String, aber nur wenn der Debug-Mode aktiviert ist
|
||||||
|
* `dprintf("%s string", var)`: Druckt einen formatierten String, aber nur wenn der Debug-Mode aktiviert ist
|
||||||
|
|
||||||
|
## Debug Beispiele
|
||||||
|
|
||||||
|
Anbei findest Du eine Sammlung von hilfreichen Beispielen. Für weitere Informationen Informationen sei an dieser Stelle auf [Debugging/Troubleshooting QMK](de/faq_debug.md) verwiesen.
|
||||||
|
|
||||||
|
### Which matrix position is this keypress?
|
||||||
|
### Welche Matrix Position hat dieser Tastenanschlag
|
||||||
|
|
||||||
|
Beim Portieren, oder bei der Fehlerdiagnose von PCB Problemen, ist es nützlich sich anzeigen zu lassen ob ein Tastenanschlag richtig erkannt wurde. Um die Protokollierung für diesen Fall zu aktivieren, füge bitte folgenden Code zu deiner Tastaturbelegung `keymap.c` hinzu.
|
||||||
|
|
||||||
|
```c
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
// Wenn 'console' aktiviert ist wird die Matrix-Position und der Status jedes Tastenanschlags ausgegeben
|
||||||
|
#ifdef CONSOLE_ENABLE
|
||||||
|
uprintf("KL: kc: %u, col: %u, row: %u, pressed: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed);
|
||||||
|
#endif
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Beispiel Ausgabe:
|
||||||
|
```text
|
||||||
|
Waiting for device:.......
|
||||||
|
Listening:
|
||||||
|
KL: kc: 169, col: 0, row: 0, pressed: 1
|
||||||
|
KL: kc: 169, col: 0, row: 0, pressed: 0
|
||||||
|
KL: kc: 174, col: 1, row: 0, pressed: 1
|
||||||
|
KL: kc: 174, col: 1, row: 0, pressed: 0
|
||||||
|
KL: kc: 172, col: 2, row: 0, pressed: 1
|
||||||
|
KL: kc: 172, col: 2, row: 0, pressed: 0
|
||||||
|
```
|
||||||
|
|
||||||
|
### Wieviel Zeit wurde benötigt um einen Tastenanschlag zu detektieren?
|
||||||
|
|
||||||
|
Wenn Performance-Probleme auftreten ist es hilfreich die Frequenz, mit der die Matrix gescannt wird, zu wissen. Um dies in diesem Fall zu aktiveren füge, den folgenden Code zu deiner Tastaturbelegung in `config.h` hinzu.
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define DEBUG_MATRIX_SCAN_RATE
|
||||||
|
```
|
||||||
|
|
||||||
|
Beispiel Ausgabe
|
||||||
|
```text
|
||||||
|
> matrix scan frequency: 315
|
||||||
|
> matrix scan frequency: 313
|
||||||
|
> matrix scan frequency: 316
|
||||||
|
> matrix scan frequency: 316
|
||||||
|
> matrix scan frequency: 316
|
||||||
|
> matrix scan frequency: 316
|
||||||
|
```
|
@@ -28,9 +28,9 @@ the Ctrl, Alt, or GUI modifiers are held down.
|
|||||||
|
|
||||||
A compact 40% (12x4) ortholinear keyboard kit made and sold by OLKB and Massdrop. [More info on qmk.fm](http://qmk.fm/planck/)
|
A compact 40% (12x4) ortholinear keyboard kit made and sold by OLKB and Massdrop. [More info on qmk.fm](http://qmk.fm/planck/)
|
||||||
|
|
||||||
Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert)
|
* Keyboard Maintainer: [Jack Humbert](https://github.com/jackhumbert)
|
||||||
Hardware Supported: Planck PCB rev1, rev2, rev3, rev4, Teensy 2.0
|
* Hardware Supported: Planck PCB rev1, rev2, rev3, rev4, Teensy 2.0
|
||||||
Hardware Availability: [OLKB.com](https://olkb.com), [Massdrop](https://www.massdrop.com/buy/planck-mechanical-keyboard?mode=guest_open)
|
* Hardware Availability: [OLKB.com](https://olkb.com), [Massdrop](https://www.massdrop.com/buy/planck-mechanical-keyboard?mode=guest_open)
|
||||||
|
|
||||||
Make example for this keyboard (after setting up your build environment):
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
@@ -38,5 +38,3 @@ Make example for this keyboard (after setting up your build environment):
|
|||||||
|
|
||||||
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).
|
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).
|
||||||
```
|
```
|
||||||
|
|
||||||
There needs to be two spaces at the end of the `Keyboard Maintainer` and `Hardware Supported` lines for it to render correctly with Markdown.
|
|
||||||
|
50
docs/eeprom_driver.md
Normal file
50
docs/eeprom_driver.md
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
# EEPROM Driver Configuration
|
||||||
|
|
||||||
|
The EEPROM driver can be swapped out depending on the needs of the keyboard, or whether extra hardware is present.
|
||||||
|
|
||||||
|
Driver | Description
|
||||||
|
--------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
`EEPROM_DRIVER = vendor` | Uses the on-chip driver provided by the chip manufacturer. For AVR, this is provided by avr-libc. This is supported on ARM for a subset of chips -- STM32F3xx, STM32F1xx, and STM32F072xB will be emulated by writing to flash. Other chips will generally act as "transient" below.
|
||||||
|
`EEPROM_DRIVER = i2c` | Supports writing to I2C-based 24xx EEPROM chips. See the driver section below.
|
||||||
|
`EEPROM_DRIVER = transient` | Fake EEPROM driver -- supports reading/writing to RAM, and will be discarded when power is lost.
|
||||||
|
|
||||||
|
## Vendor Driver Configuration
|
||||||
|
|
||||||
|
No configurable options are available.
|
||||||
|
|
||||||
|
## I2C Driver Configuration
|
||||||
|
|
||||||
|
Currently QMK supports 24xx-series chips over I2C. As such, requires a working i2c_master driver configuration. You can override the driver configuration via your config.h:
|
||||||
|
|
||||||
|
`config.h` override | Description | Default Value
|
||||||
|
------------------------------------------- | ----------------------------------------------------------------------------------- | ------------------------------------
|
||||||
|
`#define EXTERNAL_EEPROM_I2C_BASE_ADDRESS` | Base I2C address for the EEPROM -- shifted left by 1 as per i2c_master requirements | 0b10100000
|
||||||
|
`#define EXTERNAL_EEPROM_I2C_ADDRESS(addr)` | Calculated I2C address for the EEPROM | `(EXTERNAL_EEPROM_I2C_BASE_ADDRESS)`
|
||||||
|
`#define EXTERNAL_EEPROM_BYTE_COUNT` | Total size of the EEPROM in bytes | 8192
|
||||||
|
`#define EXTERNAL_EEPROM_PAGE_SIZE` | Page size of the EEPROM in bytes, as specified in the datasheet | 32
|
||||||
|
`#define EXTERNAL_EEPROM_ADDRESS_SIZE` | The number of bytes to transmit for the memory location within the EEPROM | 2
|
||||||
|
`#define EXTERNAL_EEPROM_WRITE_TIME` | Write cycle time of the EEPROM, as specified in the datasheet | 5
|
||||||
|
|
||||||
|
Default values and extended descriptions can be found in `drivers/eeprom/eeprom_i2c.h`.
|
||||||
|
|
||||||
|
Alternatively, there are pre-defined hardware configurations for available chips/modules:
|
||||||
|
|
||||||
|
Module | Equivalent `#define` | Source
|
||||||
|
-----------------|---------------------------------|------------------------------------------
|
||||||
|
CAT24C512 EEPROM | `#define EEPROM_I2C_CAT24C512` | <https://www.sparkfun.com/products/14764>
|
||||||
|
RM24C512C EEPROM | `#define EEPROM_I2C_RM24C512C` | <https://www.sparkfun.com/products/14764>
|
||||||
|
24LC128 EEPROM | `#define EEPROM_I2C_24LC128` | <https://www.microchip.com/wwwproducts/en/24LC128>
|
||||||
|
24LC256 EEPROM | `#define EEPROM_I2C_24LC256` | <https://www.sparkfun.com/products/525>
|
||||||
|
MB85RC256V FRAM | `#define EEPROM_I2C_MB85RC256V` | <https://www.adafruit.com/product/1895>
|
||||||
|
|
||||||
|
?> If you find that the EEPROM is not cooperating, ensure you've correctly shifted up your EEPROM address by 1. For example, the datasheet might state the address as `0b01010000` -- the correct value of `EXTERNAL_EEPROM_I2C_BASE_ADDRESS` needs to be `0b10100000`.
|
||||||
|
|
||||||
|
## Transient Driver configuration
|
||||||
|
|
||||||
|
The only configurable item for the transient EEPROM driver is its size:
|
||||||
|
|
||||||
|
`config.h` override | Description | Default Value
|
||||||
|
------------------------------- | ----------------------------------------- | -------------
|
||||||
|
`#define TRANSIENT_EEPROM_SIZE` | Total size of the EEPROM storage in bytes | 64
|
||||||
|
|
||||||
|
Default values and extended descriptions can be found in `drivers/eeprom/eeprom_transient.h`.
|
32
docs/es/README.md
Normal file
32
docs/es/README.md
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# Firmware Quantum Mechanical Keyboard
|
||||||
|
|
||||||
|
[](https://github.com/qmk/qmk_firmware/tags)
|
||||||
|
[](https://travis-ci.org/qmk/qmk_firmware)
|
||||||
|
[](https://discord.gg/Uq7gcHh)
|
||||||
|
[](https://docs.qmk.fm)
|
||||||
|
[](https://github.com/qmk/qmk_firmware/pulse/monthly)
|
||||||
|
[](https://github.com/qmk/qmk_firmware/)
|
||||||
|
|
||||||
|
## ¿Qué es el firmware QMK?
|
||||||
|
|
||||||
|
QMK (*Quantum Mechanical Keyboard*) es una comunidad open source que mantiene el firmware QMK, QMK Toolbox, qmk.fm, y estos documentos. El firmware QMK es un firmware para teclados basado en [tmk\_keyboard](http://github.com/tmk/tmk_keyboard) con algunas características útiles para controladores Atmel AVR, y más específicamente, la [línea de productos OLKB](http://olkb.com), el teclado [ErgoDox EZ](http://www.ergodox-ez.com), y la [línea de productos Clueboard](http://clueboard.co/). También ha sido portado a chips ARM chips usando ChibiOS. Lo puedes utilizar para manejar tu propio teclado ya sea cableado a mano o basado en una PCB personalizada.
|
||||||
|
|
||||||
|
## Cómo conseguirlo
|
||||||
|
|
||||||
|
Si estás pensando en contribuir con un keymap, teclado, or característica a QMK, la manera más sencilla es hacer un [fork del repositorio en Github](https://github.com/qmk/qmk_firmware#fork-destination-box), y clonar tu repositorio localmente para hacer los cambios, subirlos, y abir un [Pull Request](https://github.com/qmk/qmk_firmware/pulls) desde tu fork.
|
||||||
|
|
||||||
|
De cualquier manera, también puedes descargarlo directamente en formatos ([zip](https://github.com/qmk/qmk_firmware/zipball/master), [tar](https://github.com/qmk/qmk_firmware/tarball/master)), o clonarlo via git (`git@github.com:qmk/qmk_firmware.git`), o https (`https://github.com/qmk/qmk_firmware.git`).
|
||||||
|
|
||||||
|
## Cómo compilar
|
||||||
|
|
||||||
|
Antes de poder compilar, necesitarás [instalar un entorno](es/getting_started_build_tools.md) para el desarrollo de AVR y/o ARM. Una vez hayas completado este paso, usarás el comando `make` para compilar un teclado y keymap con la siguiente notación:
|
||||||
|
|
||||||
|
make planck/rev4:default
|
||||||
|
|
||||||
|
Este ejemplo compilaría la revisión `rev4` del teclado `planck` con el keymap `default`. No todos los teclados tienen revisiones (también llamados subproyectos o carpetas), en ese caso, se puede omitir:
|
||||||
|
|
||||||
|
make preonic:default
|
||||||
|
|
||||||
|
## Cómo personalizar
|
||||||
|
|
||||||
|
QMK tiene montones de [características](es/features.md) para explorar, y una buena cantidad de [documentación de referencia](http://docs.qmk.fm) en la que sumergirse. Se pueden sacar provecho de la mayoría de las características modificando tu [keymap](es/keymap.md), y cambiando los [keycodes](es/keycodes.md).
|
121
docs/es/_summary.md
Normal file
121
docs/es/_summary.md
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
* [Guía completa para novatos](es/newbs.md)
|
||||||
|
* [Empezando](es/newbs_getting_started.md)
|
||||||
|
* [Construyendo tu primer firmare](es/newbs_building_firmware.md)
|
||||||
|
* [Flasheando el firmware](es/newbs_flashing.md)
|
||||||
|
* [Testeando y depurando ](es/newbs_testing_debugging.md)
|
||||||
|
* [Mejores práticas](es/newbs_best_practices.md)
|
||||||
|
* [Recursos de aprendizaje](es/newbs_learn_more_resources.md)
|
||||||
|
|
||||||
|
* [QMK Basics](es/README.md)
|
||||||
|
* [Introducción a QMK](es/getting_started_introduction.md)
|
||||||
|
* [QMK CLI](es/cli.md)
|
||||||
|
* [Configuración de QMK CLI](es/cli_configuration.md)
|
||||||
|
* [Contribuyendo a QMK](es/contributing.md)
|
||||||
|
* [Cómo usar Github](es/getting_started_github.md)
|
||||||
|
* [Obtener ayuda](es/getting_started_getting_help.md)
|
||||||
|
|
||||||
|
* [Cambios incompatibles](es/breaking_changes.md)
|
||||||
|
* [30 Ago 2019](es/ChangeLog/20190830.md)
|
||||||
|
|
||||||
|
* [Preguntas frecuentes](es/faq.md)
|
||||||
|
* [General](es/faq_general.md)
|
||||||
|
* [Construir/Compilar QMK](es/faq_build.md)
|
||||||
|
* [Depurando/Encontrando problemas en QMK](es/faq_debug.md)
|
||||||
|
* [Keymap](es/faq_keymap.md)
|
||||||
|
* [Instalación de drivers con Zadig](es/driver_installation_zadig.md)
|
||||||
|
|
||||||
|
* Guías detalladas
|
||||||
|
* [Instalar herramientas construcción](es/getting_started_build_tools.md)
|
||||||
|
* [Guía Vagrant](es/getting_started_vagrant.md)
|
||||||
|
* [Instrucciones de Construcción/Compilado](es/getting_started_make_guide.md)
|
||||||
|
* [Flasheando Firmware](es/flashing.md)
|
||||||
|
* [Personalizando funcionalidad](es/custom_quantum_functions.md)
|
||||||
|
* [Visión general del Keymap](es/keymap.md)
|
||||||
|
|
||||||
|
* [Hardware](es/hardware.md)
|
||||||
|
* [Procesadores AVR](es/hardware_avr.md)
|
||||||
|
* [Drivers](es/hardware_drivers.md)
|
||||||
|
|
||||||
|
* Referencia
|
||||||
|
* [Pautas de teclados](es/hardware_keyboard_guidelines.md)
|
||||||
|
* [Opciones de configuración](es/config_options.md)
|
||||||
|
* [Keycodes](es/keycodes.md)
|
||||||
|
* [Convenciones de código - C](es/coding_conventions_c.md)
|
||||||
|
* [Convenciones de código - Python](es/coding_conventions_python.md)
|
||||||
|
* [Mejores prácticas de documentación](es/documentation_best_practices.md)
|
||||||
|
* [Plantillas de documentación](es/documentation_templates.md)
|
||||||
|
* [Glosario](es/reference_glossary.md)
|
||||||
|
* [Tests unitarios](es/unit_testing.md)
|
||||||
|
* [Funciones útiles](es/ref_functions.md)
|
||||||
|
* [Sporte configurador](es/reference_configurator_support.md)
|
||||||
|
* [Formato info.json](es/reference_info_json.md)
|
||||||
|
* [Desarrollo Python CLI](es/cli_development.md)
|
||||||
|
|
||||||
|
* [Características](es/features.md)
|
||||||
|
* [Keycodes Básicos](es/keycodes_basic.md)
|
||||||
|
* [Teclas US ANSI Shifted](es/keycodes_us_ansi_shifted.md)
|
||||||
|
* [Keycodes Quantum](es/quantum_keycodes.md)
|
||||||
|
* [Keycodes Avanzados](es/feature_advanced_keycodes.md)
|
||||||
|
* [Audio](es/feature_audio.md)
|
||||||
|
* [Auto Shift](es/feature_auto_shift.md)
|
||||||
|
* [Retroiluminación](es/feature_backlight.md)
|
||||||
|
* [Bluetooth](es/feature_bluetooth.md)
|
||||||
|
* [Bootmagic](es/feature_bootmagic.md)
|
||||||
|
* [Combos](es/feature_combo.md)
|
||||||
|
* [Comando](es/feature_command.md)
|
||||||
|
* [API Debounce](es/feature_debounce_type.md)
|
||||||
|
* [Switch DIP](es/feature_dip_switch.md)
|
||||||
|
* [Macros Dinámicas](es/feature_dynamic_macros.md)
|
||||||
|
* [Encoders](es/feature_encoders.md)
|
||||||
|
* [Grave Escape](es/feature_grave_esc.md)
|
||||||
|
* [Feedback Háptico](es/feature_haptic_feedback.md)
|
||||||
|
* [Controlador LCD HD44780](es/feature_hd44780.md)
|
||||||
|
* [Key Lock](es/feature_key_lock.md)
|
||||||
|
* [Layouts](es/feature_layouts.md)
|
||||||
|
* [Tecla Leader](es/feature_leader_key.md)
|
||||||
|
* [Matriz LED](es/feature_led_matrix.md)
|
||||||
|
* [Macros](es/feature_macros.md)
|
||||||
|
* [Teclas del ratón](es/feature_mouse_keys.md)
|
||||||
|
* [Driver OLED](es/feature_oled_driver.md)
|
||||||
|
* [Teclas One Shot](es/feature_advanced_keycodes.md#one-shot-keys)
|
||||||
|
* [Dispositivo de apuntado](es/feature_pointing_device.md)
|
||||||
|
* [Ratón PS/2](es/feature_ps2_mouse.md)
|
||||||
|
* [Iluminación RGB](es/feature_rgblight.md)
|
||||||
|
* [Matriz RGB](es/feature_rgb_matrix.md)
|
||||||
|
* [Cadete espacial](es/feature_space_cadet.md)
|
||||||
|
* [Teclado dividido](es/feature_split_keyboard.md)
|
||||||
|
* [Stenografía](es/feature_stenography.md)
|
||||||
|
* [Swap Hands](es/feature_swap_hands.md)
|
||||||
|
* [Tap Dance](es/feature_tap_dance.md)
|
||||||
|
* [Terminal](es/feature_terminal.md)
|
||||||
|
* [Impresora Térmica](es/feature_thermal_printer.md)
|
||||||
|
* [Unicode](es/feature_unicode.md)
|
||||||
|
* [Userspace](es/feature_userspace.md)
|
||||||
|
* [Velocikey](es/feature_velocikey.md)
|
||||||
|
|
||||||
|
* Para Makers y Modders
|
||||||
|
* [Guía de cableado a mano](es/hand_wire.md)
|
||||||
|
* [Guía de flasheado de ISP](es/isp_flashing_guide.md)
|
||||||
|
* [Guía de depuración de ARM](es/arm_debugging.md)
|
||||||
|
* [Driver I2C](es/i2c_driver.md)
|
||||||
|
* [Controles GPIO](es/internals_gpio_control.md)
|
||||||
|
* [Conversión Proton C](es/proton_c_conversion.md)
|
||||||
|
|
||||||
|
* Para entender en profundidad
|
||||||
|
* [Cómo funcionan los teclados](es/how_keyboards_work.md)
|
||||||
|
* [Entendiendo QMK](es/understanding_qmk.md)
|
||||||
|
|
||||||
|
* Otros temas
|
||||||
|
* [Usando Eclipse con QMK](es/other_eclipse.md)
|
||||||
|
* [Usando VSCode con QMK](es/other_vscode.md)
|
||||||
|
* [Soporte](es/support.md)
|
||||||
|
* [Cómo añadir traducciones](es/translating.md)
|
||||||
|
|
||||||
|
* QMK Internals (En progreso)
|
||||||
|
* [Defines](es/internals_defines.md)
|
||||||
|
* [Input Callback Reg](es/internals_input_callback_reg.md)
|
||||||
|
* [Dispositivo Midi](es/internals_midi_device.md)
|
||||||
|
* [Proceso de configuración de un dispositivo Midi](es/internals_midi_device_setup_process.md)
|
||||||
|
* [Utilidad Midi](es/internals_midi_util.md)
|
||||||
|
* [Funciones Send](es/internals_send_functions.md)
|
||||||
|
* [Herramientas Sysex](es/internals_sysex_tools.md)
|
9
docs/es/becoming_a_qmk_collaborator.md
Normal file
9
docs/es/becoming_a_qmk_collaborator.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Llegar a ser un colaborador QMK
|
||||||
|
|
||||||
|
Un colaborador QMK es un maker o diseñador de teclados que tiene interés en ayudar a QMK a crecer y mantener sus teclado(s), y alentar a los usuarios y clientes a presentar herramientas, ideas, y keymaps. Siempre procuramos agregar más teclados y colaboradores, pero pedimos que cumplan los siguientes requisitos:
|
||||||
|
|
||||||
|
* **Tener un PCB disponible a la venta.** Desafortunadamente, hay demasiada variación y complicaciones con teclados cableados a mano.
|
||||||
|
* **Realizar el mantenimiento de tu teclado en QMK.** Este podría requirir un setup inicial para hacer que tu teclado funcione, pero también podría incluir adaptarse a cambios hecho al base de QMK que podrían descomponer o rendir código superfluo.
|
||||||
|
* **Aprobar e incorporar pull requests de keymaps para tu teclado.** Nos gusta alentar a los usuarios a contribuir sus keymaps para que otros los vean y los puedan usar para crear sus propios.
|
||||||
|
|
||||||
|
Si sientes que cumples los requisitos, ¡mándanos un email a hello@qmk.fm con una introducción y algunos enlaces para tu teclado!
|
8
docs/es/hardware.md
Normal file
8
docs/es/hardware.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Hardware
|
||||||
|
|
||||||
|
QMK es compatible con una variedad de hardware. Si tu procesador puede ser dirigido por [LUFA](http://www.fourwalledcubicle.com/LUFA.php) o [ChibiOS](http://www.chibios.com), probablemente puedes hacer que QMK se ejecute en él. Esta sección explora cómo hacer que QMK se ejecute y se comunique con hardware de todo tipo.
|
||||||
|
|
||||||
|
* [Pautas de teclados](hardware_keyboard_guidelines.md)
|
||||||
|
* [Procesadores AVR](hardware_avr.md)
|
||||||
|
* Procesadores ARM (TBD)
|
||||||
|
* [Drivers](hardware_drivers.md)
|
181
docs/es/hardware_avr.md
Normal file
181
docs/es/hardware_avr.md
Normal file
@@ -0,0 +1,181 @@
|
|||||||
|
# Teclados con Procesadores AVR
|
||||||
|
|
||||||
|
Esta página describe el soporte para procesadores AVR en QMK. Los procesadores AVR incluyen el atmega32u4, atmega32u2, at90usb1286, y otros procesadores de la Corporación Atmel. Los procesadores AVR son MCUs de 8-bit que son diseñados para ser fáciles de trabajar. Los procesadores AVR más comunes en los teclados tienen USB y un montón de GPIO para permitir grandes matrices de teclado. Son los MCUs más populares para el uso en los teclados hoy en día.
|
||||||
|
|
||||||
|
Si aún no lo has hecho, debes leer las [Pautas de teclados](hardware_keyboard_guidelines.md) para tener una idea de cómo los teclados encajan en QMK.
|
||||||
|
|
||||||
|
## Añadir tu Teclado AVR a QMK
|
||||||
|
|
||||||
|
QMK tiene varias características para simplificar el trabajo con teclados AVR. Para la mayoría de los teclados no tienes que escribir ni una sola línea de código. Para empezar, ejecuta el archivo `util/new_keyboard.sh`:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ ./util/new_keyboard.sh
|
||||||
|
Generating a new QMK keyboard directory
|
||||||
|
|
||||||
|
Keyboard Name: mycoolkb
|
||||||
|
Keyboard Type [avr]:
|
||||||
|
Your Name [John Smith]:
|
||||||
|
|
||||||
|
Copying base template files... done
|
||||||
|
Copying avr template files... done
|
||||||
|
Renaming keyboard files... done
|
||||||
|
Replacing %KEYBOARD% with mycoolkb... done
|
||||||
|
Replacing %YOUR_NAME% with John Smith... done
|
||||||
|
|
||||||
|
Created a new keyboard called mycoolkb.
|
||||||
|
|
||||||
|
To start working on things, cd into keyboards/mycoolkb,
|
||||||
|
or open the directory in your favourite text editor.
|
||||||
|
```
|
||||||
|
|
||||||
|
Esto creará todos los archivos necesarios para tu nuevo teclado, y rellenará la configuración con valores predeterminados. Ahora sólo tienes que personalizarlo para tu teclado.
|
||||||
|
|
||||||
|
## `readme.md`
|
||||||
|
|
||||||
|
Aquí es donde describirás tu teclado. Por favor sigue la [Plantilla del readme de teclados](documentation_templates.md#keyboard-readmemd-template) al escribir tu `readme.md`. Te animamos a colocar una imagen en la parte superior de tu `readme.md`. Por favor, utiliza un servicio externo como [Imgur](http://imgur.com) para alojar las imágenes.
|
||||||
|
|
||||||
|
## `<keyboard>.c`
|
||||||
|
|
||||||
|
Aquí es donde pondrás toda la lógica personalizada para tu teclado. Muchos teclados no necesitan nada aquí. Puedes aprender más sobre cómo escribir lógica personalizada en [Funciones Quantum Personalizadas](custom_quantum_functions.md).
|
||||||
|
|
||||||
|
## `<keyboard>.h`
|
||||||
|
|
||||||
|
Este es el archivo en el que defines tu(s) [Macro(s) de Layout](feature_layouts.md). Por lo menos deberías tener un `#define LAYOUT` para tu teclado que se ve algo así:
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define LAYOUT( \
|
||||||
|
k00, k01, k02, \
|
||||||
|
k10, k11 \
|
||||||
|
) { \
|
||||||
|
{ k00, k01, k02 }, \
|
||||||
|
{ k10, KC_NO, k11 }, \
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
La primera mitad de la macro pre-procesador `LAYOUT` define la disposición física de las llaves. La segunda mitad de la macro define la matriz a la que están conectados los interruptores. Esto te permite tener una disposición física de las llaves que difiere de la matriz de cableado.
|
||||||
|
|
||||||
|
Cada una de las variables `k__` tiene que ser única, y normalmente sigue el formato `k<row><col>`.
|
||||||
|
|
||||||
|
La matriz física (la segunda mitad) debe tener un número de filas igualando `MATRIX_ROWS`, y cada fila debe tener exactamente `MATRIX_COLS` elementos. Si no tienes tantas teclas físicas puedes usar `KC_NO` para rellenar los espacios en blanco.
|
||||||
|
|
||||||
|
## `config.h`
|
||||||
|
|
||||||
|
El archivo `config.h` es donde configuras el hardware y el conjunto de características para tu teclado. Hay un montón de opciones que se pueden colocar en ese archivo, demasiadas para listar allí. Para obtener una visión de conjunto completa de las opciones disponibles consulta la página de [Opciones de Configuración](config_options.md).
|
||||||
|
|
||||||
|
### Configuración de hardware
|
||||||
|
|
||||||
|
|
||||||
|
En la parte superior de `config.h` encontrarás ajustes relacionados con USB. Estos controlan la apariencia de tu teclado en el Sistema Operativo. Si no tienes una buena razón para cambiar debes dejar el `VENDOR_ID` como `0xFEED`. Para el `PRODUCT_ID` debes seleccionar un número que todavía no esté en uso.
|
||||||
|
|
||||||
|
Cambia las líneas de `MANUFACTURER`, `PRODUCT`, y `DESCRIPTION` para reflejar con precisión tu teclado.
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define VENDOR_ID 0xFEED
|
||||||
|
#define PRODUCT_ID 0x6060
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER Tú
|
||||||
|
#define PRODUCT mi_teclado_fantastico
|
||||||
|
#define DESCRIPTION Un teclado personalizado
|
||||||
|
```
|
||||||
|
|
||||||
|
?> Windows y macOS mostrarán el `MANUFACTURER` y `PRODUCT` en la lista de dispositivos USB. `lsusb` en Linux toma estos de la lista mantenida por el [Repositorio de ID USB](http://www.linux-usb.org/usb-ids.html) por defecto. `lsusb -v` mostrará los valores reportados por el dispositivo, y también están presentes en los registros del núcleo después de conectarlo.
|
||||||
|
|
||||||
|
### Configuración de la matriz del teclado
|
||||||
|
|
||||||
|
La siguiente sección del archivo `config.h` trata de la matriz de tu teclado. Lo primero que debes establecer es el tamaño de la matriz. Esto es generalmente, pero no siempre, el mismo número de filas y columnas como la disposición física de las teclas.
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define MATRIX_ROWS 2
|
||||||
|
#define MATRIX_COLS 3
|
||||||
|
```
|
||||||
|
|
||||||
|
Una vez que hayas definido el tamaño de tu matriz, necesitas definir qué pines en tu MCU están conectados a filas y columnas. Para hacerlo simplemente especifica los nombres de esos pines:
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define MATRIX_ROW_PINS { D0, D5 }
|
||||||
|
#define MATRIX_COL_PINS { F1, F0, B0 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
```
|
||||||
|
|
||||||
|
El número de entradas debe ser el mismo que el número que asignaste a `MATRIX_ROWS`, y del mismo modo para `MATRIX_COL_PINS` y `MATRIX_COLS`. No tienes que especificar `UNUSED_PINS`, pero puedes si deseas documentar qué pines están abiertos.
|
||||||
|
|
||||||
|
Finalmente, puedes especificar la dirección en la que apuntan tus diodos. Esto puede ser `COL2ROW` o `ROW2COL`.
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Matriz de patas directas
|
||||||
|
Para configurar un teclado en el que cada interruptor está conectado a un pin y tierra separados en lugar de compartir los pines de fila y columna, usa `DIRECT_PINS`. La asignación define los pines de cada interruptor en filas y columnas, de izquierda a derecha. Debe ajustarse a los tamaños dentro de `MATRIX_ROWS` y `MATRIX_COLS`. Usa `NO_PIN` para rellenar espacios en blanco. Sobreescribe el comportamiento de `DIODE_DIRECTION`, `MATRIX_ROW_PINS` y `MATRIX_COL_PINS`.
|
||||||
|
|
||||||
|
```c
|
||||||
|
// #define MATRIX_ROW_PINS { D0, D5 }
|
||||||
|
// #define MATRIX_COL_PINS { F1, F0, B0 }
|
||||||
|
#define DIRECT_PINS { \
|
||||||
|
{ F1, E6, B0, B2, B3 }, \
|
||||||
|
{ F5, F0, B1, B7, D2 }, \
|
||||||
|
{ F6, F7, C7, D5, D3 }, \
|
||||||
|
{ B5, C6, B6, NO_PIN, NO_PIN } \
|
||||||
|
}
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW, ROW2COL */
|
||||||
|
//#define DIODE_DIRECTION
|
||||||
|
```
|
||||||
|
|
||||||
|
### Configuración de retroiluminación
|
||||||
|
|
||||||
|
QMK soporta retroiluminación en la mayoría de los pines GPIO. Algunos de ellos pueden ser manejados por el MCU en hardware. Para más detalles, consulta la [Documentación de Retroiluminación](feature_backlight.md).
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define BACKLIGHT_PIN B7
|
||||||
|
#define BACKLIGHT_LEVELS 3
|
||||||
|
#define BACKLIGHT_BREATHING
|
||||||
|
#define BREATHING_PERIOD 6
|
||||||
|
```
|
||||||
|
|
||||||
|
### Otras opciones de configuración
|
||||||
|
|
||||||
|
Hay un montón de características que se pueden configurar o ajustar en `config.h`. Debes consultar la página de [Opciones de Configuración](config_options.md) para más detalles.
|
||||||
|
|
||||||
|
## `rules.mk`
|
||||||
|
|
||||||
|
Usa el archivo `rules.mk` para decirle a QMK qué archivos construir y qué características habilitar. Si estás construyendo sobre un atmega32u4 deberías poder dejar mayormente los valores predeterminados. Si estás usando otro MCU es posible que tengas que ajustar algunos parámetros.
|
||||||
|
|
||||||
|
### Opciones MCU
|
||||||
|
|
||||||
|
Estas opciones le indican al sistema de compilación para qué CPU construir. Ten mucho cuidado si cambias cualquiera de estos ajustes. Puedes inutilizar tu teclado.
|
||||||
|
|
||||||
|
```make
|
||||||
|
MCU = atmega32u4
|
||||||
|
F_CPU = 16000000
|
||||||
|
ARCH = AVR8
|
||||||
|
F_USB = $(F_CPU)
|
||||||
|
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
|
||||||
|
```
|
||||||
|
|
||||||
|
### Gestores de arranque
|
||||||
|
|
||||||
|
El gestor de arranque es una sección especial de tu MCU que te permite actualizar el código almacenado en el MCU. Piensa en ello como una partición de rescate para tu teclado.
|
||||||
|
|
||||||
|
#### Ejemplo de gestor de arranque
|
||||||
|
|
||||||
|
```make
|
||||||
|
BOOTLOADER = halfkay
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Ejemplo de cargador DFU Atmel
|
||||||
|
|
||||||
|
```make
|
||||||
|
BOOTLOADER = atmel-dfu
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Ejemplo de gestor de arranque Pro Micro
|
||||||
|
|
||||||
|
```make
|
||||||
|
BOOTLOADER = caterina
|
||||||
|
```
|
||||||
|
|
||||||
|
### Opciones de construcción
|
||||||
|
|
||||||
|
Hay un serie de características que se pueden activar o desactivar en `rules.mk`. Consulta la página de [Opciones de Configuración](config_options.md#feature-options) para obtener una lista detallada y una descripción.
|
36
docs/es/hardware_drivers.md
Normal file
36
docs/es/hardware_drivers.md
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# Controladores de hardware QMK
|
||||||
|
|
||||||
|
QMK se utiliza en un montón de hardware diferente. Mientras que el soporte para los MCUs y las configuraciones de matriz más comunes está integrado, hay una serie de controladores que se pueden añadir para soportar hardware adicional al teclado. Los ejemplos incluyen ratones y otros dispositivos de apuntamiento, extensores de i/o para teclados divididos, modúlos Bluetooth, y pantallas LCD, OLED y TFT.
|
||||||
|
|
||||||
|
<!-- FIXME: Esto debe hablar de cómo se integran los controladores en QMK y cómo puedes añadir su propio controlador.
|
||||||
|
|
||||||
|
# Descripción del sistema de controladores
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
||||||
|
# Controladores disponibles
|
||||||
|
|
||||||
|
## ProMicro (Solo AVR)
|
||||||
|
|
||||||
|
Soporte para direccionar pines en el ProMicro por su nombre Arduino en lugar de su nombre AVR. Esto necesita ser mejor documentado. Si estás tratando de hacer esto y leer el código no ayuda por favor [abre una issue](https://github.com/qmk/qmk_firmware/issues/new) y podemos ayudarte por el proceso.
|
||||||
|
|
||||||
|
## Controlador OLED SSD1306
|
||||||
|
|
||||||
|
Soporte para pantallas OLED basadas en SSD1306. Para obtener más información consulta la página de [Característica de Controlador OLED](feature_oled_driver.md).
|
||||||
|
|
||||||
|
## uGFX
|
||||||
|
|
||||||
|
Puedes hacer uso de uGFX dentro de QMK para manejar LCDs de caracteres y gráficos, matrices de LED, OLED, TFT, y otras tecnologías de visualización. Esto necesita ser mejor documentado. Si estás tratando de hacer esto y leer el código no ayuda por favor [abre una issue](https://github.com/qmk/qmk_firmware/issues/new) y podemos ayudarte por el proceso.
|
||||||
|
|
||||||
|
## WS2812 (Solo AVR)
|
||||||
|
|
||||||
|
Soporte para LEDs WS2811/WS2812{a,b,c}. Para obtener más información consulta la página de [Luz RGB](feature_rgblight.md).
|
||||||
|
|
||||||
|
## IS31FL3731
|
||||||
|
|
||||||
|
Soporte para hasta 2 controladores. Cada controlador implementa 2 matrices charlieplex para direccionar LEDs individualmente usando I2C. Esto permite hasta 144 LEDs del mismo color o 32 LEDs RGB. Para obtener más información sobre cómo configurar el controlador, consulta la página de [Matriz RGB](feature_rgb_matrix.md).
|
||||||
|
|
||||||
|
## IS31FL3733
|
||||||
|
|
||||||
|
Soporte para hasta un solo controlador con espacio para expansión. Cada controlador puede controlar 192 LEDs individuales o 64 LEDs RGB. Para obtener más información sobre cómo configurar el controlador, consulta la página de [Matriz RGB](feature_rgb_matrix.md).
|
||||||
|
|
149
docs/es/hardware_keyboard_guidelines.md
Normal file
149
docs/es/hardware_keyboard_guidelines.md
Normal file
@@ -0,0 +1,149 @@
|
|||||||
|
# Pautas del teclado QMK
|
||||||
|
|
||||||
|
Desde sus inicios, QMK ha crecido a pasos agigantados gracias a personas como tú que contribuyes a la creación y mantenimiento de nuestros teclados comunitarios. A medida que hemos crecido hemos descubierto algunos patrones que funcionan bien, y pedimos que te ajustes a ellos para que sea más fácil para que otras personas se beneficien de tu duro trabajo.
|
||||||
|
|
||||||
|
|
||||||
|
## Nombrar tu Teclado/Proyecto
|
||||||
|
|
||||||
|
Todos los nombres de teclado están en minúsculas, consistiendo sólo de letras, números y guiones bajos (`_`). Los nombres no pueden comenzar con un guión bajo. La barra de desplazamiento (`/`) se utiliza como un carácter de separación de subcarpetas.
|
||||||
|
|
||||||
|
Los nombres `test`, `keyboard`, y `all` están reservados para las órdenes de make y no pueden ser usados como un nombre de teclado o subcarpeta.
|
||||||
|
|
||||||
|
Ejemplos Válidos:
|
||||||
|
|
||||||
|
* `412_64`
|
||||||
|
* `chimera_ortho`
|
||||||
|
* `clueboard/66/rev3`
|
||||||
|
* `planck`
|
||||||
|
* `v60_type_r`
|
||||||
|
|
||||||
|
## Subcarpetas
|
||||||
|
|
||||||
|
QMK utiliza subcarpetas tanto para organización como para compartir código entre las revisiones del mismo teclado. Puedes anidar carpetas hasta 4 niveles de profundidad:
|
||||||
|
|
||||||
|
qmk_firmware/keyboards/top_folder/sub_1/sub_2/sub_3/sub_4
|
||||||
|
|
||||||
|
Si una subcarpeta tiene un archivo `rules.mk` será considerado un teclado compilable. Estará disponible en el configurador de QMK y se probará con `make all`. Si estás utilizando una carpeta para organizar varios teclados del mismo fabricante no debes tener un archivo `rules.mk`.
|
||||||
|
|
||||||
|
Ejemplo:
|
||||||
|
|
||||||
|
Clueboard utiliza subcarpetas para ambos propósitos: organización y revisiones de teclado.
|
||||||
|
|
||||||
|
* [`qmk_firmware`](https://github.com/qmk/qmk_firmware/tree/master)
|
||||||
|
* [`keyboards`](https://github.com/qmk/qmk_firmware/tree/master/keyboards)
|
||||||
|
* [`clueboard`](https://github.com/qmk/qmk_firmware/tree/master/keyboards/clueboard) ← This is the organization folder, there's no `rules.mk` file
|
||||||
|
* [`60`](https://github.com/qmk/qmk_firmware/tree/master/keyboards/clueboard/60) ← This is a compilable keyboard, it has a `rules.mk` file
|
||||||
|
* [`66`](https://github.com/qmk/qmk_firmware/tree/master/keyboards/clueboard/66) ← This is also compilable- it uses `DEFAULT_FOLDER` to specify `rev3` as the default revision
|
||||||
|
* [`rev1`](https://github.com/qmk/qmk_firmware/tree/master/keyboards/clueboard/66/rev1) ← compilable: `make clueboard/66/rev1`
|
||||||
|
* [`rev2`](https://github.com/qmk/qmk_firmware/tree/master/keyboards/clueboard/66/rev2) ← compilable: `make clueboard/66/rev2`
|
||||||
|
* [`rev3`](https://github.com/qmk/qmk_firmware/tree/master/keyboards/clueboard/66/rev3) ← compilable: `make clueboard/66/rev3` or `make clueboard/66`
|
||||||
|
|
||||||
|
## Estructura de carpetas de teclado
|
||||||
|
|
||||||
|
Su teclado debe estar ubicado en `qmk_firm cuidada/keyboards/` y el nombre de la carpeta debe ser el nombre de su teclado como se describe en la sección anterior. Dentro de esta carpeta debe haber varios archivos:
|
||||||
|
|
||||||
|
* `readme.md`
|
||||||
|
* `info.json`
|
||||||
|
* `config.h`
|
||||||
|
* `rules.mk`
|
||||||
|
* `<keyboard_name>.c`
|
||||||
|
* `<keyboard_name>.h`
|
||||||
|
|
||||||
|
### `readme.md`
|
||||||
|
|
||||||
|
Todos los proyectos necesitan tener un archivo `readme.md` que explica lo que es el teclado, quién lo hizo y dónde está disponible. Si es aplicable, también debe contener enlaces a más información, como el sitio web del fabricante. Por favor, sigue la [plantilla publicada](documentation_templates.md#keyboard-readmemd-template).
|
||||||
|
|
||||||
|
### `info.json`
|
||||||
|
|
||||||
|
Este archivo es utilizado por la [API de QMK](https://github.com/qmk/qmk_api). Contiene la información que [configurador de QMK](https://config.qmk.fm/) necesita mostrar en una representación de su teclado. También puede establecer metadatos aquí. Para más información, consulta la [página de referencia](reference_info_json.md).
|
||||||
|
|
||||||
|
### `config.h`
|
||||||
|
|
||||||
|
Todos los proyectos necesitan tener un archivo `config.h` que establece cosas como el tamaño de la matriz, nombre del producto, USB VID/PID, descripción y otros ajustes. En general, usa este archivo para establecer la información esencial y los valores predeterminados para tu teclado que siempre funcionarán.
|
||||||
|
|
||||||
|
### `rules.mk`
|
||||||
|
|
||||||
|
La presencia de este archivo indica que la carpeta es un destino de teclado y se puede utilizar en las órdenes `make`. Aquí es donde estableces el entorno de compilación para tu teclado y configuras el conjunto predeterminado de características.
|
||||||
|
|
||||||
|
### `<keyboard_name.c>`
|
||||||
|
|
||||||
|
Aquí es donde escribirás código personalizado para tu teclado. Típicamente escribirás código para inicializar e interactuar con el hardware de tu teclado. Si tu teclado se compone de sólo una matriz de teclas sin LEDs, altavoces u otro hardware auxiliar este archivo puede estar en blanco.
|
||||||
|
|
||||||
|
Las funciones siguientes se definen típicamente en este archivo:
|
||||||
|
|
||||||
|
* `void matrix_init_kb(void)`
|
||||||
|
* `void matrix_scan_kb(void)`
|
||||||
|
* `bool process_record_kb(uint16_t keycode, keyrecord_t *record)`
|
||||||
|
* `void led_set_kb(uint8_t usb_led)`
|
||||||
|
|
||||||
|
### `<keyboard_name.h>`
|
||||||
|
|
||||||
|
Este archivo se utiliza para definir la matriz para tu teclado. Debes definir al menos un macro de C que traduce una serie en una matriz que representa la matriz de interruptor físico para tu teclado. Si es posible construir tu teclado con múltiples diseños debes definir macros adicionales.
|
||||||
|
|
||||||
|
Si solo tienes un diseño debes llamar a esta macro `LAYOUT`.
|
||||||
|
|
||||||
|
Al definir diseños múltiples debes tener un diseño base, llamado `LAYOUT_all`, que soporte todas las posibles posiciones de switch en tu matriz, incluso si ese diseño es imposible de construir físicamente. Esta es la macro que deberías usar en tu keymap `predeterminado`. Debes tener keymaps adicionales llamados `default_ término layout>` que usen tus otras macros de diseño. Esto hará que sea más fácil para las personas utilizar los diseños que defines.
|
||||||
|
|
||||||
|
Los nombres de las macros de diseño son completamente minúsculas, excepto por la palabra `LAYOUT` en el frente.
|
||||||
|
|
||||||
|
Por ejemplo, si tienes un PCB de 60% que soporta ANSI e ISO podría definir los siguientes diseños y keymaps:
|
||||||
|
|
||||||
|
| Nombre de diseño | Nombre de keymap | Descripción |
|
||||||
|
|-------------|-------------|-------------|
|
||||||
|
| LAYOUT_all | default | Un diseño que soporta tanto ISO como ANSI |
|
||||||
|
| LAYOUT_ansi | default_ansi | Un diseño ANSI |
|
||||||
|
| LAYOUT_iso | default_iso | Un diseño ISO |
|
||||||
|
|
||||||
|
## Archivos de Imagen/Hardware
|
||||||
|
|
||||||
|
En un esfuerzo por mantener el tamaño de repo abajo ya no estamos aceptando archivos binarios de cualquier formato, con pocas excepciones. Alojarlos en otro lugar (por ejemplo <https://imgur.com>) y enlazarlos en el `readme.md` es preferible.
|
||||||
|
|
||||||
|
Para archivos de hardware (tales como placas, casos, pcb) puedes contribuir a [qmk.fm repo](https://github.com/qmk/qmk.fm) y estarán disponibles en [qmk.fm](http://qmk.fm). Archivos descargables se almacenan en `/<teclado>/` (nombre sigue el mismo formato que el anterior), se sirven en `http://qmk.fm/<teclado>/`, y se generan páginas de `/_pages/<teclado>/` que se sirven en la misma ubicación (Los archivos .md se generan en archivos .html mediante Jekyll). Echa un vistazo a la carpeta `lets_split` para ver un ejemplo.
|
||||||
|
|
||||||
|
## Predeterminados de teclado
|
||||||
|
|
||||||
|
Dada la cantidad de funcionalidad que expone QMK, es muy fácil confundir a los nuevos usuarios. Al armar el firmware predeterminado para tu teclado, te recomendamos limitar tus funciones y opciones habilitadas al conjunto mínimo necesario para soportar tu hardware. A continuación se formulan recomendaciones sobre características específicas.
|
||||||
|
|
||||||
|
### Bootmagic y Command
|
||||||
|
|
||||||
|
[Bootmagic](feature_bootmagic.md) and [Command](feature_command.md) son dos características relacionadas que permiten a un usuario controlar su teclado de manera no obvia. Te recomendamos que piense largo y tendido acerca de si vas a habilitar cualquiera de las características, y cómo vas a exponer esta funcionalidad. Tengas en cuenta que los usuarios que quieren esta funcionalidad puede habilitarla en sus keymaps personales sin afectar a todos los usuarios novatos que pueden estar usando tu teclado como su primera tarjeta programable.
|
||||||
|
|
||||||
|
De lejos el problema más común con el que se encuentran los nuevos usuarios es la activación accidental de Bootmagic mientras están conectando su teclado. Están sosteniendo el teclado por la parte inferior, presionando sin saberlo en alt y barra espaciadora, y luego se dan cuenta de que estas teclas han sido intercambiadas en ellos. Recomendamos dejar esta característica deshabilitada de forma predeterminada, pero si la activas consideres establecer la opción `BOOTMAGIC_KEY_SALT` a una tecla que es difícil de presionar al conectar el teclado.
|
||||||
|
|
||||||
|
Si tu teclado no tiene 2 teclas de cambio debes proporcionar un predeterminado de trabajo para `IS_COMMAND`, incluso cuando haya definido `COMMAND_ENABLE = no`. Esto dará a sus usuarios un valor predeterminado para ajustarse a si lo hacen enable Command.
|
||||||
|
|
||||||
|
## Programación de teclado personalizado
|
||||||
|
|
||||||
|
Como se documenta en [Funcionalidad de Adaptación](custom_quantum_functions.md) puedes definir funciones personalizadas para tu teclado. Por favor, tengas en cuenta que sus usuarios pueden querer personalizar ese comportamiento así, y hacer que sea posible para que puedan hacer eso. Si está proporcionando una función personalizada, por ejemplo `process_record_kb()`, asegúrese de que su función también llame a la versión` `_user()` de la llamada. También debes tener en cuenta el valor de retorno de la versión `_user()`, y ejecutar sólo tu código personalizado si el usuario devuelve `true`.
|
||||||
|
|
||||||
|
## Proyectos Sin Producción/Conectados A Mano
|
||||||
|
|
||||||
|
Estamos encantados de aceptar cualquier proyecto que utilice QMK, incluidos los prototipos y los cableados de mano, pero tenemos una carpeta `/keyboards/handwired/` separada para ellos, por lo que la carpeta `/keyboards/` principal no se llena. Si un proyecto prototipo se convierte en un proyecto de producción en algún momento en el futuro, ¡estaremos encantados de moverlo a la carpeta `/keyboards/` principal!
|
||||||
|
|
||||||
|
## Advertencias como errores
|
||||||
|
|
||||||
|
Al desarrollar su teclado, tengas en cuenta que todas las advertencias serán tratadas como errores - estas pequeñas advertencias pueden acumularse y causar errores más grandes en el camino (y pierdan es generalmente una mala práctica).
|
||||||
|
|
||||||
|
## Derechos de autor
|
||||||
|
|
||||||
|
Si estás adaptando la configuración de tu teclado de otro proyecto, pero no utilizando el mismo código, asegúrese de actualizar la cabecera de derechos de autor en la parte superior de los archivos para mostrar tu nombre, en este formato:
|
||||||
|
|
||||||
|
Copyright 2017 Tu nombre <tu@email.com>
|
||||||
|
|
||||||
|
Si estás modificando el código de otra persona y sólo ha hecho cambios triviales debes dejar su nombre en la declaración de derechos de autor. Si has hecho un trabajo significativo en el archivo debe agregar tu nombre a la de ellos, así:
|
||||||
|
|
||||||
|
Copyright 2017 Su nombre <original_author@ejemplo.com> Tu nombre <tu@ejemplo.com>
|
||||||
|
|
||||||
|
El año debe ser el primer año en que se crea el archivo. Si el trabajo se hizo a ese archivo en años posteriores puedes reflejar que mediante la adición del segundo año a la primera, como así:
|
||||||
|
|
||||||
|
Copyright 2015-2017 Tu nombre <tu@ejemplo.com>
|
||||||
|
|
||||||
|
## Licencia
|
||||||
|
|
||||||
|
El núcleo de QMC está licenciado bajo la [GNU General Public License](https://www.gnu.org/licenses/licenses.en.html). Si estás enviando binarios para los procesadores AVR puedes elegir cualquiera [GPLv2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html) o [GPLv3](https://www.gnu.org/licenses/gpl.html). Si estás enviando binarios para ARM procesadores debes elegir [GPL Versión 3](https://www.gnu.org/licenses/gpl.html) para cumplir con los [ChibiOS](http://www.chibios.org) licencia GPLv3.
|
||||||
|
|
||||||
|
Si tu teclado hace uso de la [uGFX](https://gfx.io) características dentro de QMK debes cumplir con la [Licencia de uGFX](https://ugfx.io/license.html), que requiere una licencia comercial separada antes de vender un dispositivo que contiene uGFX.
|
||||||
|
|
||||||
|
## Detalles técnicos
|
||||||
|
|
||||||
|
Si estás buscando más información sobre cómo hacer que su teclado funcione con QMK, [echa un vistazo a la sección hardware](hardware.md)!
|
23
docs/es/newbs.md
Normal file
23
docs/es/newbs.md
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# La guía completa de QMK para novatos
|
||||||
|
|
||||||
|
QMK es un poderoso firmware Open Source para tu teclado mecánico. Puedes utilizar QMK para personalizar tu teclado en maneras a la vez simples y potentes. Gente de todos los niveles de habilidad, desde completos novatos hasta expertos programadores, han utilizado con éxito QMK para personalizar sus teclados. Esta guía te ayudará a hacer lo mismo, sin importar tu nivel de habilidad.
|
||||||
|
|
||||||
|
¿No estás seguro de si tu teclado puede ejecutar QMK? Si es un teclado mecánico construido por ti mismo probablemente puedas. Damos soporte a [gran número de placas de hobbistas](http://qmk.fm/keyboards/), e incluso si tu teclado actual no pudiera ejecutar QMK no deberías tener problemas encontrando uno que cumpliera tus necesidades.
|
||||||
|
|
||||||
|
## Visión general
|
||||||
|
|
||||||
|
Hay 7 secciones principales en esta guía:
|
||||||
|
|
||||||
|
* [Empezando](newbs_getting_started.md)
|
||||||
|
* [Construyendo tu primer firmware](newbs_building_firmware.md)
|
||||||
|
* [Construyendo tu primer firmware usando la GUI](newbs_building_firmware_configurator.md)
|
||||||
|
* [Flasheando el firmware](newbs_flashing.md)
|
||||||
|
* [Testeando y depurando](newbs_testing_debugging.md)
|
||||||
|
* [Mejores práticas](newbs_best_practices.md)
|
||||||
|
* [Recursos de aprendizaje](newbs_learn_more_resources.md)
|
||||||
|
|
||||||
|
Esta guía está enfocada en ayudar a alguien que nunca ha compilado software con anterioridad. Toma decisiones y hace recomendaciones teniendo en cuenta este punto de vista. Hay métodos alternativos para muchos de estos procedimientos, y soportamos la mayoría de esas alternativas. Si tienes alguna duda sobre cómo llevar a cabo una tarea nos puedes [preguntar para que te guiemos](getting_started_getting_help.md).
|
||||||
|
|
||||||
|
## Recursos adicionales
|
||||||
|
|
||||||
|
* [Blog de Básicos de Thomas Baart's QMK](https://thomasbaart.nl/category/mechanical-keyboards/firmware/qmk/qmk-basics/) – Un blog creado por un usuario que cubre lo básico sobre cómo usar el firmware QMK Firmware, visto desde la perspectiva de un usuario nuevo.
|
159
docs/es/newbs_best_practices.md
Normal file
159
docs/es/newbs_best_practices.md
Normal file
@@ -0,0 +1,159 @@
|
|||||||
|
# Mejores prácticas
|
||||||
|
|
||||||
|
## O, "Cómo aprendí a dejar de preocuparme y amarle a Git."
|
||||||
|
|
||||||
|
Este documento procura instruir a los novatos en las mejores prácticas para tener una experiencia más fácil en contribuir a QMK. Te guiaremos por el proceso de contribuir a QMK, explicando algunas maneras de hacerlo más fácilmente, y luego romperemos algunas cosas para enseñarte cómo arreglarlas.
|
||||||
|
|
||||||
|
En este documento suponemos un par de cosas:
|
||||||
|
|
||||||
|
1. Tienes una cuenta de Github, y has hecho un [fork del repo qmk_firmware](getting_started_github.md) en tu cuenta.
|
||||||
|
2. Has [configurado tu entorno de desarrollo](newbs_getting_started.md?id=environment-setup).
|
||||||
|
|
||||||
|
|
||||||
|
## La rama master de tu fork: Actualizar a menudo, nunca commit
|
||||||
|
|
||||||
|
Se recomienda que para desarrollo con QMK, lo que sea que estés haciendo, mantener tu rama `master` actualizada, pero **nunca** commit en ella. Mejor, haz todos tus cambios en una rama de desarrollo y manda pull requests de tus ramas mientras programas.
|
||||||
|
|
||||||
|
Para evitar los conflictos de merge — cuando dos o más usuarios han editado la misma parte de un archivo al mismo tiempo — mantén tu rama `master` actualizada, y empieza desarrollo nuevo creando una nueva rama.
|
||||||
|
|
||||||
|
### Actualizando tu rama master
|
||||||
|
|
||||||
|
Para mantener tu rama `master` actualizada, se recomienda agregar el repository ("repo") de Firmware QMK como un repo remoto en git. Para hacer esto, abre tu interfaz de línea de mandatos y ingresa:
|
||||||
|
```
|
||||||
|
git remote add upstream https://github.com/qmk/qmk_firmware.git
|
||||||
|
```
|
||||||
|
|
||||||
|
Para verificar que el repo ha sido agregado, ejecuta `git remote -v`, y lo siguiente debe aparecer:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ git remote -v
|
||||||
|
origin https://github.com/<your_username>/qmk_firmware.git (fetch)
|
||||||
|
origin https://github.com/<your_username>/qmk_firmware.git (push)
|
||||||
|
upstream https://github.com/qmk/qmk_firmware.git (fetch)
|
||||||
|
upstream https://github.com/qmk/qmk_firmware.git (push)
|
||||||
|
```
|
||||||
|
|
||||||
|
Ya que has hecho esto, puedes buscar actualizaciones del repo ejecutando `git fetch upstream`. Esto busca las ramas y etiquetas — juntos conocidos como "refs" — del repo QMK, que ahora tiene el apodo `upstream`. Ahora podemos comparar los archivos en nuestro fork `origin` con los de QMK.
|
||||||
|
|
||||||
|
Para actualizar la rama master de tu fork, ejecuta lo siguiente, pulsando Intro después de cada línea:
|
||||||
|
|
||||||
|
```
|
||||||
|
git checkout master
|
||||||
|
git fetch upstream
|
||||||
|
git pull upstream master
|
||||||
|
git push origin master
|
||||||
|
```
|
||||||
|
|
||||||
|
Esto te coloca en tu rama master, busca los refs del repo de QMK, descarga la rama `master` actual a tu computadora, y después lo sube a tu fork.
|
||||||
|
|
||||||
|
### Hacer cambios
|
||||||
|
|
||||||
|
Para hacer cambios, crea una nueva rama ejecutando:
|
||||||
|
|
||||||
|
```
|
||||||
|
git checkout -b dev_branch
|
||||||
|
git push --set-upstream origin dev_branch
|
||||||
|
```
|
||||||
|
|
||||||
|
Esto crea una nueva rama llamada `dev_branch`, te coloca en ella, y después guarda la nueva rama a tu fork. El parámetro `--set-upstream` le dice a git que use tu fork y la rama `dev_branch` cada vez que uses `git push` o `git pull` en esta rama. Solo necesitas usarlo la primera que que subes cambios; ya después, puedes usar `git push` o `git pull`, sin usar los demás parámetros.
|
||||||
|
|
||||||
|
!> Con `git push`, puedes usar `-u` en vez de `--set-upstream` — `-u` es un alias de `--set-upstream`.
|
||||||
|
|
||||||
|
Puedes nombrar tu rama casi cualquier cosa, pero se recomienda ponerle algo con relación a los cambios que vas a hacer.
|
||||||
|
|
||||||
|
Por defecto `git checkout -b` se basará tu nueva rama en la rama en la cual estás actualmente. Puedes basar tu rama en otra rama existente agregando el nombre de la rama al comando:
|
||||||
|
|
||||||
|
```
|
||||||
|
git checkout -b dev_branch master
|
||||||
|
```
|
||||||
|
|
||||||
|
Ahora que tienes una rama development, abre tu editor de texto y haz los cambios que quieres. Se recomienda hacer varios commits pequeños a tu rama; de este modo cualquier cambio que causa problemas puede ser rastreado y deshecho si fuera necesario. Para hacer tus cambios, edita y guarda los archivos que necesitas actualizar, agrégalos al *staging area* de Git, y luego haz un commit a tu rama:
|
||||||
|
|
||||||
|
```
|
||||||
|
git add path/to/updated_file
|
||||||
|
git commit -m "My commit message."
|
||||||
|
```
|
||||||
|
`git add` agrega los archivos que han sido cambiados al *staging area* de Git, lo cual es la "zona de preparación"de Git. Este contiene los cambios que vas a *commit* usando `git commit`, que guarda los cambios en el repo. Usa un mensaje de commit descriptivo para que puedas saber que ha cambiado fácilmente.
|
||||||
|
|
||||||
|
!> Si has cambiado muchos archivos, pero todos los archivos son parte del mismo cambio, puedes usar `git add .` para agregar todos los archivos cambiados que están en tu directiro actual, en vez de agregar cada archivo manualmente.
|
||||||
|
|
||||||
|
### Publicar tus cambios
|
||||||
|
|
||||||
|
El útimo paso es subir tus cambios a tu fork. Para hacerlo, ejecuta `git push`. Ahora Git publicará el estado actual de `dev_branch` a tu fork.
|
||||||
|
|
||||||
|
|
||||||
|
## Resolver los conflictos del merge
|
||||||
|
|
||||||
|
A veces cuando el trabajo en una rama tarda mucho tiempo en completarse, los cambios que han sido hechos por otros chocan con los cambios que has hecho en tu rama cuando abres un pull request. Esto se llama un *merge conflict*, y es algo que ocurre cuando varias personas editan las mismas partes de los mismos archivos.
|
||||||
|
|
||||||
|
### Rebase tus cambios
|
||||||
|
|
||||||
|
Un *rebase* es la manera de Git de tomar los cambios que se aplicaron en un punto, deshacerlos, y aplicar estos mismos cambios en otro punto. En el caso de un conflicto de merge, puedes hacer un rebase de tu rama para recoger los cambios que has hecho.
|
||||||
|
|
||||||
|
Para empezar, ejecuta lo siguiente:
|
||||||
|
|
||||||
|
```
|
||||||
|
git fetch upstream
|
||||||
|
git rev-list --left-right --count HEAD...upstream/master
|
||||||
|
```
|
||||||
|
|
||||||
|
El comando `git rev-list` ejecutado aquí muestra el número de commits que difieren entre la rama actual y la rama master de QMK. Ejecutamos `git fetch` primero para asegurarnos de que tenemos los refs que representan es estado actual del repo upstream. El output del comando `git rev-list` muestra dos números:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ git rev-list --left-right --count HEAD...upstream/master
|
||||||
|
7 35
|
||||||
|
```
|
||||||
|
|
||||||
|
El primer número representa el número de commits en la rama actual desde que fue creada, y el segundo número es el número de commits hecho a `upstream/master` desde que la rama actual fue creada, o sea los cambios que no están registrados en la rama actual.
|
||||||
|
|
||||||
|
Ahora que sabemos el estado actual de la rama actual y el del repo upstream, podemos empezar una operación rebase:
|
||||||
|
|
||||||
|
```
|
||||||
|
git rebase upstream/master
|
||||||
|
```
|
||||||
|
Esto le dice a Git que deshaga los commits en la rama actual, y después los re-aplica en la rama master de QMK.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ git rebase upstream/master
|
||||||
|
First, rewinding head to replay your work on top of it...
|
||||||
|
Applying: Commit #1
|
||||||
|
Using index info to reconstruct a base tree...
|
||||||
|
M conflicting_file_1.txt
|
||||||
|
Falling back to patching base and 3-way merge...
|
||||||
|
Auto-merging conflicting_file_1.txt
|
||||||
|
CONFLICT (content): Merge conflict in conflicting_file_1.txt
|
||||||
|
error: Failed to merge in the changes.
|
||||||
|
hint: Use 'git am --show-current-patch' to see the failed patch
|
||||||
|
Patch failed at 0001 Commit #1
|
||||||
|
|
||||||
|
Resolve all conflicts manually, mark them as resolved with
|
||||||
|
"git add/rm <conflicted_files>", then run "git rebase --continue".
|
||||||
|
You can instead skip this commit: run "git rebase --skip".
|
||||||
|
To abort and get back to the state before "git rebase", run "git rebase --abort".
|
||||||
|
```
|
||||||
|
|
||||||
|
Esto nos dice que tenemos un conflicto de merge, y nos dice el nombre del archivo con el conflict. Abre el archivo en tu editor de texto, y en alguna parte del archivo verás algo así:
|
||||||
|
|
||||||
|
```
|
||||||
|
<<<<<<< HEAD
|
||||||
|
<p>For help with any issues, email us at support@webhost.us.</p>
|
||||||
|
=======
|
||||||
|
<p>Need help? Email support@webhost.us.</p>
|
||||||
|
>>>>>>> Commit #1
|
||||||
|
```
|
||||||
|
La línea `<<<<<<< HEAD` marca el principio de un conflicto de merge, y la línea `>>>>>>> Commit #1` marca el final, con las secciones de conflicto separadas por `=======`. La parte del lado `HEAD` is de la versión de QMK master del archivo, y la parte marcada con el mensaje de commit es de la rama actual.
|
||||||
|
|
||||||
|
Ya que Git rastrea *cambios de archivos* en vez del contenido de los archivos directamente, si Git no puede encontrar el texto que estaba en el archivo antes del último commit, no sabrá cómo editar el archivo. El editar el archivo de nuevo resolverá este conflicto. Haz tus cambios, y guarda el archivo.
|
||||||
|
|
||||||
|
```
|
||||||
|
<p>Need help? Email support@webhost.us.</p>
|
||||||
|
```
|
||||||
|
|
||||||
|
Ahora ejecuta:
|
||||||
|
|
||||||
|
```
|
||||||
|
git add conflicting_file_1.txt
|
||||||
|
git rebase --continue
|
||||||
|
```
|
||||||
|
|
||||||
|
Git registra los cambios al archivo con conflictos, y sigue aplicando los commits de nuestra rama hasta llegar al final.
|
81
docs/es/newbs_building_firmware.md
Normal file
81
docs/es/newbs_building_firmware.md
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
# Construyendo tu primer firmware
|
||||||
|
|
||||||
|
Ahora que has configurado tu entorno de construcción estas listo para empezar a construir firmwares personalizados. Para esta sección de la guía alternaremos entre 3 programas - tu gestor de ficheros, tu editor de texto , y tu ventana de terminal. Manten los 3 abiertos hasta que hayas acabado y estés contento con el firmware de tu teclado.
|
||||||
|
|
||||||
|
Si has cerrado y reabierto la ventana de tu terminal después de seguir el primero paso de esta guía, no olvides hacer `cd qmk_firmware` para que tu terminal esté en el directorio correcto.
|
||||||
|
|
||||||
|
## Navega a tu carpeta de keymaps
|
||||||
|
|
||||||
|
Comienza navegando a la carpeta `keymaps` correspondiente a tu teclado.
|
||||||
|
|
||||||
|
?> Si estás en macOS o Windows hay comandos que puedes utilizar fácilmente para abrir la carpeta keymaps.
|
||||||
|
|
||||||
|
?> macOS:
|
||||||
|
|
||||||
|
abre keyboards/<keyboard_folder>/keymaps
|
||||||
|
|
||||||
|
?> Windows:
|
||||||
|
|
||||||
|
inicia .\\keyboards\\<keyboard_folder>\\keymaps
|
||||||
|
|
||||||
|
## Crea una copia del keymap `default`
|
||||||
|
|
||||||
|
Una vez que tengas la carpeta `keymaps` abierta querrás crear una copia de la carpeta `default`. Recomendamos encarecidamente que nombres la carpeta igual que tu nombre de usuario de GitHub, pero puedes utilizar el nombre que quieras siempre que contenga sólo letras en minúscula, números y el caracter de guión bajo.
|
||||||
|
|
||||||
|
Para automatizar el proceso, también tienes la opción de ejecutar el script `new_keymap.sh`.
|
||||||
|
|
||||||
|
Navega a la carpeta `qmk_firmware/util` e introduce lo siguiente:
|
||||||
|
|
||||||
|
```
|
||||||
|
./new_keymap.sh <keyboard path> <username>
|
||||||
|
```
|
||||||
|
|
||||||
|
Por ejemplo, para un usuario llamado John, intentando hacer un keymap nuevo para el 1up60hse, tendría que teclear
|
||||||
|
|
||||||
|
```
|
||||||
|
./new_keymap.sh 1upkeyboards/1up60hse john
|
||||||
|
```
|
||||||
|
|
||||||
|
## Abre `keymap.c` con tu editor de texto favorito
|
||||||
|
|
||||||
|
Abre tu `keymap.c`. Dentro de este fichero encontrarás la estructura que controla cómo se comporta tu teclado. En lo alto de `keymap.c` puede haber distintos defines y enums que hacen el keymap más fácil de leer. Continuando por abajo encontrarás una línea con este aspecto:
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
Esta línea indica el comienzo del listado de Capas. Debajo encontrarás líneas que contienen o bien `LAYOUT` o `KEYMAP`, y estas líneas indican el comienzo de una capa. Debajo de esa línea está la lista de teclas que pertenecen a esa capa concreta.
|
||||||
|
|
||||||
|
!> Cuando estés editando tu fichero de keymap ten cuidado con no añadir ni eliminar ninguna coma. Si lo haces el firmware dejará de compilar y puede no ser fácil averiguar dónde está la coma faltante o sobrante.
|
||||||
|
|
||||||
|
## Personaliza el Layout a tu gusto
|
||||||
|
|
||||||
|
Cómo completar esta paso depende enteramente de ti. Haz ese pequeño cambio que querías o rehaz completamente todo. Puedes eliminar capas si no las necesitas todas, o añadir nuevas hasta un total de 32. Comprueba la siguiente documentación para descubrir qué es lo que puedes definir aquí:
|
||||||
|
|
||||||
|
* [Keycodes](keycodes.md)
|
||||||
|
* [Características](features.md)
|
||||||
|
* [Preguntas frecuentes](faq.md)
|
||||||
|
|
||||||
|
?> Mientras estás descubriendo cómo funcionan los keymaps, haz pequeños cambios. Cambios mayores pueden hacer difícil la depuración de problemas que puedan aparecer.
|
||||||
|
|
||||||
|
## Construye tu firmware
|
||||||
|
|
||||||
|
Cuando los cambios a tu keymap están completos necesitarás construir el firmware. Para hacerlo vuelve a la ventana de tu terminal y ejecuta el siguiente comando:
|
||||||
|
|
||||||
|
make <my_keyboard>:<my_keymap>
|
||||||
|
|
||||||
|
Por ejemplo, si tu keymap se llama "xyverz" y estás construyendo un keymap para un planck rev5, utilizarás el siguiente comando:
|
||||||
|
|
||||||
|
make planck/rev5:xyverz
|
||||||
|
|
||||||
|
Mientras compila, recibirás un montón de información de salida en la pantalla informándote de qué ficheros están siendo compilados. Debería acabar con una información similar a esta:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/planck_rev5_xyverz.elf [OK]
|
||||||
|
Creating load file for flashing: .build/planck_rev5_xyverz.hex [OK]
|
||||||
|
Copying planck_rev5_xyverz.hex to qmk_firmware folder [OK]
|
||||||
|
Checking file size of planck_rev5_xyverz.hex [OK]
|
||||||
|
* File size is fine - 18392/28672
|
||||||
|
```
|
||||||
|
|
||||||
|
## Flashea tu firmware
|
||||||
|
|
||||||
|
Continua con [Flasheando el firmware](newbs_flashing.md) para aprender cómo escribir tu firmware nuevo en tu teclado.
|
105
docs/es/newbs_building_firmware_configurator.md
Normal file
105
docs/es/newbs_building_firmware_configurator.md
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
# Configurador QMK
|
||||||
|
|
||||||
|
El [Configurador QMK](https://config.qmk.fm) es un entorno gráfico online que genera ficheros hexadecimales de Firmware QMK.
|
||||||
|
|
||||||
|
?> **Por favor sigue estos pasos en orden.**
|
||||||
|
|
||||||
|
Ve el [Video tutorial](https://youtu.be/tx54jkRC9ZY)
|
||||||
|
|
||||||
|
El Configurador QMK functiona mejor con Chrome/Firefox.
|
||||||
|
|
||||||
|
|
||||||
|
!> **Ficheros de otras herramientas como KLE, o kbfirmware no serán compatibles con el Configurador QMK. No las cargues, no las importes. El configurador Configurador QMK es una herramienta DIFERENTE. **
|
||||||
|
|
||||||
|
## Seleccionando tu teclado
|
||||||
|
|
||||||
|
Haz click en el desplegable y selecciona el teclado para el que quieres crear el keymap.
|
||||||
|
|
||||||
|
?> Si tu teclado tiene varias versiones, asegúrate de que seleccionas la correcta.**
|
||||||
|
|
||||||
|
Lo diré otra vez porque es importante
|
||||||
|
|
||||||
|
!> **ASEGÚRATE DE QUE SELECCIONAS LA VERSIÓN CORRECTA!**
|
||||||
|
|
||||||
|
Si se ha anunciado que tu teclado funciona con QMK pero no está en la lista, es probable que un desarrollador no se haya encargado de él aún o que todavía no hemos tenido la oportunidad de incluirlo. Abre un issue en [qmk_firmware](https://github.com/qmk/qmk_firmware/issues) solicitando soportar ese teclado un particular, si no hay un [Pull Request](https://github.com/qmk/qmk_firmware/pulls?q=is%3Aopen+is%3Apr+label%3Akeyboard) activo para ello. Hay también teclados que funcionan con QMK que están en las cuentas de github de sus manufacturantes. Acuérdate de comprobar esto también.
|
||||||
|
|
||||||
|
## Eligiendo el layout de tu teclado
|
||||||
|
|
||||||
|
Elige el layout que mejor represente el keymap que quieres crear. Algunos teclados no tienen suficientes layouts o layouts correctos definidos aún. Serán soportados en el futuro.
|
||||||
|
|
||||||
|
## Nombre del keymap
|
||||||
|
|
||||||
|
Llama a este keymap como quieras.
|
||||||
|
|
||||||
|
?> Si estás teniendo problemas para compilar, puede merecer la pena probar un cambio de nombre, ya que puede que ya exista en el repositorio de QMK Firmware.
|
||||||
|
|
||||||
|
## Creando Tu keymap
|
||||||
|
|
||||||
|
La adición de keycodes se puede hacer de 3 maneras.
|
||||||
|
1. Arrastrando y soltando
|
||||||
|
2. Clickando en un hueco vacío en el layout y haciendo click en el keycode que deseas
|
||||||
|
3. Clickando en un hueco vacío en el layout, presionando la tecla física en tu teclado.
|
||||||
|
|
||||||
|
Mueve el puntero de tu ratón sobre una tecla y un pequeño extracto te dirá que es lo que hace la tecla. Para una descripción más detallada por favor, mira
|
||||||
|
|
||||||
|
[Referencia básica de keycodes](https://docs.qmk.fm/#/keycodes_basic)
|
||||||
|
[Referencia avanzada de keycodes](https://docs.qmk.fm/#/feature_advanced_keycodes)
|
||||||
|
|
||||||
|
En el caso de que no puedas encontrar un layout que suporte tu keymap, por ejemplo, tres huecos para la barra espaciadora, dos huecos para el retroceso o dos huecos para shift etc etc, rellènalos TODOS.
|
||||||
|
|
||||||
|
### Ejemplo:
|
||||||
|
|
||||||
|
3 huecos para barra espaciadora: Rellena TODOS con barra espaciadora
|
||||||
|
|
||||||
|
2 huecos para retroceso: Rellena AMBOS con retroceso
|
||||||
|
|
||||||
|
2 huecos para el shift derecho: Rellena AMBOS con shift derecho
|
||||||
|
|
||||||
|
1 hueco para el shift izquierdo y 1 hueco para soporte iso: Rellena ambos con el shift izquierdo
|
||||||
|
|
||||||
|
5 huecos , pero sólo 4 teclas: Intuye y comprueba o pregunta a alguien que lo haya hecho anteriormente.
|
||||||
|
|
||||||
|
## Guardando tu keymap para ediciones futuras
|
||||||
|
|
||||||
|
Cuando estés satisfecho con un teclado o quieres trabajar en el después, pulsa el botón `Exportar Keymap`. Guardára tu keymap con el nombre que elijas seguido de .json.
|
||||||
|
|
||||||
|
Entonces podrás cargar este fichero .json en el futuro pulsando el botón `Importar Keymap`.
|
||||||
|
|
||||||
|
!> **PRECAUCIÓN:** No es el mismo tipo de fichero .json usado en kbfirmware.com ni ninguna otra herramienta. Si intentas utilizar un fichero .json de alguna de estas herramientas con el Configurador QMK, existe la posibilidad de que tu teclado **explote**.
|
||||||
|
|
||||||
|
## Generando tu fichero de firmware
|
||||||
|
|
||||||
|
Pulsa el botón verde `Compilar`.
|
||||||
|
|
||||||
|
Cuando la compilación haya acabado, podrás presionar el botón verde `Descargar Firmware`.
|
||||||
|
|
||||||
|
## Flasheando tu teclado
|
||||||
|
|
||||||
|
Por favor, dirígete a la sección de [Flashear firmware](newbs_flashing.md)
|
||||||
|
|
||||||
|
## Problemas comunes
|
||||||
|
|
||||||
|
#### Mi fichero .json no funciona
|
||||||
|
|
||||||
|
Si el fichero .json fue generado con el Configurador QMK, enhorabuena, has dado con un bug. Abre una issue en [qmk_configurator](https://github.com/qmk/qmk_configurator/issues)
|
||||||
|
|
||||||
|
Si no....cómo no viste el mensaje en negrita que puse arriba diciendo que no hay que utilizar otros ficheros .json?
|
||||||
|
|
||||||
|
#### Hay espacios extra en mi layout ¿Qué hago?
|
||||||
|
|
||||||
|
Si te refieres a tener tres espacios para la barra espaciadora, la mejor decisión es rellenar los tres con la barra espaciadora. También se puede hacer lo mismo con las teclas retroceso y las de shift
|
||||||
|
|
||||||
|
#### Para qué sirve el keycode.......
|
||||||
|
|
||||||
|
Por favor, mira
|
||||||
|
|
||||||
|
[Referencia básica de keycodes](https://docs.qmk.fm/#/keycodes_basic)
|
||||||
|
[Referencia avanzada de keycodes](https://docs.qmk.fm/#/feature_advanced_keycodes)
|
||||||
|
|
||||||
|
#### No compila
|
||||||
|
|
||||||
|
Por favor, revisa las otras capas de tu keymap para asegurarte de que no hay teclas aleatorias presentes.
|
||||||
|
|
||||||
|
## Problemas y bugs
|
||||||
|
|
||||||
|
Siempre aceptamos peticiones de clientes y reportes de bug. Por favor, indícalos en [qmk_configurator](https://github.com/qmk/qmk_configurator/issues)
|
351
docs/es/newbs_flashing.md
Normal file
351
docs/es/newbs_flashing.md
Normal file
@@ -0,0 +1,351 @@
|
|||||||
|
# Flasheando tu teclado
|
||||||
|
|
||||||
|
Ahora que has construido tu fichero de firmware personalizado querrás flashear tu teclado.
|
||||||
|
|
||||||
|
## Flasheando tu teclado con QMK Toolbox
|
||||||
|
|
||||||
|
La manera más simple de flashear tu teclado sería con [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases).
|
||||||
|
|
||||||
|
De todos modos, QMK Toolbox actualmente sólo está disponible para Windows y macOS. Si estás usando Linux (o sólo quisieras flashear el firmware desde la línea de comandos), tendrás que utilizar el [método indicado abajo](newbs_flashing.md#flash-your-keyboard-from-the-command-line).
|
||||||
|
|
||||||
|
### Cargar el fichero en QMK Toolbox
|
||||||
|
|
||||||
|
Empieza abriendo la aplicación QMK Toolbox. Tendrás que buscar el fichero de firmware usando Finder o Explorer. El firmware de teclado puede estar en uno de estos dos formatos- `.hex` o `.bin`. QMK intenta copiar el apropiado para tu teclado en el fichero raíz `qmk_firmware`.
|
||||||
|
|
||||||
|
?> Si tu estás on Windows o macOS hay comandos que puedes usar para abrir fácilmente la carpeta del firmware actual en Explorer o Finder.
|
||||||
|
|
||||||
|
?> Windows:
|
||||||
|
|
||||||
|
start .
|
||||||
|
|
||||||
|
?> macOS:
|
||||||
|
|
||||||
|
open .
|
||||||
|
|
||||||
|
El fichero de firmware sempre sigue el siguiente formato de nombre:
|
||||||
|
|
||||||
|
<nombre_teclado>_<nombre_keymap>.{bin,hex}
|
||||||
|
|
||||||
|
Por ejemplo, un `plank/rev5` con un keymap `default` tendrá este nombre de fichero:
|
||||||
|
|
||||||
|
planck_rev5_default.hex
|
||||||
|
|
||||||
|
Una vez que hayas localizado el fichero de tu firmware arrástralo a la caja "Fichero local" en QMK Toolbox, o haz click en "Abrir" y navega allí donde tengas almacenado tu fichero de firmware.
|
||||||
|
|
||||||
|
### Pon tu teclado en modo DFU (Bootloader)
|
||||||
|
|
||||||
|
Para poder flashear tu firmware personalizado tienes que poner tu teclado en un modo especial que permite flasheado. Cuando está en este modo no podrás teclear o utilizarlo para ninguna otra cosa. Es muy importante que no desconectes tu teclado, de lo contrario interrumpirás el proceso de flasheo mientras el firmware se está escribiendo.
|
||||||
|
|
||||||
|
Diferentes teclados tienen diferentes maneras de entrar en este modo especial. Si tu PCB actualmente ejecuta QMK o TMK y no has recibido instrucciones específicas, intenta los siguientes pasos en orden:
|
||||||
|
|
||||||
|
* Manten pulsadas ambas teclas shift y pulsa `Pause`
|
||||||
|
* Manten pulsadas ambas teclas shift y pulsa `B`
|
||||||
|
* Desconecta tu teclado, mantén pulsada la barra espaciadora y `B` al mismo tiempo, conecta tu teclado y espera un segundo antes de dejar de pulsar las teclas
|
||||||
|
* Pulsa el botón físico `RESET` situado en el fondo de la PCB
|
||||||
|
* Localiza los pines en la PCB etiquetados on `BOOT0` o `RESET`, puentea estos dos juntos cuando enchufes la PCB
|
||||||
|
|
||||||
|
Si has tenido éxito verás un mensaje similar a este en QMK Toolbox:
|
||||||
|
|
||||||
|
```
|
||||||
|
*** Clueboard - Clueboard 66% HotSwap disconnected -- 0xC1ED:0x2390
|
||||||
|
*** DFU device connected
|
||||||
|
```
|
||||||
|
|
||||||
|
### Flashea tu teclado
|
||||||
|
|
||||||
|
Haz click en el botón `Flash` de QMK Toolbox. Verás una información de salida similar a esta:
|
||||||
|
|
||||||
|
```
|
||||||
|
*** Clueboard - Clueboard 66% HotSwap disconnected -- 0xC1ED:0x2390
|
||||||
|
*** DFU device connected
|
||||||
|
*** Attempting to flash, please don't remove device
|
||||||
|
>>> dfu-programmer atmega32u4 erase --force
|
||||||
|
Erasing flash... Success
|
||||||
|
Checking memory from 0x0 to 0x6FFF... Empty.
|
||||||
|
>>> dfu-programmer atmega32u4 flash /Users/skully/qmk_firmware/clueboard_66_hotswap_gen1_skully.hex
|
||||||
|
Checking memory from 0x0 to 0x55FF... Empty.
|
||||||
|
0% 100% Programming 0x5600 bytes...
|
||||||
|
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
|
||||||
|
0% 100% Reading 0x7000 bytes...
|
||||||
|
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
|
||||||
|
Validating... Success
|
||||||
|
0x5600 bytes written into 0x7000 bytes memory (76.79%).
|
||||||
|
>>> dfu-programmer atmega32u4 reset
|
||||||
|
|
||||||
|
*** DFU device disconnected
|
||||||
|
*** Clueboard - Clueboard 66% HotSwap connected -- 0xC1ED:0x2390
|
||||||
|
```
|
||||||
|
|
||||||
|
## Flashea tu teclado desde la línea de comandos
|
||||||
|
|
||||||
|
Lo primero que tienes que saber es qué bootloader utiliza tu teclado. Hay cuatro bootloaders pincipales que se usan habitualmente . Pro-Micro y sus clones usan CATERINA, Teensy's usa Halfkay, las placas OLKB usan QMK-DFU, y otros chips atmega32u4 usan DFU.
|
||||||
|
|
||||||
|
Puedes encontrar más información sobre bootloaders en la página [Instrucciones de flasheado e información de Bootloader](flashing.md).
|
||||||
|
|
||||||
|
Si sabes qué bootloader estás usando, en el momento de compilar el firmware, podrás añadir algún texto extra al comando `make` para automatizar el proceso de flasheado.
|
||||||
|
|
||||||
|
### DFU
|
||||||
|
|
||||||
|
Para eo bootloader DFU, cuando estés listo para compilar y flashear tu firmware, abre tu ventana de terminal y ejecuta el siguiente comando de construcción:
|
||||||
|
|
||||||
|
make <my_keyboard>:<my_keymap>:dfu
|
||||||
|
|
||||||
|
Por ejemplo, si tu keymap se llama "xyverz" y estás construyendo un keymap para un planck rev5, utilizarás este comando:
|
||||||
|
|
||||||
|
make planck/rev5:xyverz:dfu
|
||||||
|
|
||||||
|
Una vez que finalice de compilar, deberá aparecer lo siguiente:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/planck_rev5_xyverz.elf [OK]
|
||||||
|
Creating load file for flashing: .build/planck_rev5_xyverz.hex [OK]
|
||||||
|
Copying planck_rev5_xyverz.hex to qmk_firmware folder [OK]
|
||||||
|
Checking file size of planck_rev5_xyverz.hex
|
||||||
|
* File size is fine - 18574/28672
|
||||||
|
```
|
||||||
|
|
||||||
|
Después de llegar a este punto, el script de construcción buscará el bootloader DFU cada 5 segundos. Repetirá lo siguiente hasta que se encuentre el dispositivo o lo canceles:
|
||||||
|
|
||||||
|
dfu-programmer: no device present.
|
||||||
|
Error: Bootloader not found. Trying again in 5s.
|
||||||
|
|
||||||
|
Una vez haya hecho esto, tendrás que reiniciar el controlador. Debería mostrar una información de salida similar a esta:
|
||||||
|
|
||||||
|
```
|
||||||
|
*** Attempting to flash, please don't remove device
|
||||||
|
>>> dfu-programmer atmega32u4 erase --force
|
||||||
|
Erasing flash... Success
|
||||||
|
Checking memory from 0x0 to 0x6FFF... Empty.
|
||||||
|
>>> dfu-programmer atmega32u4 flash /Users/skully/qmk_firmware/clueboard_66_hotswap_gen1_skully.hex
|
||||||
|
Checking memory from 0x0 to 0x55FF... Empty.
|
||||||
|
0% 100% Programming 0x5600 bytes...
|
||||||
|
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
|
||||||
|
0% 100% Reading 0x7000 bytes...
|
||||||
|
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] Success
|
||||||
|
Validating... Success
|
||||||
|
0x5600 bytes written into 0x7000 bytes memory (76.79%).
|
||||||
|
>>> dfu-programmer atmega32u4 reset
|
||||||
|
```
|
||||||
|
|
||||||
|
?> Si tienes problemas con esto- del estilo de `dfu-programmer: no device present` - por favor consulta las [Preguntas frecuentes de construcción](faq_build.md).
|
||||||
|
|
||||||
|
#### Comandos DFU
|
||||||
|
|
||||||
|
Hay un número de comandos DFU que puedes usar para flashear firmware a un dispositivo DFU:
|
||||||
|
|
||||||
|
* `:dfu` - Esta es la opción normal y espera hasta que un dispositivo DFU esté disponible, entonces flashea el firmware. Esperará reintentando cada 5 segundos, para ver si un dispositivo DFU ha aparecido.
|
||||||
|
* `:dfu-ee` - Esta flashea un fichero `eep` en vez del hex normal. Esto no es lo común.
|
||||||
|
* `:dfu-split-left` - Esta flashea el firmware normal, igual que la opción por defecto (`:dfu`). Sin embargo, también flashea el fichero EEPROM "Lado Izquierdo" para teclados divididos. _Esto es ideal para los ficheros divididos basados en Elite C._
|
||||||
|
* `:dfu-split-right` - Esto flashea el firmware normal, igual que la opción por defecto (`:dfu`). Sin embargo, también flashea el fichero EEPROM "Lado Derecho" para teclados divididos. _Esto es ideal para los ficheros divididos basados en Elite C._
|
||||||
|
|
||||||
|
|
||||||
|
### Caterina
|
||||||
|
|
||||||
|
Para placas Arduino y sus clones (como la SparkFun ProMicro), cuando estés listo para compilar y flashear tu firmware, abre tu ventana de terminal y ejecuta el siguiente comando de construcción:
|
||||||
|
|
||||||
|
make <my_keyboard>:<my_keymap>:avrdude
|
||||||
|
|
||||||
|
Por ejemplo, si tu keymap se llama "xyverz" y estás construyendo un keymap para un Lets Split rev2, usarás este comando:
|
||||||
|
|
||||||
|
make lets_split/rev2:xyverz:avrdude
|
||||||
|
|
||||||
|
Una vez que finalice de compilar, deberá aparecer lo siguiente:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/lets_split_rev2_xyverz.elf [OK]
|
||||||
|
Creating load file for flashing: .build/lets_split_rev2_xyverz.hex [OK]
|
||||||
|
Checking file size of lets_split_rev2_xyverz.hex [OK]
|
||||||
|
* File size is fine - 27938/28672
|
||||||
|
Detecting USB port, reset your controller now..............
|
||||||
|
```
|
||||||
|
|
||||||
|
En este punto, reinicia la placa y entonces el script detectará el bootloader y procederá a flashear la placa. La información de salida deber ser algo similar a esto:
|
||||||
|
|
||||||
|
```
|
||||||
|
Detected controller on USB port at /dev/ttyS15
|
||||||
|
|
||||||
|
Connecting to programmer: .
|
||||||
|
Found programmer: Id = "CATERIN"; type = S
|
||||||
|
Software Version = 1.0; No Hardware Version given.
|
||||||
|
Programmer supports auto addr increment.
|
||||||
|
Programmer supports buffered memory access with buffersize=128 bytes.
|
||||||
|
|
||||||
|
Programmer supports the following devices:
|
||||||
|
Device code: 0x44
|
||||||
|
|
||||||
|
avrdude.exe: AVR device initialized and ready to accept instructions
|
||||||
|
|
||||||
|
Reading | ################################################## | 100% 0.00s
|
||||||
|
|
||||||
|
avrdude.exe: Device signature = 0x1e9587 (probably m32u4)
|
||||||
|
avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
|
||||||
|
To disable this feature, specify the -D option.
|
||||||
|
avrdude.exe: erasing chip
|
||||||
|
avrdude.exe: reading input file "./.build/lets_split_rev2_xyverz.hex"
|
||||||
|
avrdude.exe: input file ./.build/lets_split_rev2_xyverz.hex auto detected as Intel Hex
|
||||||
|
avrdude.exe: writing flash (27938 bytes):
|
||||||
|
|
||||||
|
Writing | ################################################## | 100% 2.40s
|
||||||
|
|
||||||
|
avrdude.exe: 27938 bytes of flash written
|
||||||
|
avrdude.exe: verifying flash memory against ./.build/lets_split_rev2_xyverz.hex:
|
||||||
|
avrdude.exe: load data flash data from input file ./.build/lets_split_rev2_xyverz.hex:
|
||||||
|
avrdude.exe: input file ./.build/lets_split_rev2_xyverz.hex auto detected as Intel Hex
|
||||||
|
avrdude.exe: input file ./.build/lets_split_rev2_xyverz.hex contains 27938 bytes
|
||||||
|
avrdude.exe: reading on-chip flash data:
|
||||||
|
|
||||||
|
Reading | ################################################## | 100% 0.43s
|
||||||
|
|
||||||
|
avrdude.exe: verifying ...
|
||||||
|
avrdude.exe: 27938 bytes of flash verified
|
||||||
|
|
||||||
|
avrdude.exe: safemode: Fuses OK (E:CB, H:D8, L:FF)
|
||||||
|
|
||||||
|
avrdude.exe done. Thank you.
|
||||||
|
```
|
||||||
|
Si tienes problemas con esto, puede ser necesario que hagas esto:
|
||||||
|
|
||||||
|
sudo make <my_keyboard>:<my_keymap>:avrdude
|
||||||
|
|
||||||
|
|
||||||
|
Adicionalmente, si quisieras flashear múltiples placas, usa el siguiente comando:
|
||||||
|
|
||||||
|
make <keyboard>:<keymap>:avrdude-loop
|
||||||
|
|
||||||
|
Cuando hayas acabado de flashear placas, necesitarás pulsar Ctrl + C o cualquier combinación que esté definida en tu sistema operativo para finalizar el bucle.
|
||||||
|
|
||||||
|
|
||||||
|
### HalfKay
|
||||||
|
|
||||||
|
Para dispositivos PJRC (Teensy's), cuando estés listo para compilar y flashear tu firmware, abre tu ventana de terminal y ejecuta el siguiente comando de construcción:
|
||||||
|
|
||||||
|
make <my_keyboard>:<my_keymap>:teensy
|
||||||
|
|
||||||
|
Por ejemplo, si tu keymap se llama "xyverz" y estás construyendo un keymap para un Ergodox o un Ergodox EZ, usarás este comando:
|
||||||
|
|
||||||
|
make ergodox_ez:xyverz:teensy
|
||||||
|
|
||||||
|
Una vez que el firmware acabe de compilar, deberá mostrar una información de salida como esta:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/ergodox_ez_xyverz.elf [OK]
|
||||||
|
Creating load file for flashing: .build/ergodox_ez_xyverz.hex [OK]
|
||||||
|
Checking file size of ergodox_ez_xyverz.hex [OK]
|
||||||
|
* File size is fine - 25584/32256
|
||||||
|
Teensy Loader, Command Line, Version 2.1
|
||||||
|
Read "./.build/ergodox_ez_xyverz.hex": 25584 bytes, 79.3% usage
|
||||||
|
Waiting for Teensy device...
|
||||||
|
(hint: press the reset button)
|
||||||
|
```
|
||||||
|
|
||||||
|
En este punto, reinicia tu placa. Una vez que lo hayas hecho, deberás ver una información de salida como esta:
|
||||||
|
|
||||||
|
```
|
||||||
|
Found HalfKay Bootloader
|
||||||
|
Read "./.build/ergodox_ez_xyverz.hex": 28532 bytes, 88.5% usage
|
||||||
|
Programming............................................................................................................................................................................
|
||||||
|
...................................................
|
||||||
|
Booting
|
||||||
|
```
|
||||||
|
|
||||||
|
### BootloadHID
|
||||||
|
|
||||||
|
Para placas basadas en Bootmapper Client(BMC)/bootloadHID/ATmega32A, cuando estés listo para compilar y flashear tu firmware, abre tu ventana de terminal y ejecuta el comando de construcción:
|
||||||
|
|
||||||
|
make <my_keyboard>:<my_keymap>:bootloaderHID
|
||||||
|
|
||||||
|
Por ejemplo, si tu keymap se llama "xyverz" y estás construyendo un keymap para un jj40, usarás esté comando:
|
||||||
|
|
||||||
|
make jj40:xyverz:bootloaderHID
|
||||||
|
|
||||||
|
Una vez que el firmware acaba de compilar, mostrará una información de salida como esta:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/jj40_default.elf [OK]
|
||||||
|
Creating load file for flashing: .build/jj40_default.hex [OK]
|
||||||
|
Copying jj40_default.hex to qmk_firmware folder [OK]
|
||||||
|
Checking file size of jj40_default.hex [OK]
|
||||||
|
* The firmware size is fine - 21920/28672 (6752 bytes free)
|
||||||
|
```
|
||||||
|
|
||||||
|
Después de llegar a este punto, el script de construcción buscará el bootloader DFU cada 5 segundos. Repetirá lo siguiente hasta que se encuentre el dispositivo o hasta que lo canceles.
|
||||||
|
|
||||||
|
```
|
||||||
|
Error opening HIDBoot device: The specified device was not found
|
||||||
|
Trying again in 5s.
|
||||||
|
```
|
||||||
|
|
||||||
|
Una vez que lo haga, querrás reinicar el controlador. Debería entonces mostrar una información de salida similar a esta:
|
||||||
|
|
||||||
|
```
|
||||||
|
Page size = 128 (0x80)
|
||||||
|
Device size = 32768 (0x8000); 30720 bytes remaining
|
||||||
|
Uploading 22016 (0x5600) bytes starting at 0 (0x0)
|
||||||
|
0x05580 ... 0x05600
|
||||||
|
```
|
||||||
|
|
||||||
|
### STM32 (ARM)
|
||||||
|
|
||||||
|
Para la mayoría de placas ARM (incluyendo la Proton C, Planck Rev 6, y Preonic Rev 3), cuando estés listo para compilar y flashear tu firmware, abre tu ventana de terminal y ejecuta el siguiente comando de construcción:
|
||||||
|
|
||||||
|
make <my_keyboard>:<my_keymap>:dfu-util
|
||||||
|
|
||||||
|
Por ejemplo, si tu keymap se llama "xyverz" y estás construyendo un keymap para un teclado Planck Revision 6, utilizarás este comando y a continuación reiniciarás el teclado con el bootloader (antes de que acabe de compilar):
|
||||||
|
|
||||||
|
make planck/rev6:xyverz:dfu-util
|
||||||
|
|
||||||
|
Una vez que el firmware acaba de compilar, mostrará una información de salida similar a esta:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/planck_rev6_xyverz.elf [OK]
|
||||||
|
Creating binary load file for flashing: .build/planck_rev6_xyverz.bin [OK]
|
||||||
|
Creating load file for flashing: .build/planck_rev6_xyverz.hex [OK]
|
||||||
|
|
||||||
|
Size after:
|
||||||
|
text data bss dec hex filename
|
||||||
|
0 41820 0 41820 a35c .build/planck_rev6_xyverz.hex
|
||||||
|
|
||||||
|
Copying planck_rev6_xyverz.bin to qmk_firmware folder [OK]
|
||||||
|
dfu-util 0.9
|
||||||
|
|
||||||
|
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
|
||||||
|
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
|
||||||
|
This program is Free Software and has ABSOLUTELY NO WARRANTY
|
||||||
|
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
|
||||||
|
|
||||||
|
Invalid DFU suffix signature
|
||||||
|
A valid DFU suffix will be required in a future dfu-util release!!!
|
||||||
|
Opening DFU capable USB device...
|
||||||
|
ID 0483:df11
|
||||||
|
Run-time device DFU version 011a
|
||||||
|
Claiming USB DFU Interface...
|
||||||
|
Setting Alternate Setting #0 ...
|
||||||
|
Determining device status: state = dfuERROR, status = 10
|
||||||
|
dfuERROR, clearing status
|
||||||
|
Determining device status: state = dfuIDLE, status = 0
|
||||||
|
dfuIDLE, continuing
|
||||||
|
DFU mode device DFU version 011a
|
||||||
|
Device returned transfer size 2048
|
||||||
|
DfuSe interface name: "Internal Flash "
|
||||||
|
Downloading to address = 0x08000000, size = 41824
|
||||||
|
Download [=========================] 100% 41824 bytes
|
||||||
|
Download done.
|
||||||
|
File downloaded successfully
|
||||||
|
Transitioning to dfuMANIFEST state
|
||||||
|
```
|
||||||
|
|
||||||
|
#### STM32 Commands
|
||||||
|
|
||||||
|
Hay un número de comandos DFU que puedes usar para flashear firmware a un dispositivo DFU:
|
||||||
|
|
||||||
|
* `:dfu-util` - El comando por defecto para flashing en dispositivos STM32.
|
||||||
|
* `:dfu-util-wait` - Esto funciona como el comando por defecto, pero te da (configurable) 10 segundos de tiempo antes de que intente flashear el firmware. Puedes usar `TIME_DELAY=20` desde la líena de comandos para cambiar este tiempo de retardo.
|
||||||
|
* Eg: `make <keyboard>:<keymap>:dfu-util TIME_DELAY=5`
|
||||||
|
* `:dfu-util-split-left` - Flashea el firmware normal, igual que la opción por defecto (`:dfu-util`). Sin embargo, también flashea el fichero EEPROM "Lado Izquierdo" para teclados divididos.
|
||||||
|
* `:dfu-util-split-right` - Flashea el firmware normal, igual que la opción por defecto (`:dfu-util`). Sin embargo, también flashea el fichero EEPROM "Lado Derecho" para teclados divididos.
|
||||||
|
|
||||||
|
## ¡Pruébalo!
|
||||||
|
|
||||||
|
¡Felicidades! ¡Tu firmware personalizado ha sido programado en tu teclado!
|
||||||
|
|
||||||
|
Pruébalo y asegúrate de que todo funciona de la manera que tu quieres. Hemos escrito [Testeando y depurando](newbs_testing_debugging.md) para redondear esta guía de novatos, así que pásate por allí para aprender cómo resolver problemas con tu funcionalidad personalizada.
|
103
docs/es/newbs_getting_started.md
Normal file
103
docs/es/newbs_getting_started.md
Normal file
@@ -0,0 +1,103 @@
|
|||||||
|
# Introducción
|
||||||
|
|
||||||
|
El teclado de tu computador tiene un procesador dentro de él, no muy distinto del que está dentro de tu ordenador. Este procesador ejecuta software que es responsable de detectar la pulsación de las teclas y enviar informes sobre el estado del teclado cuando las teclas son pulsadas y liberadas. QMK ocupa el rol de ese software. Cuando construyes un keymap personalizado , estas creando el equivalente de un programa ejecutable en tu teclado.
|
||||||
|
|
||||||
|
QMK intenta poner un montón de poder en tus manos haciendo que las cosas fáciles sean fáciles, y las cosas difíciles posibles. No tienes que saber cómo programar para crear keymaps potentes — sólo tienes que seguir un conjunto simple de reglas sintácticas.
|
||||||
|
|
||||||
|
# Comenzando
|
||||||
|
|
||||||
|
Antes de que puedas construir keymaps, necesitarás instalar algun software y configurar tu entorno de construcción. Esto sólo hay que hacerlo una vez sin importar en cuántos teclados planeas configurar el software.
|
||||||
|
|
||||||
|
Si prefieres hacerlo mediante un interfaz gráfico , por favor, considera utilizar el [Configurador QMK](https://config.qmk.fm). En ese caso dirígete a [Construyendo tu primer firmware usando la GUI](newbs_building_firmware_configurator.md).
|
||||||
|
|
||||||
|
|
||||||
|
## Descarga el software
|
||||||
|
|
||||||
|
### Editor de texto
|
||||||
|
|
||||||
|
Necesitarás un programa con el que puedas editar y guardar archivos de **texto plano**, en windows puedes utilizar Notepad y en tu Linux puedes utilizar gedit. Estos dos programas son editores simples y funcionales. En macOS ten cuidado con la aplicación de edición de texto por defecto TextEdit: no guardará texto plano a menos de que se le seleccione explícitamente _Make Plain Text_ desde el menú _Format_.
|
||||||
|
|
||||||
|
También puedes descargar e instalar un editor de texto dedicado como [Sublime Text](https://www.sublimetext.com/) o [VS Code](https://code.visualstudio.com/). Esta es probablemente la mejor manera independientemente de la plataforma, ya que estos programas fueron creados específicamente para editar código.
|
||||||
|
|
||||||
|
?> ¿No estás seguro de qué editor de texto utilizar? Laurence Bradford escribió una [estupenda introducción](https://learntocodewith.me/programming/basics/text-editors/) al tema.
|
||||||
|
|
||||||
|
### QMK Toolbox
|
||||||
|
|
||||||
|
QMK Toolbox is an optional graphical program for Windows and macOS that allows you to both program and debug your custom keyboard. You will likely find it invaluable for easily flashing your keyboard and viewing debug messages that it prints.
|
||||||
|
|
||||||
|
[Download the latest release here.](https://github.com/qmk/qmk_toolbox/releases/latest)
|
||||||
|
|
||||||
|
* For Windows: `qmk_toolbox.exe` (portable) or `qmk_toolbox_install.exe` (installer)
|
||||||
|
* For macOS: `QMK.Toolbox.app.zip` (portable) or `QMK.Toolbox.pkg` (installer)
|
||||||
|
|
||||||
|
## Configura tu entorno
|
||||||
|
|
||||||
|
Hemos intentado hacer QMK lo más fácil de configurar posible. Sólo tienes que preparar tu entorno Linux o Unix, y luego dejar que QMK
|
||||||
|
instale el resto.
|
||||||
|
|
||||||
|
?> Si no has trabajado con la línea de comandos de Linux/Unix con anterioridad, hay algunos conceptos y comandos básicos que deberías aprender. Estos recursos te enseñarán lo suficiente para poder trabajar con QMK:<br>
|
||||||
|
[Comandos de Linux que debería saber](https://www.guru99.com/must-know-linux-commands.html)<br>
|
||||||
|
[Algunos comandos básicos de Unix](https://www.tjhsst.edu/~dhyatt/superap/unixcmd.html)
|
||||||
|
|
||||||
|
### Windows
|
||||||
|
|
||||||
|
Necesitarás instalar MSYS2 y Git.
|
||||||
|
|
||||||
|
* Sigue las instrucciones de instalación en la [página de MSYS2](http://www.msys2.org).
|
||||||
|
* Cierra las terminales abiertas de MSYS2 y abre una nueva termial de MSYS2 MinGW 64-bit.
|
||||||
|
* Instala Git ejecutando este comando: `pacman -S git`.
|
||||||
|
|
||||||
|
### macOS
|
||||||
|
|
||||||
|
Necesitarás instalar Homebrew. Sigue las instrucciones que encontrarás en la [página de Homebrew](https://brew.sh).
|
||||||
|
|
||||||
|
Despueś de que se haya inastalado Homebrew, continúa con _Set Up QMK_. En ese paso ejecutará un script que instalará el resto de paquetes.
|
||||||
|
|
||||||
|
### Linux
|
||||||
|
|
||||||
|
Necesitarás instalar Git. Es bastante probable que ya lo tengas, pero si no, uno de los siguientes comandos debería instalarlo:
|
||||||
|
|
||||||
|
* Debian / Ubuntu / Devuan: `apt-get install git`
|
||||||
|
* Fedora / Red Hat / CentOS: `yum install git`
|
||||||
|
* Arch: `pacman -S git`
|
||||||
|
|
||||||
|
?> Docker es también una opción en todas las plataformas. [Haz click aquí si quieres detalles.](getting_started_build_tools.md#docker)
|
||||||
|
|
||||||
|
## Configura QMK
|
||||||
|
|
||||||
|
Una vez que hayas configurado tu entorno Linux/Unix, estarás listo para descargar QMK. Haremos esto utilizando Git para "clonar" el respositorio de QMK. Abre una ventana de Terminal o MSYS2 MinGW y mantenla abierta mientras sigues esta guía. Dentro de esa ventana ejecuta estos dos comandos:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git clone --recurse-submodules https://github.com/qmk/qmk_firmware.git
|
||||||
|
cd qmk_firmware
|
||||||
|
```
|
||||||
|
|
||||||
|
?> Si ya sabes [cómo usar GitHub](getting_started_github.md), te recomendamos en vez de eso, crees y clones tu propio fork. Si no sabes lo que significa, puedes ignorar este mensaje sin problemas.
|
||||||
|
|
||||||
|
QMK viene con un script para ayudarte a configurar el resto de cosas que necesitarás. Deberías ejecutarlo introduciendo este comando:
|
||||||
|
|
||||||
|
util/qmk_install.sh
|
||||||
|
|
||||||
|
## Prueba tu entorno de construcción
|
||||||
|
|
||||||
|
Ahora que tu entorno de construcción de QMK está configurado, puedes construcir un firmware para tu teclado. Comienza intentado construir el keymap por defecto del teclado. Deberías ser capaz de hacerlo con un comando con este formato:
|
||||||
|
|
||||||
|
make <keyboard>:default
|
||||||
|
|
||||||
|
Por ejemplo, para construir el firmware para un Clueboard 66% deberías usar:
|
||||||
|
|
||||||
|
make clueboard/66/rev3:default
|
||||||
|
|
||||||
|
Cuando esté hecho, deberías tener un montón de información de salida similar a esta:
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/clueboard_66_rev3_default.elf [OK]
|
||||||
|
Creating load file for flashing: .build/clueboard_66_rev3_default.hex [OK]
|
||||||
|
Copying clueboard_66_rev3_default.hex to qmk_firmware folder [OK]
|
||||||
|
Checking file size of clueboard_66_rev3_default.hex [OK]
|
||||||
|
* The firmware size is fine - 26356/28672 (2316 bytes free)
|
||||||
|
```
|
||||||
|
|
||||||
|
# Creando tu keymap
|
||||||
|
|
||||||
|
Ya estás listo para crear tu propio keymap personal! Para hacerlo continua con [Construyendo tu primer firmware](newbs_building_firmware.md).
|
15
docs/es/newbs_learn_more_resources.md
Normal file
15
docs/es/newbs_learn_more_resources.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Recursos de aprendizaje
|
||||||
|
|
||||||
|
Estos recursos procuran dar miembros nuevos en la communidad QMK un mayor entendimiento de la información proporcionada en la documentación para novatos.
|
||||||
|
|
||||||
|
Recursos de Git:
|
||||||
|
|
||||||
|
* [Excelente tutorial general](https://www.codecademy.com/learn/learn-git)
|
||||||
|
* [Juego de Git para aprender usando ejemplos](https://learngitbranching.js.org/)
|
||||||
|
* [Recursos de Git para aprender más sobre Github](getting_started_github.md)
|
||||||
|
* [Recursos de Git dirigidos específicamente a QMK](contributing.md)
|
||||||
|
|
||||||
|
|
||||||
|
Recursos para línea de mandatos:
|
||||||
|
|
||||||
|
* [Excelente tutorial general sobre la línea de mandatos](https://www.codecademy.com/learn/learn-the-command-line)
|
99
docs/es/newbs_testing_debugging.md
Normal file
99
docs/es/newbs_testing_debugging.md
Normal file
@@ -0,0 +1,99 @@
|
|||||||
|
# Testeando y depurando
|
||||||
|
|
||||||
|
Una vez que hayas flasheado tu teclado con un firmware personalizado estarás listo para probarlo. Con un poco de suerte todo funcionará a la primera, pero si no es así, este documento te ayudará a averiguar qué está mal.
|
||||||
|
|
||||||
|
## Probando
|
||||||
|
|
||||||
|
Probar tu teclado es generalmente bastante sencillo. Persiona cada una de las teclas y asegúrate de que envía la tecla correcta. Existen incluso programas que te ayudarán a asegurarte de que no te dejas ninguna tecla sin comprobar.
|
||||||
|
|
||||||
|
Nota: Estos programas no los provée ni están relacionados con QMK.
|
||||||
|
|
||||||
|
* [Switch Hitter](https://elitekeyboards.com/switchhitter.php) (Sólo Windows)
|
||||||
|
* [Keyboard Viewer](https://www.imore.com/how-use-keyboard-viewer-your-mac) (Sólo Mac)
|
||||||
|
* [Keyboard Tester](http://www.keyboardtester.com) (Aplicación web)
|
||||||
|
* [Keyboard Checker](http://keyboardchecker.com) (Aplicación web)
|
||||||
|
|
||||||
|
## Depurando
|
||||||
|
|
||||||
|
Tu teclado mostrará información de depuración si tienes `CONSOLE_ENABLE = yes` en tu `rules.mk`. Por defecto la información de salida es muy limitada, pero puedes encender el modo de depuración para incrementar la información de salida. Utiliza el keycode `DEBUG` de tu keymap, usa la característica [Comando](feature_command.md) para activar el modo depuración, o añade el siguiente código a tu keymap.
|
||||||
|
|
||||||
|
```c
|
||||||
|
void keyboard_post_init_user(void) {
|
||||||
|
// Customise these values to desired behaviour
|
||||||
|
debug_enable=true;
|
||||||
|
debug_matrix=true;
|
||||||
|
//debug_keyboard=true;
|
||||||
|
//debug_mouse=true;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Depurando con QMK Toolbox
|
||||||
|
|
||||||
|
Para plataformas compatibles, [QMK Toolbox](https://github.com/qmk/qmk_toolbox) se puede usar para mostrar mensajes de depuración de tu teclado.
|
||||||
|
|
||||||
|
### Depurando con hid_listen
|
||||||
|
|
||||||
|
¿Prefieres una solución basada en una terminal? [hid_listen](https://www.pjrc.com/teensy/hid_listen.html), provista por PJRC, se puede usar también para mostrar mensajes de depuración. Hay binarios preconstruídos para Windows,Linux,y MacOS.
|
||||||
|
|
||||||
|
<!-- FIXME: Describe the debugging messages here. -->
|
||||||
|
|
||||||
|
## Enviando tus propios mensajes de depuración
|
||||||
|
|
||||||
|
A veces, es útil imprimir mensajes de depuración desde tu [código personalizado](custom_quantum_functions.md). Hacerlo es bastante simple. Comienza incluyendo `print.h` al principio de tu fichero:
|
||||||
|
|
||||||
|
#include <print.h>
|
||||||
|
|
||||||
|
Después de eso puedes utilzar algunas funciones print diferentes:
|
||||||
|
|
||||||
|
* `print("string")`: Imprime un string simple
|
||||||
|
* `uprintf("%s string", var)`: Imprime un string formateado
|
||||||
|
* `dprint("string")` Imprime un string simple, pero sólo cuando el modo de depuración está activo
|
||||||
|
* `dprintf("%s string", var)`: Imprime un string formateado, pero sólo cuando el modo de depuración está activo
|
||||||
|
|
||||||
|
## Ejemplos de depuración
|
||||||
|
|
||||||
|
Debajo hay una colección de ejemplos de depuración del mundo real. Para información adicional, Dirígete a [Depurando/Encontrando problemas en QMK](faq_debug.md).
|
||||||
|
|
||||||
|
### ¿Que posición en la matriz tiene esta pulsación de tecla?
|
||||||
|
|
||||||
|
Cuando estés portando, o intentando diagnosticar problemas en la pcb, puede ser útil saber si la pulsación de una tecla es escaneada correctamente. Para hablitar la información de registro en este escenario, añade el siguiente código al `keymap.c` de tus keymaps
|
||||||
|
|
||||||
|
```c
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
// If console is enabled, it will print the matrix position and status of each key pressed
|
||||||
|
#ifdef CONSOLE_ENABLE
|
||||||
|
uprintf("KL: kc: %u, col: %u, row: %u, pressed: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed);
|
||||||
|
#endif
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Ejemplo de salida
|
||||||
|
```text
|
||||||
|
Waiting for device:.......
|
||||||
|
Listening:
|
||||||
|
KL: kc: 169, col: 0, row: 0, pressed: 1
|
||||||
|
KL: kc: 169, col: 0, row: 0, pressed: 0
|
||||||
|
KL: kc: 174, col: 1, row: 0, pressed: 1
|
||||||
|
KL: kc: 174, col: 1, row: 0, pressed: 0
|
||||||
|
KL: kc: 172, col: 2, row: 0, pressed: 1
|
||||||
|
KL: kc: 172, col: 2, row: 0, pressed: 0
|
||||||
|
```
|
||||||
|
|
||||||
|
### ¿Cuanto tiempo tardó en escanear la pulsación de una tecla?
|
||||||
|
|
||||||
|
Cuando estés probando problemas en el rendimiento, puede ser útil saber la frecuenta a la cual la matríz de pulsadores se está escaneando. Para hablitar la información de registro en este escenario, añade el siguiente código al `config.h` de tus keymaps
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define DEBUG_MATRIX_SCAN_RATE
|
||||||
|
```
|
||||||
|
|
||||||
|
Ejemplo de salida
|
||||||
|
```text
|
||||||
|
> matrix scan frequency: 315
|
||||||
|
> matrix scan frequency: 313
|
||||||
|
> matrix scan frequency: 316
|
||||||
|
> matrix scan frequency: 316
|
||||||
|
> matrix scan frequency: 316
|
||||||
|
> matrix scan frequency: 316
|
||||||
|
```
|
@@ -47,7 +47,7 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="feed", MODE:="0666"
|
|||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c11", MODE:="0666"
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c11", MODE:="0666"
|
||||||
```
|
```
|
||||||
|
|
||||||
**/etc/udev/rules.d/55-catalina.rules:**
|
**/etc/udev/rules.d/55-caterina.rules:**
|
||||||
```
|
```
|
||||||
# ModemManager should ignore the following devices
|
# ModemManager should ignore the following devices
|
||||||
ATTRS{idVendor}=="2a03", ENV{ID_MM_DEVICE_IGNORE}="1"
|
ATTRS{idVendor}=="2a03", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||||
@@ -69,6 +69,12 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="1eaf", ATTRS{idProduct}=="0003", MODE:="066
|
|||||||
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666"
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**/etc/udev/rules.d/57-bootloadhid.rules:**
|
||||||
|
```
|
||||||
|
# bootloadHID
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="05df", MODE:="0666"
|
||||||
|
```
|
||||||
|
|
||||||
### Serial device is not detected in bootloader mode on Linux
|
### Serial device is not detected in bootloader mode on Linux
|
||||||
Make sure your kernel has appropriate support for your device. If your device uses USB ACM, such as
|
Make sure your kernel has appropriate support for your device. If your device uses USB ACM, such as
|
||||||
Pro Micro (Atmega32u4), make sure to include `CONFIG_USB_ACM=y`. Other devices may require `USB_SERIAL` and any of its sub options.
|
Pro Micro (Atmega32u4), make sure to include `CONFIG_USB_ACM=y`. Other devices may require `USB_SERIAL` and any of its sub options.
|
||||||
@@ -81,10 +87,6 @@ Re-running the QMK installation script (`./util/qmk_install.sh` from the `qmk_fi
|
|||||||
|
|
||||||
If that doesn't work, then you may need to download and run Zadig. See [Bootloader Driver Installation with Zadig](driver_installation_zadig.md) for more detailed information.
|
If that doesn't work, then you may need to download and run Zadig. See [Bootloader Driver Installation with Zadig](driver_installation_zadig.md) for more detailed information.
|
||||||
|
|
||||||
## WINAVR is Obsolete
|
|
||||||
It is no longer recommended and may cause some problem.
|
|
||||||
See [TMK Issue #99](https://github.com/tmk/tmk_keyboard/issues/99).
|
|
||||||
|
|
||||||
## USB VID and PID
|
## USB VID and PID
|
||||||
You can use any ID you want with editing `config.h`. Using any presumably unused ID will be no problem in fact except for very low chance of collision with other product.
|
You can use any ID you want with editing `config.h`. Using any presumably unused ID will be no problem in fact except for very low chance of collision with other product.
|
||||||
|
|
||||||
@@ -97,29 +99,6 @@ You can buy a really unique VID:PID here. I don't think you need this for person
|
|||||||
- http://www.obdev.at/products/vusb/license.html
|
- http://www.obdev.at/products/vusb/license.html
|
||||||
- http://www.mcselec.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=92&option=com_phpshop&Itemid=1
|
- http://www.mcselec.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=92&option=com_phpshop&Itemid=1
|
||||||
|
|
||||||
## Cortex: `cstddef: No such file or directory`
|
|
||||||
GCC 4.8 of Ubuntu 14.04 had this problem and had to update to 4.9 with this PPA.
|
|
||||||
https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded
|
|
||||||
|
|
||||||
https://github.com/tmk/tmk_keyboard/issues/212
|
|
||||||
https://github.com/tmk/tmk_keyboard/wiki/mbed-cortex-porting#compile-error-cstddef
|
|
||||||
https://developer.mbed.org/forum/mbed/topic/5205/
|
|
||||||
|
|
||||||
## `clock_prescale_set` and `clock_div_1` Not Available
|
|
||||||
Your toolchain is too old to support the MCU. For example WinAVR 20100110 doesn't support ATMega32u2.
|
|
||||||
|
|
||||||
```
|
|
||||||
Compiling C: ../../tmk_core/protocol/lufa/lufa.c
|
|
||||||
avr-gcc -c -mmcu=atmega32u2 -gdwarf-2 -DF_CPU=16000000UL -DINTERRUPT_CONTROL_ENDPOINT -DBOOTLOADER_SIZE=4096 -DF_USB=16000000UL -DARCH=ARCH_AVR8 -DUSB_DEVICE_ONLY -DUSE_FLASH_DESCRIPTORS -DUSE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -DFIXED_CONTROL_ENDPOINT_SIZE=8 -DFIXED_NUM_CONFIGURATIONS=1 -DPROTOCOL_LUFA -DEXTRAKEY_ENABLE -DCONSOLE_ENABLE -DCOMMAND_ENABLE -DVERSION=unknown -Os -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections -fno-inline-small-functions -fpack-struct -fshort-enums -fno-strict-aliasing -Wall -Wstrict-prototypes -Wa,-adhlns=obj_alps64/protocol/lufa/lufa.lst -I. -I../../tmk_core -I../../tmk_core/protocol/lufa -I../../tmk_core/protocol/lufa/LUFA-git -I../../tmk_core/common -std=gnu99 -include config.h -MMD -MP -MF .dep/obj_alps64_protocol_lufa_lufa.o.d ../../tmk_core/protocol/lufa/lufa.c -o obj_alps64/protocol/lufa/lufa.o
|
|
||||||
../../tmk_core/protocol/lufa/lufa.c: In function 'setup_mcu':
|
|
||||||
../../tmk_core/protocol/lufa/lufa.c:575: warning: implicit declaration of function 'clock_prescale_set'
|
|
||||||
../../tmk_core/protocol/lufa/lufa.c:575: error: 'clock_div_1' undeclared (first use in this function)
|
|
||||||
../../tmk_core/protocol/lufa/lufa.c:575: error: (Each undeclared identifier is reported only once
|
|
||||||
../../tmk_core/protocol/lufa/lufa.c:575: error: for each function it appears in.)
|
|
||||||
make: *** [obj_alps64/protocol/lufa/lufa.o] Error 1
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## BOOTLOADER_SIZE for AVR
|
## BOOTLOADER_SIZE for AVR
|
||||||
Note that Teensy2.0++ bootloader size is 2048byte. Some Makefiles may have wrong comment.
|
Note that Teensy2.0++ bootloader size is 2048byte. Some Makefiles may have wrong comment.
|
||||||
|
|
||||||
@@ -140,24 +119,29 @@ The solution is to remove and reinstall all affected modules.
|
|||||||
|
|
||||||
```
|
```
|
||||||
brew rm avr-gcc
|
brew rm avr-gcc
|
||||||
|
brew rm avr-gcc@8
|
||||||
brew rm dfu-programmer
|
brew rm dfu-programmer
|
||||||
brew rm dfu-util
|
brew rm dfu-util
|
||||||
brew rm gcc-arm-none-eabi
|
brew rm gcc-arm-none-eabi
|
||||||
|
brew rm arm-gcc-bin@8
|
||||||
brew rm avrdude
|
brew rm avrdude
|
||||||
brew install avr-gcc
|
brew install avr-gcc@8
|
||||||
brew install dfu-programmer
|
brew install dfu-programmer
|
||||||
brew install dfu-util
|
brew install dfu-util
|
||||||
brew install gcc-arm-none-eabi
|
brew install arm-gcc-bin@8
|
||||||
brew install avrdude
|
brew install avrdude
|
||||||
|
brew link --force avr-gcc@8
|
||||||
|
brew link --force arm-gcc-bin@8
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### avr-gcc 8.1 and LUFA
|
### `avr-gcc` and LUFA
|
||||||
|
|
||||||
If you updated your avr-gcc to above 7 you may see errors involving LUFA. For example:
|
If you updated your `avr-gcc` and you see errors involving LUFA, for example:
|
||||||
|
|
||||||
`lib/lufa/LUFA/Drivers/USB/Class/Device/AudioClassDevice.h:380:5: error: 'const' attribute on function returning 'void'`
|
`lib/lufa/LUFA/Drivers/USB/Class/Device/AudioClassDevice.h:380:5: error: 'const' attribute on function returning 'void'`
|
||||||
|
|
||||||
For now, you need to rollback avr-gcc to 7 in brew.
|
For now, you need to rollback `avr-gcc` to 8 in Homebrew.
|
||||||
|
|
||||||
```
|
```
|
||||||
brew uninstall --force avr-gcc
|
brew uninstall --force avr-gcc
|
||||||
|
@@ -27,7 +27,7 @@ You may need privilege to access the device on OS like Linux.
|
|||||||
Check:
|
Check:
|
||||||
- *hid_listen* finds your device. See above.
|
- *hid_listen* finds your device. See above.
|
||||||
- Enable debug with pressing **Magic**+d. See [Magic Commands](https://github.com/tmk/tmk_keyboard#magic-commands).
|
- Enable debug with pressing **Magic**+d. See [Magic Commands](https://github.com/tmk/tmk_keyboard#magic-commands).
|
||||||
- set `debug_enable=true` usually in `matrix_init()` in **matrix.c**.
|
- set `debug_enable=true`. See [Testing and Debugging](newbs_testing_debugging.md#debugging)
|
||||||
- try using 'print' function instead of debug print. See **common/print.h**.
|
- try using 'print' function instead of debug print. See **common/print.h**.
|
||||||
- disconnect other devices with console function. See [Issue #97](https://github.com/tmk/tmk_keyboard/issues/97).
|
- disconnect other devices with console function. See [Issue #97](https://github.com/tmk/tmk_keyboard/issues/97).
|
||||||
|
|
||||||
@@ -112,56 +112,6 @@ In C `1` means one of [int] type which is [16 bit] in case of AVR so you can't s
|
|||||||
|
|
||||||
http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279
|
http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279
|
||||||
|
|
||||||
|
|
||||||
## Bootloader Jump Doesn't Work
|
|
||||||
Properly configure bootloader size in **Makefile**. With wrong section size bootloader won't probably start with **Magic command** and **Boot Magic**.
|
|
||||||
```
|
|
||||||
# Size of Bootloaders in bytes:
|
|
||||||
# Atmel DFU loader(ATmega32U4) 4096
|
|
||||||
# Atmel DFU loader(AT90USB128) 8192
|
|
||||||
# LUFA bootloader(ATmega32U4) 4096
|
|
||||||
# Arduino Caterina(ATmega32U4) 4096
|
|
||||||
# USBaspLoader(ATmega***) 2048
|
|
||||||
# Teensy halfKay(ATmega32U4) 512
|
|
||||||
# Teensy++ halfKay(AT90USB128) 2048
|
|
||||||
OPT_DEFS += -DBOOTLOADER_SIZE=4096
|
|
||||||
```
|
|
||||||
AVR Boot section size are defined by setting **BOOTSZ** fuse in fact. Consult with your MCU datasheet.
|
|
||||||
Note that **Word**(2 bytes) size and address are used in datasheet while TMK uses **Byte**.
|
|
||||||
|
|
||||||
AVR Boot section is located at end of Flash memory like the followings.
|
|
||||||
```
|
|
||||||
byte Atmel/LUFA(ATMega32u4) byte Atmel(AT90SUB1286)
|
|
||||||
0x0000 +---------------+ 0x00000 +---------------+
|
|
||||||
| | | |
|
|
||||||
| | | |
|
|
||||||
| Application | | Application |
|
|
||||||
| | | |
|
|
||||||
= = = =
|
|
||||||
| | 32KB-4KB | | 128KB-8KB
|
|
||||||
0x6000 +---------------+ 0x1E000 +---------------+
|
|
||||||
| Bootloader | 4KB | Bootloader | 8KB
|
|
||||||
0x7FFF +---------------+ 0x1FFFF +---------------+
|
|
||||||
|
|
||||||
|
|
||||||
byte Teensy(ATMega32u4) byte Teensy++(AT90SUB1286)
|
|
||||||
0x0000 +---------------+ 0x00000 +---------------+
|
|
||||||
| | | |
|
|
||||||
| | | |
|
|
||||||
| Application | | Application |
|
|
||||||
| | | |
|
|
||||||
= = = =
|
|
||||||
| | 32KB-512B | | 128KB-2KB
|
|
||||||
0x7E00 +---------------+ 0x1FC00 +---------------+
|
|
||||||
| Bootloader | 512B | Bootloader | 2KB
|
|
||||||
0x7FFF +---------------+ 0x1FFFF +---------------+
|
|
||||||
```
|
|
||||||
|
|
||||||
And see this discussion for further reference.
|
|
||||||
https://github.com/tmk/tmk_keyboard/issues/179
|
|
||||||
|
|
||||||
If you are using a TeensyUSB, there is a [known bug](https://github.com/qmk/qmk_firmware/issues/164) in which the hardware reset button prevents the RESET key from working. Unplugging the keyboard and plugging it back in should resolve the problem.
|
|
||||||
|
|
||||||
## Special Extra Key Doesn't Work (System, Audio Control Keys)
|
## Special Extra Key Doesn't Work (System, Audio Control Keys)
|
||||||
You need to define `EXTRAKEY_ENABLE` in `rules.mk` to use them in QMK.
|
You need to define `EXTRAKEY_ENABLE` in `rules.mk` to use them in QMK.
|
||||||
|
|
||||||
@@ -194,24 +144,6 @@ If you would like to keep JTAG enabled, just add the following to your `config.h
|
|||||||
#define NO_JTAG_DISABLE
|
#define NO_JTAG_DISABLE
|
||||||
```
|
```
|
||||||
|
|
||||||
## Adding LED Indicators of Lock Keys
|
|
||||||
You need your own LED indicators for CapsLock, ScrollLock and NumLock? See this post.
|
|
||||||
|
|
||||||
http://deskthority.net/workshop-f7/tmk-keyboard-firmware-collection-t4478-120.html#p191560
|
|
||||||
|
|
||||||
## Program Arduino Micro/Leonardo
|
|
||||||
Push reset button and then run command like this within 8 seconds.
|
|
||||||
|
|
||||||
```
|
|
||||||
avrdude -patmega32u4 -cavr109 -b57600 -Uflash:w:adb_usb.hex -P/dev/ttyACM0
|
|
||||||
```
|
|
||||||
|
|
||||||
Device name will vary depending on your system.
|
|
||||||
|
|
||||||
http://arduino.cc/en/Main/ArduinoBoardMicro
|
|
||||||
https://geekhack.org/index.php?topic=14290.msg1563867#msg1563867
|
|
||||||
|
|
||||||
|
|
||||||
## USB 3 Compatibility
|
## USB 3 Compatibility
|
||||||
I heard some people have a problem with USB 3 port, try USB 2 port.
|
I heard some people have a problem with USB 3 port, try USB 2 port.
|
||||||
|
|
||||||
|
@@ -67,24 +67,8 @@ After enabling this feature use keycodes `KC_LCAP`, `KC_LNUM` and `KC_LSCR` in y
|
|||||||
Old vintage mechanical keyboards occasionally have lock switches but modern ones don't have. ***You don't need this feature in most case and just use keycodes `KC_CAPS`, `KC_NLCK` and `KC_SLCK`.***
|
Old vintage mechanical keyboards occasionally have lock switches but modern ones don't have. ***You don't need this feature in most case and just use keycodes `KC_CAPS`, `KC_NLCK` and `KC_SLCK`.***
|
||||||
|
|
||||||
## Input Special Characters Other Than ASCII like Cédille 'Ç'
|
## Input Special Characters Other Than ASCII like Cédille 'Ç'
|
||||||
NO UNIVERSAL METHOD TO INPUT THOSE WORKS OVER ALL SYSTEMS. You have to define **MACRO** in way specific to your OS or layout.
|
|
||||||
|
|
||||||
See this post for example **MACRO** code.
|
See the [Unicode](feature_unicode.md) feature.
|
||||||
|
|
||||||
http://deskthority.net/workshop-f7/tmk-keyboard-firmware-collection-t4478-120.html#p195620
|
|
||||||
|
|
||||||
On **Windows** you can use `AltGr` key or **Alt code**.
|
|
||||||
* http://en.wikipedia.org/wiki/AltGr_key
|
|
||||||
* http://en.wikipedia.org/wiki/Alt_code
|
|
||||||
|
|
||||||
On **Mac** OS defines `Option` key combinations.
|
|
||||||
* http://en.wikipedia.org/wiki/Option_key#Alternative_keyboard_input
|
|
||||||
|
|
||||||
On **Xorg** you can use `compose` key, instead.
|
|
||||||
* http://en.wikipedia.org/wiki/Compose_key
|
|
||||||
|
|
||||||
And see this for **Unicode** input.
|
|
||||||
* http://en.wikipedia.org/wiki/Unicode_input
|
|
||||||
|
|
||||||
## `Fn` Key on macOS
|
## `Fn` Key on macOS
|
||||||
|
|
||||||
@@ -95,13 +79,6 @@ Even worse, it is not recognized unless the keyboard's VID and PID match that of
|
|||||||
|
|
||||||
See [this issue](https://github.com/qmk/qmk_firmware/issues/2179) for detailed information.
|
See [this issue](https://github.com/qmk/qmk_firmware/issues/2179) for detailed information.
|
||||||
|
|
||||||
|
|
||||||
## Media Control Keys in Mac OSX
|
|
||||||
#### KC_MNXT and KC_MPRV Does Not Work on Mac
|
|
||||||
Use `KC_MFFD`(`KC_MEDIA_FAST_FORWARD`) and `KC_MRWD`(`KC_MEDIA_REWIND`) instead of `KC_MNXT` and `KC_MPRV`.
|
|
||||||
See https://github.com/tmk/tmk_keyboard/issues/195
|
|
||||||
|
|
||||||
|
|
||||||
## Keys Supported in Mac OSX?
|
## Keys Supported in Mac OSX?
|
||||||
You can know which keycodes are supported in OSX from this source code.
|
You can know which keycodes are supported in OSX from this source code.
|
||||||
|
|
||||||
@@ -137,51 +114,6 @@ https://github.com/tekezo/Karabiner/issues/403
|
|||||||
|
|
||||||
See the [Grave Escape](feature_grave_esc.md) feature.
|
See the [Grave Escape](feature_grave_esc.md) feature.
|
||||||
|
|
||||||
## Arrow on Right Modifier Keys with Dual-Role
|
|
||||||
This turns right modifier keys into arrow keys when the keys are tapped while still modifiers when the keys are hold. In TMK the dual-role function is dubbed **TAP**.
|
|
||||||
```
|
|
||||||
|
|
||||||
#include "keymap_common.h"
|
|
||||||
|
|
||||||
|
|
||||||
/* Arrow keys on right modifier keys with TMK dual role feature
|
|
||||||
*
|
|
||||||
* https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#213-modifier-with-tap-keydual-role
|
|
||||||
* https://en.wikipedia.org/wiki/Modifier_key#Dual-role_keys
|
|
||||||
*/
|
|
||||||
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
||||||
/* 0: qwerty */
|
|
||||||
[0] = LAYOUT( \
|
|
||||||
ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, NUHS,BSPC, \
|
|
||||||
TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, \
|
|
||||||
LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT,ENT, \
|
|
||||||
LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH,FN0, ESC, \
|
|
||||||
FN4, LGUI,LALT, SPC, APP, FN2, FN1, FN3),
|
|
||||||
[1] = LAYOUT( \
|
|
||||||
GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS,TRNS, \
|
|
||||||
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,\
|
|
||||||
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \
|
|
||||||
TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,FN5, TRNS, \
|
|
||||||
TRNS,TRNS,TRNS, TRNS, TRNS,FN7, FN6, FN8),
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint16_t PROGMEM fn_actions[] = {
|
|
||||||
[0] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_UP),
|
|
||||||
[1] = ACTION_MODS_TAP_KEY(MOD_RGUI, KC_DOWN),
|
|
||||||
[2] = ACTION_MODS_TAP_KEY(MOD_RALT, KC_LEFT),
|
|
||||||
[3] = ACTION_MODS_TAP_KEY(MOD_RCTL, KC_RIGHT),
|
|
||||||
[4] = ACTION_LAYER_MOMENTARY(1),
|
|
||||||
[5] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_PGUP),
|
|
||||||
[6] = ACTION_MODS_TAP_KEY(MOD_RGUI, KC_PGDN),
|
|
||||||
[7] = ACTION_MODS_TAP_KEY(MOD_RALT, KC_HOME),
|
|
||||||
[8] = ACTION_MODS_TAP_KEY(MOD_RCTL, KC_END),
|
|
||||||
};
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
Dual-role key: https://en.wikipedia.org/wiki/Modifier_key#Dual-role_keys
|
|
||||||
|
|
||||||
|
|
||||||
## Eject on Mac OSX
|
## Eject on Mac OSX
|
||||||
`KC_EJCT` keycode works on OSX. https://github.com/tmk/tmk_keyboard/issues/250
|
`KC_EJCT` keycode works on OSX. https://github.com/tmk/tmk_keyboard/issues/250
|
||||||
It seems Windows 10 ignores the code and Linux/Xorg recognizes but has no mapping by default.
|
It seems Windows 10 ignores the code and Linux/Xorg recognizes but has no mapping by default.
|
||||||
|
@@ -15,7 +15,7 @@ This will allow you to use `FN_CAPS` and `ALT_TAB` in your keymap, keeping it mo
|
|||||||
|
|
||||||
## Caveats
|
## 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`. Modifiers specified as part of a Layer Tap or Mod Tap's keycode will be ignored. If you need to apply modifiers to your tapped keycode, [Tap Dance](https://github.com/qmk/qmk_firmware/blob/master/docs/feature_tap_dance.md#example-5-using-tap-dance-for-advanced-mod-tap-and-layer-tap-keys) can be used to accomplish this.
|
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`. Modifiers specified as part of a Layer Tap or Mod Tap's keycode will be ignored. 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.
|
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.
|
||||||
|
|
||||||
@@ -155,7 +155,7 @@ You can control the behavior of one shot keys by defining these in `config.h`:
|
|||||||
|
|
||||||
Sometimes, you want to activate a one-shot key as part of a macro or tap dance routine.
|
Sometimes, you want to activate a one-shot key as part of a macro or tap dance routine.
|
||||||
|
|
||||||
For one shot layers, you need to call `set_oneshot_layer(LAYER, ONESHOT_START)` on key down, and `set_oneshot_layer(ONESHOT_PRESSED)` on key up. If you want to cancel the oneshot, call `reset_oneshot_layer()`.
|
For one shot layers, you need to call `set_oneshot_layer(LAYER, ONESHOT_START)` on key down, and `clear_oneshot_layer_state(ONESHOT_OTHER_KEY_PRESSED)` on key up. If you want to cancel the oneshot, call `reset_oneshot_layer()`.
|
||||||
|
|
||||||
For one shot mods, you need to call `set_oneshot_mods(MOD)` to set it, or `clear_oneshot_mods()` to cancel it.
|
For one shot mods, you need to call `set_oneshot_mods(MOD)` to set it, or `clear_oneshot_mods()` to cancel it.
|
||||||
|
|
||||||
@@ -265,6 +265,25 @@ Normally, if you do all this within the `TAPPING_TERM` (default: 200ms) this wil
|
|||||||
|
|
||||||
?> If you have `Ignore Mod Tap Interrupt` enabled, as well, this will modify how both work. The regular key has the modifier added if the first key is released first or if both keys are held longer than the `TAPPING_TERM`.
|
?> If you have `Ignore Mod Tap Interrupt` enabled, as well, this will modify how both work. The regular key has the modifier added if the first key is released first or if both keys are held longer than the `TAPPING_TERM`.
|
||||||
|
|
||||||
|
For more granular control of this feature, you can add the following to your `config.h`:
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define PERMISSIVE_HOLD_PER_KEY
|
||||||
|
```
|
||||||
|
|
||||||
|
You can then add the following function to your keymap:
|
||||||
|
|
||||||
|
```c
|
||||||
|
bool get_permissive_hold(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case SFT_T(KC_A):
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Ignore Mod Tap Interrupt
|
## Ignore Mod Tap Interrupt
|
||||||
|
|
||||||
To enable this setting, add this to your `config.h`:
|
To enable this setting, add this to your `config.h`:
|
||||||
@@ -291,6 +310,25 @@ Normally, this would send `X` (`SHIFT`+`x`). With `Ignore Mod Tap Interrupt` ena
|
|||||||
|
|
||||||
?> If you have `Permissive Hold` enabled, as well, this will modify how both work. The regular key has the modifier added if the first key is released first or if both keys are held longer than the `TAPPING_TERM`.
|
?> If you have `Permissive Hold` enabled, as well, this will modify how both work. The regular key has the modifier added if the first key is released first or if both keys are held longer than the `TAPPING_TERM`.
|
||||||
|
|
||||||
|
For more granular control of this feature, you can add the following to your `config.h`:
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define IGNORE_MOD_TAP_INTERRUPT_PER_KEY
|
||||||
|
```
|
||||||
|
|
||||||
|
You can then add the following function to your keymap:
|
||||||
|
|
||||||
|
```c
|
||||||
|
bool get_ignore_mod_tap_interrupt(uint16_t keycode) {
|
||||||
|
switch (keycode) {
|
||||||
|
case SFT_T(KC_SPC):
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Tapping Force Hold
|
## Tapping Force Hold
|
||||||
|
|
||||||
To enable `tapping force hold`, add the following to your `config.h`:
|
To enable `tapping force hold`, add the following to your `config.h`:
|
||||||
@@ -315,6 +353,25 @@ With `TAPPING_FORCE_HOLD`, the second press will be interpreted as a Shift, allo
|
|||||||
|
|
||||||
!> `TAPPING_FORCE_HOLD` will break anything that uses tapping toggles (Such as the `TT` layer keycode, and the One Shot Tapping Toggle).
|
!> `TAPPING_FORCE_HOLD` will break anything that uses tapping toggles (Such as the `TT` layer keycode, and the One Shot Tapping Toggle).
|
||||||
|
|
||||||
|
For more granular control of this feature, you can add the following to your `config.h`:
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define TAPPING_FORCE_HOLD_PER_KEY
|
||||||
|
```
|
||||||
|
|
||||||
|
You can then add the following function to your keymap:
|
||||||
|
|
||||||
|
```c
|
||||||
|
bool get_tapping_force_hold(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case LT(1, KC_BSPC):
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Retro Tapping
|
## Retro Tapping
|
||||||
|
|
||||||
To enable `retro tapping`, add the following to your `config.h`:
|
To enable `retro tapping`, add the following to your `config.h`:
|
||||||
|
@@ -51,12 +51,15 @@ By default, Auto Shift is disabled for any key press that is accompanied by one
|
|||||||
modifiers. Thus, Ctrl+A that you hold for a really long time is not the same
|
modifiers. Thus, Ctrl+A that you hold for a really long time is not the same
|
||||||
as Ctrl+Shift+A.
|
as Ctrl+Shift+A.
|
||||||
|
|
||||||
You can re-enable Auto Shift for modifiers by adding another rule to your `rules.mk`
|
You can re-enable Auto Shift for modifiers by adding a define to your `config.h`
|
||||||
|
|
||||||
AUTO_SHIFT_MODIFIERS = yes
|
```c
|
||||||
|
#define AUTO_SHIFT_MODIFIERS
|
||||||
|
```
|
||||||
|
|
||||||
In which case, Ctrl+A held past the `AUTO_SHIFT_TIMEOUT` will be sent as Ctrl+Shift+A
|
In which case, Ctrl+A held past the `AUTO_SHIFT_TIMEOUT` will be sent as Ctrl+Shift+A
|
||||||
|
|
||||||
|
|
||||||
## Configuring Auto Shift
|
## Configuring Auto Shift
|
||||||
|
|
||||||
If desired, there is some configuration that can be done to change the
|
If desired, there is some configuration that can be done to change the
|
||||||
@@ -65,15 +68,12 @@ behavior of Auto Shift. This is done by setting various variables the
|
|||||||
|
|
||||||
A sample is
|
A sample is
|
||||||
|
|
||||||
#ifndef CONFIG_USER_H
|
```c
|
||||||
#define CONFIG_USER_H
|
#pragma once
|
||||||
|
|
||||||
#include "../../config.h"
|
#define AUTO_SHIFT_TIMEOUT 150
|
||||||
|
#define NO_AUTO_SHIFT_SPECIAL
|
||||||
#define AUTO_SHIFT_TIMEOUT 150
|
```
|
||||||
#define NO_AUTO_SHIFT_SPECIAL
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
### AUTO_SHIFT_TIMEOUT (Value in ms)
|
### AUTO_SHIFT_TIMEOUT (Value in ms)
|
||||||
|
|
||||||
|
@@ -6,11 +6,11 @@ QMK is able to control the brightness of these LEDs by switching them on and off
|
|||||||
|
|
||||||
The MCU can only supply so much current to its GPIO pins. Instead of powering the backlight directly from the MCU, the backlight pin is connected to a transistor or MOSFET that switches the power to the LEDs.
|
The MCU can only supply so much current to its GPIO pins. Instead of powering the backlight directly from the MCU, the backlight pin is connected to a transistor or MOSFET that switches the power to the LEDs.
|
||||||
|
|
||||||
## Usage
|
## Feature Configuration
|
||||||
|
|
||||||
Most keyboards have backlighting enabled by default if they support it, but if it is not working for you, check that your `rules.mk` includes the following:
|
Most keyboards have backlighting enabled by default if they support it, but if it is not working for you, check that your `rules.mk` includes the following:
|
||||||
|
|
||||||
```make
|
```makefile
|
||||||
BACKLIGHT_ENABLE = yes
|
BACKLIGHT_ENABLE = yes
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -27,8 +27,64 @@ Once enabled the following keycodes below can be used to change the backlight le
|
|||||||
|`BL_DEC` |Decrease the backlight level |
|
|`BL_DEC` |Decrease the backlight level |
|
||||||
|`BL_BRTG`|Toggle backlight breathing |
|
|`BL_BRTG`|Toggle backlight breathing |
|
||||||
|
|
||||||
|
## Backlight Functions
|
||||||
|
|
||||||
|
|Function |Description |
|
||||||
|
|----------|-----------------------------------------------------------|
|
||||||
|
|`backlight_toggle()` |Turn the backlight on or off |
|
||||||
|
|`backlight_enable()` |Turn the backlight on |
|
||||||
|
|`backlight_disable()` |Turn the backlight off |
|
||||||
|
|`backlight_step()` |Cycle through backlight levels |
|
||||||
|
|`backlight_increase()` |Increase the backlight level |
|
||||||
|
|`backlight_decrease()` |Decrease the backlight level |
|
||||||
|
|`backlight_level(x)` |Sets the backlight level to specified level |
|
||||||
|
|`get_backlight_level()` |Return the current backlight level |
|
||||||
|
|`is_backlight_enabled()`|Return whether the backlight is currently on |
|
||||||
|
|
||||||
|
### Backlight Breathing Functions
|
||||||
|
|
||||||
|
|Function |Description |
|
||||||
|
|----------|---------------------------------------------------|
|
||||||
|
|`breathing_toggle()` |Turn the backlight breathing on or off |
|
||||||
|
|`breathing_enable()` |Turns on backlight breathing |
|
||||||
|
|`breathing_disable()` |Turns off backlight breathing |
|
||||||
|
|
||||||
|
## Driver Configuration
|
||||||
|
|
||||||
|
To select which driver to use, configure your `rules.mk` with the following:
|
||||||
|
|
||||||
|
```makefile
|
||||||
|
BACKLIGHT_DRIVER = software # Valid driver values are 'pwm,software,no'
|
||||||
|
```
|
||||||
|
|
||||||
|
See below for help on individual drivers.
|
||||||
|
|
||||||
|
## Common Driver Configuration
|
||||||
|
|
||||||
|
To change the behavior of the backlighting, `#define` these in your `config.h`:
|
||||||
|
|
||||||
|
|Define |Default |Description |
|
||||||
|
|---------------------|-------------|--------------------------------------------------------------------------------------|
|
||||||
|
|`BACKLIGHT_LEVELS` |`3` |The number of brightness levels (maximum 31 excluding off) |
|
||||||
|
|`BACKLIGHT_CAPS_LOCK`|*Not defined*|Enable Caps Lock indicator using backlight (for keyboards without dedicated LED) |
|
||||||
|
|`BACKLIGHT_BREATHING`|*Not defined*|Enable backlight breathing, if supported |
|
||||||
|
|`BREATHING_PERIOD` |`6` |The length of one backlight "breath" in seconds |
|
||||||
|
|`BACKLIGHT_ON_STATE` |`0` |The state of the backlight pin when the backlight is "on" - `1` for high, `0` for low |
|
||||||
|
|
||||||
|
### Backlight On State
|
||||||
|
|
||||||
|
Most backlight circuits are driven by an N-channel MOSFET or NPN transistor. This means that to turn the transistor *on* and light the LEDs, you must drive the backlight pin, connected to the gate or base, *high*.
|
||||||
|
Sometimes, however, a P-channel MOSFET, or a PNP transistor is used. In this case, when the transistor is on, the pin is driven *low* instead.
|
||||||
|
|
||||||
|
This functionality is configured at the keyboard level with the `BACKLIGHT_ON_STATE` define.
|
||||||
|
|
||||||
## AVR driver
|
## AVR driver
|
||||||
|
|
||||||
|
On AVR boards, the default driver currently sniffs the configuration to pick the best scenario. The driver is configured by default, however the equivalent setting within rules.mk would be:
|
||||||
|
```makefile
|
||||||
|
BACKLIGHT_DRIVER = pwm
|
||||||
|
```
|
||||||
|
|
||||||
### Caveats
|
### Caveats
|
||||||
|
|
||||||
Hardware PWM is supported according to the following table:
|
Hardware PWM is supported according to the following table:
|
||||||
@@ -71,7 +127,7 @@ To change the behavior of the backlighting, `#define` these in your `config.h`:
|
|||||||
|`BACKLIGHT_CAPS_LOCK`|*Not defined*|Enable Caps Lock indicator using backlight (for keyboards without dedicated LED) |
|
|`BACKLIGHT_CAPS_LOCK`|*Not defined*|Enable Caps Lock indicator using backlight (for keyboards without dedicated LED) |
|
||||||
|`BACKLIGHT_BREATHING`|*Not defined*|Enable backlight breathing, if supported |
|
|`BACKLIGHT_BREATHING`|*Not defined*|Enable backlight breathing, if supported |
|
||||||
|`BREATHING_PERIOD` |`6` |The length of one backlight "breath" in seconds |
|
|`BREATHING_PERIOD` |`6` |The length of one backlight "breath" in seconds |
|
||||||
|`BACKLIGHT_ON_STATE` |`0` |The state of the backlight pin when the backlight is "on" - `1` for high, `0` for low |
|
|`BACKLIGHT_ON_STATE` |`1` |The state of the backlight pin when the backlight is "on" - `1` for high, `0` for low |
|
||||||
|
|
||||||
### Backlight On State
|
### Backlight On State
|
||||||
|
|
||||||
@@ -103,7 +159,7 @@ In this way `OCRxx` essentially controls the duty cycle of the LEDs, and thus th
|
|||||||
The breathing effect is achieved by registering an interrupt handler for `TIMER1_OVF_vect` that is called whenever the counter resets, roughly 244 times per second.
|
The breathing effect is achieved by registering an interrupt handler for `TIMER1_OVF_vect` that is called whenever the counter resets, roughly 244 times per second.
|
||||||
In this handler, the value of an incrementing counter is mapped onto a precomputed brightness curve. To turn off breathing, the interrupt handler is simply disabled, and the brightness reset to the level stored in EEPROM.
|
In this handler, the value of an incrementing counter is mapped onto a precomputed brightness curve. To turn off breathing, the interrupt handler is simply disabled, and the brightness reset to the level stored in EEPROM.
|
||||||
|
|
||||||
### Software PWM Implementation
|
### Timer Assisted PWM Implementation
|
||||||
|
|
||||||
When `BACKLIGHT_PIN` is not set to a hardware backlight pin, QMK will use a hardware timer configured to trigger software interrupts. This time will count up to `ICRx` (by default `0xFFFF`) before resetting to 0.
|
When `BACKLIGHT_PIN` is not set to a hardware backlight pin, QMK will use a hardware timer configured to trigger software interrupts. This time will count up to `ICRx` (by default `0xFFFF`) before resetting to 0.
|
||||||
When resetting to 0, the CPU will fire an OVF (overflow) interrupt that will turn the LEDs on, starting the duty cycle.
|
When resetting to 0, the CPU will fire an OVF (overflow) interrupt that will turn the LEDs on, starting the duty cycle.
|
||||||
@@ -114,11 +170,16 @@ The breathing effect is the same as in the hardware PWM implementation.
|
|||||||
|
|
||||||
## ARM Driver
|
## ARM Driver
|
||||||
|
|
||||||
|
While still in its early stages, ARM backlight support aims to eventually have feature parity with AVR. The driver is configured by default, however the equivalent setting within rules.mk would be:
|
||||||
|
```makefile
|
||||||
|
BACKLIGHT_DRIVER = pwm
|
||||||
|
```
|
||||||
|
|
||||||
### Caveats
|
### Caveats
|
||||||
|
|
||||||
Currently only hardware PWM is supported, and does not provide automatic configuration.
|
Currently only hardware PWM is supported, not timer assisted, and does not provide automatic configuration.
|
||||||
|
|
||||||
?> STMF072 support is being investigated.
|
?> Backlight support for STMF072 has had limited testing, YMMV. If unsure, set `BACKLIGHT_ENABLE = no` in your rules.mk.
|
||||||
|
|
||||||
### ARM Configuration
|
### ARM Configuration
|
||||||
|
|
||||||
@@ -130,30 +191,58 @@ To change the behavior of the backlighting, `#define` these in your `config.h`:
|
|||||||
|`BACKLIGHT_PWM_DRIVER` |`PWMD4` |The PWM driver to use, see ST datasheets for pin to PWM timer mapping. Unless you are designing your own keyboard, you shouldn't need to change this|
|
|`BACKLIGHT_PWM_DRIVER` |`PWMD4` |The PWM driver to use, see ST datasheets for pin to PWM timer mapping. Unless you are designing your own keyboard, you shouldn't need to change this|
|
||||||
|`BACKLIGHT_PWM_CHANNEL` |`3` |The PWM channel to use, see ST datasheets for pin to PWM channel mapping. Unless you are designing your own keyboard, you shouldn't need to change this|
|
|`BACKLIGHT_PWM_CHANNEL` |`3` |The PWM channel to use, see ST datasheets for pin to PWM channel mapping. Unless you are designing your own keyboard, you shouldn't need to change this|
|
||||||
|`BACKLIGHT_PAL_MODE` |`2` |The pin alternative function to use, see ST datasheets for pin AF mapping. Unless you are designing your own keyboard, you shouldn't need to change this|
|
|`BACKLIGHT_PAL_MODE` |`2` |The pin alternative function to use, see ST datasheets for pin AF mapping. Unless you are designing your own keyboard, you shouldn't need to change this|
|
||||||
|`BACKLIGHT_LEVELS` |`3` |The number of brightness levels (maximum 31 excluding off) |
|
|
||||||
|`BACKLIGHT_CAPS_LOCK` |*Not defined*|Enable Caps Lock indicator using backlight (for keyboards without dedicated LED) |
|
|
||||||
|`BACKLIGHT_BREATHING` |*Not defined*|Enable backlight breathing, if supported |
|
|
||||||
|`BREATHING_PERIOD` |`6` |The length of one backlight "breath" in seconds |
|
|
||||||
|
|
||||||
## Backlight Functions
|
## Software PWM Driver
|
||||||
|
|
||||||
|Function |Description |
|
Emulation of PWM while running other keyboard tasks, it offers maximum hardware compatibility without extra platform configuration. The tradeoff is the backlight might jitter when the keyboard is busy. To enable, add this to your rules.mk:
|
||||||
|----------|-----------------------------------------------------------|
|
```makefile
|
||||||
|`backlight_toggle()` |Turn the backlight on or off |
|
BACKLIGHT_DRIVER = software
|
||||||
|`backlight_enable()` |Turn the backlight on |
|
```
|
||||||
|`backlight_disable()` |Turn the backlight off |
|
|
||||||
|`backlight_step()` |Cycle through backlight levels |
|
|
||||||
|`backlight_increase()` |Increase the backlight level |
|
|
||||||
|`backlight_decrease()` |Decrease the backlight level |
|
|
||||||
|`backlight_level(x)` |Sets the backlight level, from 0 to |
|
|
||||||
| |`BACKLIGHT_LEVELS` |
|
|
||||||
|`get_backlight_level()` |Return the current backlight level |
|
|
||||||
|`is_backlight_enabled()`|Return whether the backlight is currently on |
|
|
||||||
|
|
||||||
### Backlight Breathing Functions
|
### Software PWM Configuration
|
||||||
|
|
||||||
|Function |Description |
|
To change the behavior of the backlighting, `#define` these in your `config.h`:
|
||||||
|----------|----------------------------------------------------------|
|
|
||||||
|`breathing_toggle()` |Turn the backlight breathing on or off |
|
|Define |Default |Description |
|
||||||
|`breathing_enable()` |Turns on backlight breathing |
|
|-----------------|-------------|-------------------------------------------------------------------------------------------------------------|
|
||||||
|`breathing_disable()` |Turns off backlight breathing |
|
|`BACKLIGHT_PIN` |`B7` |The pin that controls the LEDs. Unless you are designing your own keyboard, you shouldn't need to change this|
|
||||||
|
|`BACKLIGHT_PINS` |*Not defined*|experimental: see below for more information |
|
||||||
|
|
||||||
|
### Multiple backlight pins
|
||||||
|
|
||||||
|
Most keyboards have only one backlight pin which control all backlight LEDs (especially if the backlight is connected to an hardware PWM pin).
|
||||||
|
In software PWM, it is possible to define multiple backlight pins. All those pins will be turned on and off at the same time during the PWM duty cycle.
|
||||||
|
This feature allows to set for instance the Caps Lock LED (or any other controllable LED) brightness at the same level as the other LEDs of the backlight. This is useful if you have mapped LCTRL in place of Caps Lock and you need the Caps Lock LED to be part of the backlight instead of being activated when Caps Lock is on.
|
||||||
|
|
||||||
|
To activate multiple backlight pins, you need to add something like this to your user `config.h`:
|
||||||
|
|
||||||
|
```c
|
||||||
|
#undef BACKLIGHT_PIN
|
||||||
|
#define BACKLIGHT_PINS { F5, B2 }
|
||||||
|
```
|
||||||
|
|
||||||
|
## Custom Driver
|
||||||
|
|
||||||
|
To enable, add this to your rules.mk:
|
||||||
|
|
||||||
|
```makefile
|
||||||
|
BACKLIGHT_DRIVER = custom
|
||||||
|
```
|
||||||
|
|
||||||
|
When implementing the custom driver API, the provided keyboard hooks are as follows:
|
||||||
|
|
||||||
|
```c
|
||||||
|
void backlight_init_ports(void) {
|
||||||
|
// Optional - Run on startup
|
||||||
|
// - usually you want to configure pins here
|
||||||
|
}
|
||||||
|
void backlight_set(uint8_t level) {
|
||||||
|
// Optional - Run on level change
|
||||||
|
// - usually you want to respond to the new value
|
||||||
|
}
|
||||||
|
|
||||||
|
void backlight_task(void) {
|
||||||
|
// Optional - Run periodically
|
||||||
|
// - long running actions here can cause performance issues
|
||||||
|
}
|
||||||
|
```
|
||||||
|
@@ -2,18 +2,18 @@
|
|||||||
|
|
||||||
## Bluetooth Known Supported Hardware
|
## Bluetooth Known Supported Hardware
|
||||||
|
|
||||||
Currently Bluetooth support is limited to AVR based chips. For Bluetooth 2.1 Qmk has support for RN-42 HID Firmware and Bluefruit EZ Key the later of which is not produced anymore. For more recent BLE protocols currently only the Adafruit Bluefruit SPI friend is directly supported. BLE is needed to connect to iOS devices. Note iOS does not support Mouse Input.
|
Currently Bluetooth support is limited to AVR based chips. For Bluetooth 2.1, QMK has support for RN-42 modules and the Bluefruit EZ-Key, the latter of which is not produced anymore. For more recent BLE protocols, currently only the Adafruit Bluefruit SPI Friend is directly supported. BLE is needed to connect to iOS devices. Note iOS does not support mouse input.
|
||||||
|
|
||||||
|Board |Bluetooth Protocol |Connection Type |Rules.mk |Bluetooth Chip|
|
|Board |Bluetooth Protocol |Connection Type |rules.mk |Bluetooth Chip|
|
||||||
|----------------------------------------------------------------|----------------------------|----------------|---------------------------|--------------|
|
|----------------------------------------------------------------|----------------------------|----------------|---------------------------|--------------|
|
||||||
|[Adafruit EzKey HID]("https://www.adafruit.com/product/1535") |Bluetooth Classic | UART | BLUETOOTH = AdafruitEZKey | |
|
|[Adafruit EZ-Key HID](https://www.adafruit.com/product/1535) |Bluetooth Classic | UART |`BLUETOOTH = AdafruitEZKey` | |
|
||||||
|Rover Networks RN-42 (Sparkfun Bluesmirf) |Bluetooth Classic | UART | BLUETOOTH = RN42 | RN-42 |
|
|Roving Networks RN-42 (Sparkfun Bluesmirf) |Bluetooth Classic | UART |`BLUETOOTH = RN42` | RN-42 |
|
||||||
|[Bluefruit LE SPI Friend](https://www.adafruit.com/product/2633)|Bluetooth Low Energy | SPI | BLUETOOTH = AdafruitBLE | nRF5182 |
|
|[Bluefruit LE SPI Friend](https://www.adafruit.com/product/2633)|Bluetooth Low Energy | SPI |`BLUETOOTH = AdafruitBLE` | nRF51822 |
|
||||||
|
|
||||||
Not Supported Yet but possible:
|
Not Supported Yet but possible:
|
||||||
* [Bluefruit LE UART Friend](https://www.adafruit.com/product/2479). [Possible tmk implementation found in](https://github.com/tmk/tmk_keyboard/issues/514)
|
* [Bluefruit LE UART Friend](https://www.adafruit.com/product/2479). [Possible tmk implementation found in](https://github.com/tmk/tmk_keyboard/issues/514)
|
||||||
* HC-05 boards flashed with RN-42 firmware. They apparently both use the CSR BC417 Chip. Flashing it with RN-42 firmware gives it HID capability.
|
* HC-05 boards flashed with RN-42 firmware. They apparently both use the CSR BC417 Chip. Flashing it with RN-42 firmware gives it HID capability.
|
||||||
* [Sparkfun Bluetooth mate](https://www.sparkfun.com/products/14839)
|
* Sparkfun Bluetooth Mate
|
||||||
* HM-13 based boards
|
* HM-13 based boards
|
||||||
|
|
||||||
### Adafruit BLE SPI Friend
|
### Adafruit BLE SPI Friend
|
||||||
|
@@ -56,37 +56,37 @@ Hold down the Bootmagic key (Space by default) and the desired hotkey while plug
|
|||||||
|
|
||||||
## Keycodes
|
## Keycodes
|
||||||
|
|
||||||
|Keycode |Aliases |Description |
|
|Key |Aliases |Description |
|
||||||
|----------------------------------|---------|------------------------------------------|
|
|----------------------------------|---------|--------------------------------------------------------------------------|
|
||||||
|`MAGIC_CAPSLOCK_TO_CONTROL` | |Treat Caps Lock as Left Control |
|
|`MAGIC_SWAP_CONTROL_CAPSLOCK` |`CL_SWAP`|Swap Caps Lock and Left Control |
|
||||||
|`MAGIC_UNCAPSLOCK_TO_CONTROL` | |Stop treating Caps Lock as Left Control |
|
|`MAGIC_UNSWAP_CONTROL_CAPSLOCK` |`CL_NORM`|Unswap Caps Lock and Left Control |
|
||||||
|`MAGIC_HOST_NKRO` | |Force N-Key Rollover (NKRO) on |
|
|`MAGIC_CAPSLOCK_TO_CONTROL` |`CL_CTRL`|Treat Caps Lock as Control |
|
||||||
|`MAGIC_UNHOST_NKRO` | |Force NKRO off |
|
|`MAGIC_UNCAPSLOCK_TO_CONTROL` |`CL_CAPS`|Stop treating Caps Lock as Control |
|
||||||
|`MAGIC_TOGGLE_NKRO` | |Turn NKRO on or off |
|
|`MAGIC_SWAP_LCTL_LGUI` |`LCG_SWP`|Swap Left Control and GUI |
|
||||||
|`MAGIC_NO_GUI` | |Disable the GUI keys (useful when gaming) |
|
|`MAGIC_UNSWAP_LCTL_LGUI` |`LCG_NRM`|Unswap Left Control and GUI |
|
||||||
|`MAGIC_UNNO_GUI` | |Enable the GUI keys |
|
|`MAGIC_SWAP_RCTL_RGUI` |`RCG_SWP`|Swap Right Control and GUI |
|
||||||
|`MAGIC_SWAP_ALT_GUI` |`AG_SWAP`|Swap Alt and GUI on both sides (for macOS)|
|
|`MAGIC_UNSWAP_RCTL_RGUI` |`RCG_NRM`|Unswap Right Control and GUI |
|
||||||
|`MAGIC_UNSWAP_ALT_GUI` |`AG_NORM`|Unswap Alt and GUI |
|
|`MAGIC_SWAP_CTL_GUI` |`CG_SWAP`|Swap Control and GUI on both sides |
|
||||||
|`MAGIC_TOGGLE_ALT_GUI` |`AG_TOGG`|Toggle Alt and GUI swap |
|
|`MAGIC_UNSWAP_CTL_GUI` |`CG_NORM`|Unswap Control and GUI on both sides |
|
||||||
|`MAGIC_SWAP_CTL_GUI` |`CG_SWAP`|Swap Ctrl and GUI on both sides (for macOS)|
|
|`MAGIC_TOGGLE_CTL_GUI` |`CG_TOGG`|Toggle Control and GUI swap on both sides |
|
||||||
|`MAGIC_UNSWAP_CTL_GUI` |`CG_NORM`|Unswap Ctrl and GUI |
|
|`MAGIC_SWAP_LALT_LGUI` |`LAG_SWP`|Swap Left Alt and GUI |
|
||||||
|`MAGIC_TOGGLE_CTL_GUI` |`CG_TOGG`|Toggle Ctrl and GUI swap |
|
|`MAGIC_UNSWAP_LALT_LGUI` |`LAG_NRM`|Unswap Left Alt and GUI |
|
||||||
|`MAGIC_SWAP_BACKSLASH_BACKSPACE` | |Swap `\` and Backspace |
|
|`MAGIC_SWAP_RALT_RGUI` |`RAG_SWP`|Swap Right Alt and GUI |
|
||||||
|`MAGIC_UNSWAP_BACKSLASH_BACKSPACE`| |Unswap `\` and Backspace |
|
|`MAGIC_UNSWAP_RALT_RGUI` |`RAG_NRM`|Unswap Right Alt and GUI |
|
||||||
|`MAGIC_SWAP_CONTROL_CAPSLOCK` | |Swap Left Control and Caps Lock |
|
|`MAGIC_SWAP_ALT_GUI` |`AG_SWAP`|Swap Alt and GUI on both sides |
|
||||||
|`MAGIC_UNSWAP_CONTROL_CAPSLOCK` | |Unswap Left Control and Caps Lock |
|
|`MAGIC_UNSWAP_ALT_GUI` |`AG_NORM`|Unswap Alt and GUI on both sides |
|
||||||
|`MAGIC_SWAP_GRAVE_ESC` | |Swap <code>`</code> and Escape |
|
|`MAGIC_TOGGLE_ALT_GUI` |`AG_TOGG`|Toggle Alt and GUI swap on both sides |
|
||||||
|`MAGIC_UNSWAP_GRAVE_ESC` | |Unswap <code>`</code> and Escape |
|
|`MAGIC_NO_GUI` |`GUI_OFF`|Disable the GUI keys |
|
||||||
|`MAGIC_SWAP_LALT_LGUI` | |Swap Left Alt and Left GUI |
|
|`MAGIC_UNNO_GUI` |`GUI_ON` |Enable the GUI keys |
|
||||||
|`MAGIC_UNSWAP_LALT_LGUI` | |Unswap Left Alt and Left GUI |
|
|`MAGIC_SWAP_GRAVE_ESC` |`GE_SWAP`|Swap <code>`</code> and Escape |
|
||||||
|`MAGIC_SWAP_RALT_RGUI` | |Swap Right Alt and Right GUI |
|
|`MAGIC_UNSWAP_GRAVE_ESC` |`GE_NORM`|Unswap <code>`</code> and Escape |
|
||||||
|`MAGIC_UNSWAP_RALT_RGUI` | |Unswap Right Alt and Right GUI |
|
|`MAGIC_SWAP_BACKSLASH_BACKSPACE` |`BS_SWAP`|Swap `\` and Backspace |
|
||||||
|`MAGIC_SWAP_LCTL_LGUI` | |Swap Left Control and Left GUI |
|
|`MAGIC_UNSWAP_BACKSLASH_BACKSPACE`|`BS_NORM`|Unswap `\` and Backspace |
|
||||||
|`MAGIC_UNSWAP_LCTL_LGUI` | |Unswap Left Control and Left GUI |
|
|`MAGIC_HOST_NKRO` |`NK_ON` |Enable N-key rollover |
|
||||||
|`MAGIC_SWAP_RCTL_RGUI` | |Swap Right Control and Right GUI |
|
|`MAGIC_UNHOST_NKRO` |`NK_OFF` |Disable N-key rollover |
|
||||||
|`MAGIC_UNSWAP_RCTL_RGUI` | |Unswap Right Control and Right GUI |
|
|`MAGIC_TOGGLE_NKRO` |`NK_TOGG`|Toggle N-key rollover |
|
||||||
|`MAGIC_EE_HANDS_LEFT` | |Set "Left Hand" for EE_HANDS handedness |
|
|`MAGIC_EE_HANDS_LEFT` |`EH_LEFT`|Set the master half of a split keyboard as the left hand (for `EE_HANDS`) |
|
||||||
|`MAGIC_EE_HANDS_RIGHT` | |Set "Right Hand" for EE_HANDS handedness |
|
|`MAGIC_EE_HANDS_RIGHT` |`EH_RGHT`|Set the master half of a split keyboard as the right hand (for `EE_HANDS`)|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
@@ -17,14 +17,14 @@ endif
|
|||||||
| DEBOUNCE_TYPE | Description | What else is needed |
|
| DEBOUNCE_TYPE | Description | What else is needed |
|
||||||
| ------------- | --------------------------------------------------- | ----------------------------- |
|
| ------------- | --------------------------------------------------- | ----------------------------- |
|
||||||
| Not defined | Use the default algorithm, currently sym_g | Nothing |
|
| Not defined | Use the default algorithm, currently sym_g | Nothing |
|
||||||
| custom | Use your own debounce.c | ```SRC += debounce.c``` add your own debounce.c and implement necessary functions |
|
| custom | Use your own debounce code | ```SRC += debounce.c``` add your own debounce.c and implement necessary functions |
|
||||||
| anything_else | Use another algorithm from quantum/debounce/* | Nothing |
|
| anything_else | Use another algorithm from quantum/debounce/* | Nothing |
|
||||||
|
|
||||||
**Regarding split keyboards**:
|
**Regarding split keyboards**:
|
||||||
The debounce code is compatible with split keyboards.
|
The debounce code is compatible with split keyboards.
|
||||||
|
|
||||||
# Use your own debouncing code
|
# Use your own debouncing code
|
||||||
* Set ```DEBOUNCE_TYPE = custom ```.
|
* Set ```DEBOUNCE_TYPE = custom```.
|
||||||
* Add ```SRC += debounce.c```
|
* Add ```SRC += debounce.c```
|
||||||
* Add your own ```debounce.c```. Look at current implementations in ```quantum/debounce``` for examples.
|
* Add your own ```debounce.c```. Look at current implementations in ```quantum/debounce``` for examples.
|
||||||
* Debouncing occurs after every raw matrix scan.
|
* Debouncing occurs after every raw matrix scan.
|
||||||
@@ -33,10 +33,10 @@ The debounce code is compatible with split keyboards.
|
|||||||
# Changing between included debouncing methods
|
# Changing between included debouncing methods
|
||||||
You can either use your own code, by including your own debounce.c, or switch to another included one.
|
You can either use your own code, by including your own debounce.c, or switch to another included one.
|
||||||
Included debounce methods are:
|
Included debounce methods are:
|
||||||
* eager_pr - debouncing per row. On any state change, response is immediate, followed by locking the row ```DEBOUNCE_DELAY``` milliseconds of no further input for that row.
|
* eager_pr - debouncing per row. On any state change, response is immediate, followed by locking the row ```DEBOUNCE``` milliseconds of no further input for that row.
|
||||||
For use in keyboards where refreshing ```NUM_KEYS``` 8-bit counters is computationally expensive / low scan rate, and fingers usually only hit one row at a time. This could be
|
For use in keyboards where refreshing ```NUM_KEYS``` 8-bit counters is computationally expensive / low scan rate, and fingers usually only hit one row at a time. This could be
|
||||||
appropriate for the ErgoDox models; the matrix is rotated 90°, and hence its "rows" are really columns, and each finger only hits a single "row" at a time in normal use.
|
appropriate for the ErgoDox models; the matrix is rotated 90°, and hence its "rows" are really columns, and each finger only hits a single "row" at a time in normal use.
|
||||||
* eager_pk - debouncing per key. On any state change, response is immediate, followed by ```DEBOUNCE_DELAY``` milliseconds of no further input for that key
|
* eager_pk - debouncing per key. On any state change, response is immediate, followed by ```DEBOUNCE``` milliseconds of no further input for that key
|
||||||
* sym_g - debouncing per keyboard. On any state change, a global timer is set. When ```DEBOUNCE_DELAY``` milliseconds of no changes has occured, all input changes are pushed.
|
* sym_g - debouncing per keyboard. On any state change, a global timer is set. When ```DEBOUNCE``` milliseconds of no changes has occured, all input changes are pushed.
|
||||||
|
|
||||||
|
|
||||||
|
@@ -4,51 +4,45 @@ QMK supports temporary macros created on the fly. We call these Dynamic Macros.
|
|||||||
|
|
||||||
You can store one or two macros and they may have a combined total of 128 keypresses. You can increase this size at the cost of RAM.
|
You can store one or two macros and they may have a combined total of 128 keypresses. You can increase this size at the cost of RAM.
|
||||||
|
|
||||||
To enable them, first add a new element to the end of your `keycodes` enum — `DYNAMIC_MACRO_RANGE`:
|
To enable them, first include `DYNAMIC_MACRO_ENABLE = yes` in your `rules.mk`. Then, add the following keys to your keymap:
|
||||||
|
|
||||||
```c
|
|Key |Alias |Description |
|
||||||
enum keycodes {
|
|------------------|----------|---------------------------------------------------|
|
||||||
QWERTY = SAFE_RANGE,
|
|`DYN_REC_START1` |`DM_REC1` |Start recording Macro 1 |
|
||||||
COLEMAK,
|
|`DYN_REC_START2` |`DM_REC2` |Start recording Macro 2 |
|
||||||
DVORAK,
|
|`DYN_MACRO_PLAY1` |`DM_PLY1` |Replay Macro 1 |
|
||||||
PLOVER,
|
|`DYN_MACRO_PLAY2` |`DM_PLY2` |Replay Macro 2 |
|
||||||
LOWER,
|
|`DYN_REC_STOP` |`DM_RSTP` |Finish the macro that is currently being recorded. |
|
||||||
RAISE,
|
|
||||||
BACKLIT,
|
|
||||||
EXT_PLV,
|
|
||||||
DYNAMIC_MACRO_RANGE,
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
Your `keycodes` enum may have a slightly different name. You must add `DYNAMIC_MACRO_RANGE` as the last element because `dynamic_macros.h` will add some more keycodes after it.
|
That should be everything necessary.
|
||||||
|
|
||||||
Below it, include the `dynamic_macro.h` header:
|
To start recording the macro, press either `DYN_REC_START1` or `DYN_REC_START2`.
|
||||||
|
|
||||||
```c
|
To finish the recording, press the `DYN_REC_STOP` layer button.
|
||||||
#include "dynamic_macro.h"`
|
|
||||||
```
|
|
||||||
|
|
||||||
Add the following keys to your keymap:
|
To replay the macro, press either `DYN_MACRO_PLAY1` or `DYN_MACRO_PLAY2`.
|
||||||
|
|
||||||
* `DYN_REC_START1` — start recording the macro 1,
|
It is possible to replay a macro as part of a macro. It's ok to replay macro 2 while recording macro 1 and vice versa but never create recursive macros i.e. macro 1 that replays macro 1. If you do so and the keyboard will get unresponsive, unplug the keyboard and plug it again. You can disable this completly by defining `DYNAMIC_MACRO_NO_NESTING` in your `config.h` file.
|
||||||
* `DYN_REC_START2` — start recording the macro 2,
|
|
||||||
* `DYN_MACRO_PLAY1` — replay the macro 1,
|
|
||||||
* `DYN_MACRO_PLAY2` — replay the macro 2,
|
|
||||||
* `DYN_REC_STOP` — finish the macro that is currently being recorded.
|
|
||||||
|
|
||||||
Add the following code to the very beginning of your `process_record_user()` function:
|
?> For the details about the internals of the dynamic macros, please read the comments in the `process_dynamic_macro.h` and `process_dynamic_macro.c` files.
|
||||||
|
|
||||||
```c
|
## Customization
|
||||||
if (!process_record_dynamic_macro(keycode, record)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
That should be everything necessary. To start recording the macro, press either `DYN_REC_START1` or `DYN_REC_START2`. To finish the recording, press the `DYN_REC_STOP` layer button. To replay the macro, press either `DYN_MACRO_PLAY1` or `DYN_MACRO_PLAY2`.
|
There are a number of options added that should allow some additional degree of customization
|
||||||
|
|
||||||
Note that it's possible to replay a macro as part of a macro. It's ok to replay macro 2 while recording macro 1 and vice versa but never create recursive macros i.e. macro 1 that replays macro 1. If you do so and the keyboard will get unresponsive, unplug the keyboard and plug it again.
|
|Define |Default |Description |
|
||||||
|
|----------------------------|----------------|-----------------------------------------------------------------------------------------------------------------|
|
||||||
|
|`DYNAMIC_MACRO_SIZE` |128 |Sets the amount of memory that Dynamic Macros can use. This is a limited resource, dependent on the controller. |
|
||||||
|
|`DYNAMIC_MACRO_USER_CALL` |*Not defined* |Defining this falls back to using the user `keymap.c` file to trigger the macro behavior. |
|
||||||
|
|`DYNAMIC_MACRO_NO_NESTING` |*Not Defined* |Defining this disables the ability to call a macro from another macro (nested macros). |
|
||||||
|
|
||||||
For users of the earlier versions of dynamic macros: It is still possible to finish the macro recording using just the layer modifier used to access the dynamic macro keys, without a dedicated `DYN_REC_STOP` key. If you want this behavior back, use the following snippet instead of the one above:
|
|
||||||
|
If the LEDs start blinking during the recording with each keypress, it means there is no more space for the macro in the macro buffer. To fit the macro in, either make the other macro shorter (they share the same buffer) or increase the buffer size by adding the `DYNAMIC_MACRO_SIZE` define in your `config.h` (default value: 128; please read the comments for it in the header).
|
||||||
|
|
||||||
|
|
||||||
|
### DYNAMIC_MACRO_USER_CALL
|
||||||
|
|
||||||
|
For users of the earlier versions of dynamic macros: It is still possible to finish the macro recording using just the layer modifier used to access the dynamic macro keys, without a dedicated `DYN_REC_STOP` key. If you want this behavior back, add `#define DYNAMIC_MACRO_USER_CALL` to your `config.h` and insert the following snippet at the beginning of your `process_record_user()` function:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
uint16_t macro_kc = (keycode == MO(_DYN) ? DYN_REC_STOP : keycode);
|
uint16_t macro_kc = (keycode == MO(_DYN) ? DYN_REC_STOP : keycode);
|
||||||
@@ -58,6 +52,15 @@ For users of the earlier versions of dynamic macros: It is still possible to fin
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
If the LEDs start blinking during the recording with each keypress, it means there is no more space for the macro in the macro buffer. To fit the macro in, either make the other macro shorter (they share the same buffer) or increase the buffer size by setting the `DYNAMIC_MACRO_SIZE` preprocessor macro (default value: 128; please read the comments for it in the header).
|
### User Hooks
|
||||||
|
|
||||||
For the details about the internals of the dynamic macros, please read the comments in the `dynamic_macro.h` header.
|
There are a number of hooks that you can use to add custom functionality and feedback options to Dynamic Macro feature. This allows for some additional degree of customization.
|
||||||
|
|
||||||
|
Note, that direction indicates which macro it is, with `1` being Macro 1, `-1` being Macro 2, and 0 being no macro.
|
||||||
|
|
||||||
|
* `dynamic_macro_record_start_user(void)` - Triggered when you start recording a macro.
|
||||||
|
* `dynamic_macro_play_user(int8_t direction)` - Triggered when you play back a macro.
|
||||||
|
* `dynamic_macro_record_key_user(int8_t direction, keyrecord_t *record)` - Triggered on each keypress while recording a macro.
|
||||||
|
* `dynamic_macro_record_end_user(int8_t direction)` - Triggered when the macro recording is stopped.
|
||||||
|
|
||||||
|
Additionally, you can call `dynamic_macro_led_blink()` to flash the backlights if that feature is enabled.
|
||||||
|
@@ -2,23 +2,35 @@
|
|||||||
|
|
||||||
Basic encoders are supported by adding this to your `rules.mk`:
|
Basic encoders are supported by adding this to your `rules.mk`:
|
||||||
|
|
||||||
ENCODER_ENABLE = yes
|
```make
|
||||||
|
ENCODER_ENABLE = yes
|
||||||
|
```
|
||||||
|
|
||||||
and this to your `config.h`:
|
and this to your `config.h`:
|
||||||
|
|
||||||
#define ENCODERS_PAD_A { B12 }
|
```c
|
||||||
#define ENCODERS_PAD_B { B13 }
|
#define ENCODERS_PAD_A { B12 }
|
||||||
|
#define ENCODERS_PAD_B { B13 }
|
||||||
|
```
|
||||||
|
|
||||||
Each PAD_A/B variable defines an array so multiple encoders can be defined, e.g.:
|
Each PAD_A/B variable defines an array so multiple encoders can be defined, e.g.:
|
||||||
|
|
||||||
#define ENCODERS_PAD_A { encoder1a, encoder2a }
|
```c
|
||||||
#define ENCODERS_PAD_B { encoder1b, encoder2b }
|
#define ENCODERS_PAD_A { encoder1a, encoder2a }
|
||||||
|
#define ENCODERS_PAD_B { encoder1b, encoder2b }
|
||||||
|
```
|
||||||
|
|
||||||
If your encoder's clockwise directions are incorrect, you can swap the A & B pad definitions.
|
If your encoder's clockwise directions are incorrect, you can swap the A & B pad definitions. They can also be flipped with a define:
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define ENCODER_DIRECTION_FLIP
|
||||||
|
```
|
||||||
|
|
||||||
Additionally, the resolution can be specified in the same file (the default & suggested is 4):
|
Additionally, the resolution can be specified in the same file (the default & suggested is 4):
|
||||||
|
|
||||||
#define ENCODER_RESOLUTION 4
|
```c
|
||||||
|
#define ENCODER_RESOLUTION 4
|
||||||
|
```
|
||||||
|
|
||||||
## Split Keyboards
|
## Split Keyboards
|
||||||
|
|
||||||
@@ -33,27 +45,31 @@ If you are using different pinouts for the encoders on each half of a split keyb
|
|||||||
|
|
||||||
The callback functions can be inserted into your `<keyboard>.c`:
|
The callback functions can be inserted into your `<keyboard>.c`:
|
||||||
|
|
||||||
void encoder_update_kb(uint8_t index, bool clockwise) {
|
```c
|
||||||
encoder_update_user(index, clockwise);
|
void encoder_update_kb(uint8_t index, bool clockwise) {
|
||||||
}
|
encoder_update_user(index, clockwise);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
or `keymap.c`:
|
or `keymap.c`:
|
||||||
|
|
||||||
void encoder_update_user(uint8_t index, bool clockwise) {
|
```c
|
||||||
if (index == 0) { /* First encoder */
|
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||||
|
if (index == 0) { /* First encoder */
|
||||||
if (clockwise) {
|
if (clockwise) {
|
||||||
tap_code(KC_PGDN);
|
tap_code(KC_PGDN);
|
||||||
} else {
|
} else {
|
||||||
tap_code(KC_PGUP);
|
tap_code(KC_PGUP);
|
||||||
}
|
}
|
||||||
} else if (index == 1) { /* Second encoder */
|
} else if (index == 1) { /* Second encoder */
|
||||||
if (clockwise) {
|
if (clockwise) {
|
||||||
tap_code(KC_UP);
|
tap_code(KC_DOWN);
|
||||||
} else {
|
} else {
|
||||||
tap_code(KC_DOWN);
|
tap_code(KC_UP);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Hardware
|
## Hardware
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Haptic feedback rules.mk options
|
## Haptic feedback rules.mk options
|
||||||
|
|
||||||
The following options are currently available for haptic feedback in `rule.mk`:
|
The following options are currently available for haptic feedback in `rules.mk`:
|
||||||
|
|
||||||
`HAPTIC_ENABLE += DRV2605L`
|
`HAPTIC_ENABLE += DRV2605L`
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ Not all keycodes below will work depending on which haptic mechanism you have ch
|
|||||||
| Name | Description |
|
| Name | Description |
|
||||||
|-----------|-------------------------------------------------------|
|
|-----------|-------------------------------------------------------|
|
||||||
|`HPT_ON` | Turn haptic feedback on |
|
|`HPT_ON` | Turn haptic feedback on |
|
||||||
|`HPT_OFF` | Turn haptic feedback on |
|
|`HPT_OFF` | Turn haptic feedback off |
|
||||||
|`HPT_TOG` | Toggle haptic feedback on/off |
|
|`HPT_TOG` | Toggle haptic feedback on/off |
|
||||||
|`HPT_RST` | Reset haptic feedback config to default |
|
|`HPT_RST` | Reset haptic feedback config to default |
|
||||||
|`HPT_FBK` | Toggle feedback to occur on keypress, release or both |
|
|`HPT_FBK` | Toggle feedback to occur on keypress, release or both |
|
||||||
@@ -41,11 +41,15 @@ First you will need a build a circuit to drive the solenoid through a mosfet as
|
|||||||
|
|
||||||
[Wiring diagram provided by Adafruit](https://playground.arduino.cc/uploads/Learning/solenoid_driver.pdf)
|
[Wiring diagram provided by Adafruit](https://playground.arduino.cc/uploads/Learning/solenoid_driver.pdf)
|
||||||
|
|
||||||
Select a pin that has PWM for the signal pin
|
|
||||||
|
|
||||||
```
|
| Settings | Default | Description |
|
||||||
#define SOLENOID_PIN *pin*
|
|--------------------------|---------------|-------------------------------------------------------|
|
||||||
```
|
|`SOLENOID_PIN` | *Not defined* |Configures the pin that the Solenoid is connected to. |
|
||||||
|
|`SOLENOID_DEFAULT_DWELL` | `12` ms |Configures the default dwell time for the solenoid. |
|
||||||
|
|`SOLENOID_MIN_DWELL` | `4` ms |Sets the lower limit for the dwell. |
|
||||||
|
|`SOLENOID_MAX_DWELL` | `100` ms |Sets the upper limit for the dwell. |
|
||||||
|
|
||||||
|
?> Dwell time is how long the "plunger" stays activated. The dwell time changes how the solenoid sounds.
|
||||||
|
|
||||||
Beware that some pins may be powered during bootloader (ie. A13 on the STM32F303 chip) and will result in the solenoid kept in the on state through the whole flashing process. This may overheat and damage the solenoid. If you find that the pin the solenoid is connected to is triggering the solenoid during bootloader/DFU, select another pin.
|
Beware that some pins may be powered during bootloader (ie. A13 on the STM32F303 chip) and will result in the solenoid kept in the on state through the whole flashing process. This may overheat and damage the solenoid. If you find that the pin the solenoid is connected to is triggering the solenoid during bootloader/DFU, select another pin.
|
||||||
|
|
||||||
@@ -151,4 +155,4 @@ This will set what sequence HPT_RST will set as the active mode. If not defined,
|
|||||||
|
|
||||||
### DRV2605L Continuous Haptic Mode
|
### DRV2605L Continuous Haptic Mode
|
||||||
|
|
||||||
This mode sets continuous haptic feedback with the option to increase or decrease strength.
|
This mode sets continuous haptic feedback with the option to increase or decrease strength.
|
||||||
|
@@ -22,10 +22,10 @@ void matrix_scan_user(void) {
|
|||||||
SEND_STRING("QMK is awesome.");
|
SEND_STRING("QMK is awesome.");
|
||||||
}
|
}
|
||||||
SEQ_TWO_KEYS(KC_D, KC_D) {
|
SEQ_TWO_KEYS(KC_D, KC_D) {
|
||||||
SEND_STRING(SS_LCTRL("a")SS_LCTRL("c"));
|
SEND_STRING(SS_LCTL("a") SS_LCTL("c"));
|
||||||
}
|
}
|
||||||
SEQ_THREE_KEYS(KC_D, KC_D, KC_S) {
|
SEQ_THREE_KEYS(KC_D, KC_D, KC_S) {
|
||||||
SEND_STRING("https://start.duckduckgo.com"SS_TAP(X_ENTER));
|
SEND_STRING("https://start.duckduckgo.com\n");
|
||||||
}
|
}
|
||||||
SEQ_TWO_KEYS(KC_A, KC_S) {
|
SEQ_TWO_KEYS(KC_A, KC_S) {
|
||||||
register_code(KC_LGUI);
|
register_code(KC_LGUI);
|
||||||
@@ -115,11 +115,11 @@ void matrix_scan_user(void) {
|
|||||||
|
|
||||||
SEQ_ONE_KEY(KC_E) {
|
SEQ_ONE_KEY(KC_E) {
|
||||||
// Anything you can do in a macro.
|
// Anything you can do in a macro.
|
||||||
SEND_STRING(SS_LCTRL(SS_LSFT("t")));
|
SEND_STRING(SS_LCTL(SS_LSFT("t")));
|
||||||
did_leader_succeed = true;
|
did_leader_succeed = true;
|
||||||
} else
|
} else
|
||||||
SEQ_TWO_KEYS(KC_E, KC_D) {
|
SEQ_TWO_KEYS(KC_E, KC_D) {
|
||||||
SEND_STRING(SS_LGUI("r")"cmd"SS_TAP(KC_ENTER)SS_LCTRL("c"));
|
SEND_STRING(SS_LGUI("r") "cmd\n" SS_LCTL("c"));
|
||||||
did_leader_succeed = true;
|
did_leader_succeed = true;
|
||||||
}
|
}
|
||||||
leader_end();
|
leader_end();
|
||||||
|
@@ -67,14 +67,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||||||
case QMKURL:
|
case QMKURL:
|
||||||
if (record->event.pressed) {
|
if (record->event.pressed) {
|
||||||
// when keycode QMKURL is pressed
|
// when keycode QMKURL is pressed
|
||||||
SEND_STRING("https://qmk.fm/" SS_TAP(X_ENTER));
|
SEND_STRING("https://qmk.fm/\n");
|
||||||
} else {
|
} else {
|
||||||
// when keycode QMKURL is released
|
// when keycode QMKURL is released
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MY_OTHER_MACRO:
|
case MY_OTHER_MACRO:
|
||||||
if (record->event.pressed) {
|
if (record->event.pressed) {
|
||||||
SEND_STRING(SS_LCTRL("ac")); // selects all and copies
|
SEND_STRING(SS_LCTL("ac")); // selects all and copies
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -107,20 +107,33 @@ Would tap `KC_HOME` - note how the prefix is now `X_`, and not `KC_`. You can al
|
|||||||
|
|
||||||
Which would send "VE" followed by a `KC_HOME` tap, and "LO" (spelling "LOVE" if on a newline).
|
Which would send "VE" followed by a `KC_HOME` tap, and "LO" (spelling "LOVE" if on a newline).
|
||||||
|
|
||||||
|
Delays can be also added to the string:
|
||||||
|
|
||||||
|
* `SS_DELAY(msecs)` will delay for the specified number of milliseconds.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
SEND_STRING("VE" SS_DELAY(1000) SS_TAP(X_HOME) "LO");
|
||||||
|
|
||||||
|
Which would send "VE" followed by a 1-second delay, then a `KC_HOME` tap, and "LO" (spelling "LOVE" if on a newline, but delayed in the middle).
|
||||||
|
|
||||||
There's also a couple of mod shortcuts you can use:
|
There's also a couple of mod shortcuts you can use:
|
||||||
|
|
||||||
* `SS_LCTRL(string)`
|
* `SS_LCTL(string)`
|
||||||
* `SS_LGUI(string)`
|
|
||||||
* `SS_LALT(string)`
|
|
||||||
* `SS_LSFT(string)`
|
* `SS_LSFT(string)`
|
||||||
* `SS_RALT(string)`
|
* `SS_LALT(string)`
|
||||||
|
* `SS_LGUI(string)`, `SS_LCMD(string)` or `SS_LWIN(string)`
|
||||||
|
* `SS_RCTL(string)`
|
||||||
|
* `SS_RSFT(string)`
|
||||||
|
* `SS_RALT(string)` or `SS_ALGR(string)`
|
||||||
|
* `SS_RGUI(string)`, `SS_RCMD(string)` or `SS_RWIN(string)`
|
||||||
|
|
||||||
These press the respective modifier, send the supplied string and then release the modifier.
|
These press the respective modifier, send the supplied string and then release the modifier.
|
||||||
They can be used like this:
|
They can be used like this:
|
||||||
|
|
||||||
SEND_STRING(SS_LCTRL("a"));
|
SEND_STRING(SS_LCTL("a"));
|
||||||
|
|
||||||
Which would send LCTRL+a (LCTRL down, a, LCTRL up) - notice that they take strings (eg `"k"`), and not the `X_K` keycodes.
|
Which would send Left Control+`a` (Left Control down, `a`, Left Control up) - notice that they take strings (eg `"k"`), and not the `X_K` keycodes.
|
||||||
|
|
||||||
### Alternative Keymaps
|
### Alternative Keymaps
|
||||||
|
|
||||||
@@ -151,6 +164,8 @@ SEND_STRING(".."SS_TAP(X_END));
|
|||||||
|
|
||||||
There are some functions you may find useful in macro-writing. Keep in mind that while you can write some fairly advanced code within a macro, if your functionality gets too complex you may want to define a custom keycode instead. Macros are meant to be simple.
|
There are some functions you may find useful in macro-writing. Keep in mind that while you can write some fairly advanced code within a macro, if your functionality gets too complex you may want to define a custom keycode instead. Macros are meant to be simple.
|
||||||
|
|
||||||
|
?> You can also use the functions described in [Useful function](ref_functions.md) for additional functionality. For example `reset_keyboard()` allows you to reset the keyboard as part of a macro.
|
||||||
|
|
||||||
### `record->event.pressed`
|
### `record->event.pressed`
|
||||||
|
|
||||||
This is a boolean value that can be tested to see if the switch is being pressed or released. An example of this is
|
This is a boolean value that can be tested to see if the switch is being pressed or released. An example of this is
|
||||||
@@ -195,11 +210,11 @@ This will clear all mods currently pressed.
|
|||||||
|
|
||||||
This will clear all keys besides the mods currently pressed.
|
This will clear all keys besides the mods currently pressed.
|
||||||
|
|
||||||
## Advanced Example:
|
## Advanced Example:
|
||||||
|
|
||||||
### Super ALT↯TAB
|
### Super ALT↯TAB
|
||||||
|
|
||||||
This macro will register `KC_LALT` and tap `KC_TAB`, then wait for 1000ms. If the key is tapped again, it will send another `KC_TAB`; if there is no tap, `KC_LALT` will be unregistered, thus allowing you to cycle through windows.
|
This macro will register `KC_LALT` and tap `KC_TAB`, then wait for 1000ms. If the key is tapped again, it will send another `KC_TAB`; if there is no tap, `KC_LALT` will be unregistered, thus allowing you to cycle through windows.
|
||||||
|
|
||||||
```c
|
```c
|
||||||
bool is_alt_tab_active = false; # ADD this near the begining of keymap.c
|
bool is_alt_tab_active = false; # ADD this near the begining of keymap.c
|
||||||
@@ -216,7 +231,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||||||
if (!is_alt_tab_active) {
|
if (!is_alt_tab_active) {
|
||||||
is_alt_tab_active = true;
|
is_alt_tab_active = true;
|
||||||
register_code(KC_LALT);
|
register_code(KC_LALT);
|
||||||
}
|
}
|
||||||
alt_tab_timer = timer_read();
|
alt_tab_timer = timer_read();
|
||||||
register_code(KC_TAB);
|
register_code(KC_TAB);
|
||||||
} else {
|
} else {
|
||||||
@@ -227,7 +242,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void matrix_scan_user(void) { # The very important timer.
|
void matrix_scan_user(void) { # The very important timer.
|
||||||
if (is_alt_tab_active) {
|
if (is_alt_tab_active) {
|
||||||
if (timer_elapsed(alt_tab_timer) > 1000) {
|
if (timer_elapsed(alt_tab_timer) > 1000) {
|
||||||
unregister_code(KC_LALT);
|
unregister_code(KC_LALT);
|
||||||
@@ -316,7 +331,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Advanced Example:
|
## Advanced Example:
|
||||||
|
|
||||||
### Single-Key Copy/Paste
|
### Single-Key Copy/Paste
|
||||||
|
|
||||||
|
@@ -1,139 +1,142 @@
|
|||||||
# OLED Driver
|
# OLED Driver
|
||||||
|
|
||||||
## OLED Supported Hardware
|
## Supported Hardware
|
||||||
|
|
||||||
OLED modules using SSD1306 or SH1106 driver ICs, communicating over I2C.
|
OLED modules using SSD1306 or SH1106 driver ICs, communicating over I2C.
|
||||||
Tested combinations:
|
Tested combinations:
|
||||||
|
|
||||||
| IC driver | Size | Keyboard Platform | Notes |
|
|IC |Size |Platform|Notes |
|
||||||
|-----------|--------|-------------------|--------------------------|
|
|---------|------|--------|------------------------|
|
||||||
| SSD1306 | 128x32 | AVR | Primary support |
|
|SSD1306 |128x32|AVR |Primary support |
|
||||||
| SSD1306 | 128x64 | AVR | Verified working |
|
|SSD1306 |128x64|AVR |Verified working |
|
||||||
| SSD1306 | 128x32 | ARM | |
|
|SSD1306 |128x32|Arm | |
|
||||||
| SH1106 | 128x64 | AVR | No rotation or scrolling |
|
|SH1106 |128x64|AVR |No rotation or scrolling|
|
||||||
|
|
||||||
Hardware configurations using ARM-based microcontrollers or different sizes of OLED modules may be compatible, but are untested.
|
Hardware configurations using Arm-based microcontrollers or different sizes of OLED modules may be compatible, but are untested.
|
||||||
|
|
||||||
!> Warning: This OLED Driver currently uses the new i2c_master driver from split common code. If your split keyboard uses I2C to communicate between sides, this driver could cause an address conflict (serial is fine). Please contact your keyboard vendor and ask them to migrate to the latest split common code to fix this. In addition, the display timeout system to reduce OLED burn-in also uses split common to detect keypresses, so you will need to implement custom timeout logic for non-split common keyboards.
|
!> Warning: This OLED driver currently uses the new i2c_master driver from Split Common code. If your split keyboard uses I2C to communicate between sides, this driver could cause an address conflict (serial is fine). Please contact your keyboard vendor and ask them to migrate to the latest Split Common code to fix this. In addition, the display timeout system to reduce OLED burn-in also uses Split Common to detect keypresses, so you will need to implement custom timeout logic for non-Split Common keyboards.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
To enable the OLED feature, there are three steps. First, when compiling your keyboard, you'll need to set `OLED_DRIVER_ENABLE=yes` in `rules.mk`, e.g.:
|
To enable the OLED feature, there are three steps. First, when compiling your keyboard, you'll need to add the following to your `rules.mk`:
|
||||||
|
|
||||||
```
|
```make
|
||||||
OLED_DRIVER_ENABLE = yes
|
OLED_DRIVER_ENABLE = yes
|
||||||
```
|
```
|
||||||
|
|
||||||
This enables the feature and the `OLED_DRIVER_ENABLE` define. Then in your `keymap.c` file, you will need to implement the user task call, e.g:
|
Then in your `keymap.c` file, implement the OLED task call. This example assumes your keymap has three layers named `_QWERTY`, `_FN` and `_ADJ`:
|
||||||
|
|
||||||
```C++
|
```c
|
||||||
#ifdef OLED_DRIVER_ENABLE
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
void oled_task_user(void) {
|
void oled_task_user(void) {
|
||||||
// Host Keyboard Layer Status
|
// Host Keyboard Layer Status
|
||||||
oled_write_P(PSTR("Layer: "), false);
|
oled_write_P(PSTR("Layer: "), false);
|
||||||
switch (get_highest_layer(layer_state)) {
|
|
||||||
case _QWERTY:
|
|
||||||
oled_write_P(PSTR("Default\n"), false);
|
|
||||||
break;
|
|
||||||
case _FN:
|
|
||||||
oled_write_P(PSTR("FN\n"), false);
|
|
||||||
break;
|
|
||||||
case _ADJ:
|
|
||||||
oled_write_P(PSTR("ADJ\n"), false);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
// Or use the write_ln shortcut over adding '\n' to the end of your string
|
|
||||||
oled_write_ln_P(PSTR("Undefined"), false);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Host Keyboard LED Status
|
switch (get_highest_layer(layer_state)) {
|
||||||
uint8_t led_usb_state = host_keyboard_leds();
|
case _QWERTY:
|
||||||
oled_write_P(led_usb_state & (1<<USB_LED_NUM_LOCK) ? PSTR("NUMLCK ") : PSTR(" "), false);
|
oled_write_P(PSTR("Default\n"), false);
|
||||||
oled_write_P(led_usb_state & (1<<USB_LED_CAPS_LOCK) ? PSTR("CAPLCK ") : PSTR(" "), false);
|
break;
|
||||||
oled_write_P(led_usb_state & (1<<USB_LED_SCROLL_LOCK) ? PSTR("SCRLCK ") : PSTR(" "), false);
|
case _FN:
|
||||||
|
oled_write_P(PSTR("FN\n"), false);
|
||||||
|
break;
|
||||||
|
case _ADJ:
|
||||||
|
oled_write_P(PSTR("ADJ\n"), false);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
// Or use the write_ln shortcut over adding '\n' to the end of your string
|
||||||
|
oled_write_ln_P(PSTR("Undefined"), false);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Host Keyboard LED Status
|
||||||
|
led_t led_state = host_keyboard_led_state();
|
||||||
|
oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false);
|
||||||
|
oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false);
|
||||||
|
oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
```
|
```
|
||||||
|
|
||||||
## Logo Example
|
## Logo Example
|
||||||
|
|
||||||
In the default font, ranges in the font file are reserved for a QMK Logo. To Render this logo to the oled screen, use the following code example:
|
In the default font, certain ranges of characters are reserved for a QMK logo. To render this logo to the OLED screen, use the following code example:
|
||||||
|
|
||||||
```C++
|
```c
|
||||||
static void render_logo(void) {
|
static void render_logo(void) {
|
||||||
static const char PROGMEM qmk_logo[] = {
|
static const char PROGMEM qmk_logo[] = {
|
||||||
0x80,0x81,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x8a,0x8b,0x8c,0x8d,0x8e,0x8f,0x90,0x91,0x92,0x93,0x94,
|
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,
|
0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4,
|
||||||
0xc0,0xc1,0xc2,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce,0xcf,0xd0,0xd1,0xd2,0xd3,0xd4,0};
|
0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0x00
|
||||||
|
};
|
||||||
|
|
||||||
oled_write_P(qmk_logo, false);
|
oled_write_P(qmk_logo, false);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Other Examples
|
## Other Examples
|
||||||
|
|
||||||
In split keyboards, it is very common to have two OLED displays that each render different content and oriented flipped differently. You can do this by switching which content to render by using the return from `is_keyboard_master()` or `is_keyboard_left()` found in `split_util.h`, e.g:
|
In split keyboards, it is very common to have two OLED displays that each render different content and are oriented or flipped differently. You can do this by switching which content to render by using the return value from `is_keyboard_master()` or `is_keyboard_left()` found in `split_util.h`, e.g:
|
||||||
|
|
||||||
```C++
|
```c
|
||||||
#ifdef OLED_DRIVER_ENABLE
|
#ifdef OLED_DRIVER_ENABLE
|
||||||
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
oled_rotation_t oled_init_user(oled_rotation_t rotation) {
|
||||||
if (!is_keyboard_master())
|
if (!is_keyboard_master()) {
|
||||||
return OLED_ROTATION_180; // flips the display 180 degrees if offhand
|
return OLED_ROTATION_180; // flips the display 180 degrees if offhand
|
||||||
return rotation;
|
}
|
||||||
|
|
||||||
|
return rotation;
|
||||||
}
|
}
|
||||||
|
|
||||||
void oled_task_user(void) {
|
void oled_task_user(void) {
|
||||||
if (is_keyboard_master()) {
|
if (is_keyboard_master()) {
|
||||||
render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc)
|
render_status(); // Renders the current keyboard state (layer, lock, caps, scroll, etc)
|
||||||
} else {
|
} else {
|
||||||
render_logo(); // Renders a statuc logo
|
render_logo(); // Renders a static logo
|
||||||
oled_scroll_left(); // Turns on scrolling
|
oled_scroll_left(); // Turns on scrolling
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Basic Configuration
|
||||||
|
|
||||||
## Basic Configuration
|
|Define |Default |Description |
|
||||||
|
|---------------------------|-----------------|--------------------------------------------------------------------------------------------------------------------------|
|
||||||
| Define | Default | Description |
|
|`OLED_DISPLAY_ADDRESS` |`0x3C` |The i2c address of the OLED Display |
|
||||||
|----------------------------|-------------------|----------------------------------------------------------------------------------------------------------------------------|
|
|`OLED_FONT_H` |`"glcdfont.c"` |The font code file to use for custom fonts |
|
||||||
| `OLED_DISPLAY_ADDRESS` | `0x3C` | The i2c address of the OLED Display |
|
|`OLED_FONT_START` |`0` |The starting characer index for custom fonts |
|
||||||
| `OLED_FONT_H` | `"glcdfont.c"` | The font code file to use for custom fonts |
|
|`OLED_FONT_END` |`223` |The ending characer index for custom fonts |
|
||||||
| `OLED_FONT_START` | `0` | The starting characer index for custom fonts |
|
|`OLED_FONT_WIDTH` |`6` |The font width |
|
||||||
| `OLED_FONT_END` | `224` | The ending characer index for custom fonts |
|
|`OLED_FONT_HEIGHT` |`8` |The font height (untested) |
|
||||||
| `OLED_FONT_WIDTH` | `6` | The font width |
|
|`OLED_TIMEOUT` |`60000` |Turns off the OLED screen after 60000ms of keyboard inactivity. Helps reduce OLED Burn-in. Set to 0 to disable. |
|
||||||
| `OLED_FONT_HEIGHT` | `8` | The font height (untested) |
|
|`OLED_SCROLL_TIMEOUT` |`0` |Scrolls the OLED screen after 0ms of OLED inactivity. Helps reduce OLED Burn-in. Set to 0 to disable. |
|
||||||
| `OLED_TIMEOUT` | `60000` | Turns off the OLED screen after 60000ms of keyboard inactivity. Helps reduce OLED Burn-in. Set to 0 to disable. |
|
|`OLED_SCROLL_TIMEOUT_RIGHT`|*Not defined* |Scroll timeout direction is right when defined, left when undefined. |
|
||||||
| `OLED_SCROLL_TIMEOUT` | `0` | Scrolls the OLED screen after 0ms of OLED inactivity. Helps reduce OLED Burn-in. Set to 0 to disable. |
|
|`OLED_IC` |`OLED_IC_SSD1306`|Set to `OLED_IC_SH1106` if you're using the SH1106 OLED controller. |
|
||||||
| `OLED_SCROLL_TIMEOUT_RIGHT`| *Not defined* | Scroll timeout direction is right when defined, left when undefined. |
|
|`OLED_COLUMN_OFFSET` |`0` |(SH1106 only.) Shift output to the right this many pixels.<br />Useful for 128x64 displays centered on a 132x64 SH1106 IC.|
|
||||||
| `OLED_IC` | `OLED_IC_SSD1306` | Set to `OLED_IC_SH1106` if you're using the SH1106 OLED controller. |
|
|
||||||
| `OLED_COLUMN_OFFSET` | `0` | (SH1106 only.) Shift output to the right this many pixels.<br />Useful for 128x64 displays centered on a 132x64 SH1106 IC. |
|
|
||||||
|
|
||||||
## 128x64 & Custom sized OLED Displays
|
## 128x64 & Custom sized OLED Displays
|
||||||
|
|
||||||
The default display size for this feature is 128x32 and all necessary defines are precalculated with that in mind. We have added a define, `OLED_DISPLAY_128X64`, to switch all the values to be used in a 128x64 display, as well as added a custom define, `OLED_DISPLAY_CUSTOM`, that allows you to provide the necessary values to the driver.
|
The default display size for this feature is 128x32 and all necessary defines are precalculated with that in mind. We have added a define, `OLED_DISPLAY_128X64`, to switch all the values to be used in a 128x64 display, as well as added a custom define, `OLED_DISPLAY_CUSTOM`, that allows you to provide the necessary values to the driver.
|
||||||
|
|
||||||
|Define |Default |Description |
|
|Define |Default |Description |
|
||||||
|-----------------------|---------------|-----------------------------------------------------------------|
|
|---------------------|---------------|----------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
|`OLED_DISPLAY_128X64` |*Not defined* |Changes the display defines for use with 128x64 displays. |
|
|`OLED_DISPLAY_128X64`|*Not defined* |Changes the display defines for use with 128x64 displays. |
|
||||||
|`OLED_DISPLAY_CUSTOM` |*Not defined* |Changes the display defines for use with custom displays.<br />Requires user to implement the below defines. |
|
|`OLED_DISPLAY_CUSTOM`|*Not defined* |Changes the display defines for use with custom displays.<br>Requires user to implement the below defines. |
|
||||||
|`OLED_DISPLAY_WIDTH` |`128` |The width of the OLED display. |
|
|`OLED_DISPLAY_WIDTH` |`128` |The width of the OLED display. |
|
||||||
|`OLED_DISPLAY_HEIGHT` |`32` |The height of the OLED display. |
|
|`OLED_DISPLAY_HEIGHT`|`32` |The height of the OLED display. |
|
||||||
|`OLED_MATRIX_SIZE` |`512` |The local buffer size to allocate.<br />`(OLED_DISPLAY_HEIGHT / 8 * OLED_DISPLAY_WIDTH)`. |
|
|`OLED_MATRIX_SIZE` |`512` |The local buffer size to allocate.<br>`(OLED_DISPLAY_HEIGHT / 8 * OLED_DISPLAY_WIDTH)`. |
|
||||||
|`OLED_BLOCK_TYPE` |`uint16_t` |The unsigned integer type to use for dirty rendering. |
|
|`OLED_BLOCK_TYPE` |`uint16_t` |The unsigned integer type to use for dirty rendering. |
|
||||||
|`OLED_BLOCK_COUNT` |`16` |The number of blocks the display is divided into for dirty rendering.<br />`(sizeof(OLED_BLOCK_TYPE) * 8)`. |
|
|`OLED_BLOCK_COUNT` |`16` |The number of blocks the display is divided into for dirty rendering.<br>`(sizeof(OLED_BLOCK_TYPE) * 8)`. |
|
||||||
|`OLED_BLOCK_SIZE` |`32` |The size of each block for dirty rendering<br />`(OLED_MATRIX_SIZE / OLED_BLOCK_COUNT)`. |
|
|`OLED_BLOCK_SIZE` |`32` |The size of each block for dirty rendering<br>`(OLED_MATRIX_SIZE / OLED_BLOCK_COUNT)`. |
|
||||||
|`OLED_COM_PINS` |`COM_PINS_SEQ` |How the SSD1306 chip maps it's memory to display.<br />Options are `COM_PINS_SEQ`, `COM_PINS_ALT`, `COM_PINS_SEQ_LR`, & `COM_PINS_ALT_LR`. |
|
|`OLED_COM_PINS` |`COM_PINS_SEQ` |How the SSD1306 chip maps it's memory to display.<br>Options are `COM_PINS_SEQ`, `COM_PINS_ALT`, `COM_PINS_SEQ_LR`, & `COM_PINS_ALT_LR`.|
|
||||||
|`OLED_SOURCE_MAP` |`{ 0, ... N }` |Precalculated source array to use for mapping source buffer to target OLED memory in 90 degree rendering. |
|
|`OLED_SOURCE_MAP` |`{ 0, ... N }` |Precalculated source array to use for mapping source buffer to target OLED memory in 90 degree rendering. |
|
||||||
|`OLED_TARGET_MAP` |`{ 24, ... N }`|Precalculated target array to use for mapping source buffer to target OLED memory in 90 degree rendering. |
|
|`OLED_TARGET_MAP` |`{ 24, ... N }`|Precalculated target array to use for mapping source buffer to target OLED memory in 90 degree rendering. |
|
||||||
|
|
||||||
|
|
||||||
### 90 Degree Rotation - Technical Mumbo Jumbo
|
### 90 Degree Rotation - Technical Mumbo Jumbo
|
||||||
|
|
||||||
!> Rotation is unsupported on the SH1106.
|
!> Rotation is unsupported on the SH1106.
|
||||||
|
|
||||||
```C
|
```c
|
||||||
// OLED Rotation enum values are flags
|
// OLED Rotation enum values are flags
|
||||||
typedef enum {
|
typedef enum {
|
||||||
OLED_ROTATION_0 = 0,
|
OLED_ROTATION_0 = 0,
|
||||||
@@ -143,9 +146,9 @@ typedef enum {
|
|||||||
} oled_rotation_t;
|
} oled_rotation_t;
|
||||||
```
|
```
|
||||||
|
|
||||||
OLED displays driven by SSD1306 drivers only natively support in hard ware 0 degree and 180 degree rendering. This feature is done in software and not free. Using this feature will increase the time to calculate what data to send over i2c to the OLED. If you are strapped for cycles, this can cause keycodes to not register. In testing however, the rendering time on an `atmega32u4` board only went from 2ms to 5ms and keycodes not registering was only noticed once we hit 15ms.
|
OLED displays driven by SSD1306 drivers only natively support in hardware 0 degree and 180 degree rendering. This feature is done in software and not free. Using this feature will increase the time to calculate what data to send over i2c to the OLED. If you are strapped for cycles, this can cause keycodes to not register. In testing however, the rendering time on an ATmega32U4 board only went from 2ms to 5ms and keycodes not registering was only noticed once we hit 15ms.
|
||||||
|
|
||||||
90 Degree Rotated Rendering is achieved by using bitwise operations to rotate each 8 block of memory and uses two precalculated arrays to remap buffer memory to OLED memory. The memory map defines are precalculated for remap performance and are calculated based on the OLED Height, Width, and Block Size. For example, in the 128x32 implementation with a `uint8_t` block type, we have a 64 byte block size. This gives us eight 8 byte blocks that need to be rotated and rendered. The OLED renders horizontally two 8 byte blocks before moving down a page, e.g:
|
90 degree rotation is achieved by using bitwise operations to rotate each 8 block of memory and uses two precalculated arrays to remap buffer memory to OLED memory. The memory map defines are precalculated for remap performance and are calculated based on the display height, width, and block size. For example, in the 128x32 implementation with a `uint8_t` block type, we have a 64 byte block size. This gives us eight 8 byte blocks that need to be rotated and rendered. The OLED renders horizontally two 8 byte blocks before moving down a page, e.g:
|
||||||
|
|
||||||
| | | | | | |
|
| | | | | | |
|
||||||
|---|---|---|---|---|---|
|
|---|---|---|---|---|---|
|
||||||
@@ -167,8 +170,8 @@ So those precalculated arrays just index the memory offsets in the order in whic
|
|||||||
|
|
||||||
## OLED API
|
## OLED API
|
||||||
|
|
||||||
```C++
|
```c
|
||||||
// OLED Rotation enum values are flags
|
// OLED rotation enum values are flags
|
||||||
typedef enum {
|
typedef enum {
|
||||||
OLED_ROTATION_0 = 0,
|
OLED_ROTATION_0 = 0,
|
||||||
OLED_ROTATION_90 = 1,
|
OLED_ROTATION_90 = 1,
|
||||||
@@ -229,6 +232,12 @@ void oled_write_P(const char *data, bool invert);
|
|||||||
// Remapped to call 'void oled_write_ln(const char *data, bool invert);' on ARM
|
// Remapped to call 'void oled_write_ln(const char *data, bool invert);' on ARM
|
||||||
void oled_write_ln_P(const char *data, bool invert);
|
void oled_write_ln_P(const char *data, bool invert);
|
||||||
|
|
||||||
|
// Writes a string to the buffer at current cursor position
|
||||||
|
void oled_write_raw(const char *data, uint16_t size);
|
||||||
|
|
||||||
|
// Writes a PROGMEM string to the buffer at current cursor position
|
||||||
|
void oled_write_raw_P(const char *data, uint16_t size);
|
||||||
|
|
||||||
// Can be used to manually turn on the screen if it is off
|
// Can be used to manually turn on the screen if it is off
|
||||||
// Returns true if the screen was on or turns on
|
// Returns true if the screen was on or turns on
|
||||||
bool oled_on(void);
|
bool oled_on(void);
|
||||||
@@ -266,26 +275,26 @@ uint8_t oled_max_lines(void);
|
|||||||
|
|
||||||
!> Scrolling and rotation are unsupported on the SH1106.
|
!> Scrolling and rotation are unsupported on the SH1106.
|
||||||
|
|
||||||
## SSD1306.h driver conversion guide
|
## SSD1306.h Driver Conversion Guide
|
||||||
|
|
||||||
|Old API |Recommended New API |
|
|Old API |Recommended New API |
|
||||||
|---------------------------|-----------------------------------|
|
|-------------------------|---------------------------------|
|
||||||
|`struct CharacterMatrix` |*removed - delete all references* |
|
|`struct CharacterMatrix` |*removed - delete all references*|
|
||||||
|`iota_gfx_init` |`oled_init` |
|
|`iota_gfx_init` |`oled_init` |
|
||||||
|`iota_gfx_on` |`oled_on` |
|
|`iota_gfx_on` |`oled_on` |
|
||||||
|`iota_gfx_off` |`oled_off` |
|
|`iota_gfx_off` |`oled_off` |
|
||||||
|`iota_gfx_flush` |`oled_render` |
|
|`iota_gfx_flush` |`oled_render` |
|
||||||
|`iota_gfx_write_char` |`oled_write_char` |
|
|`iota_gfx_write_char` |`oled_write_char` |
|
||||||
|`iota_gfx_write` |`oled_write` |
|
|`iota_gfx_write` |`oled_write` |
|
||||||
|`iota_gfx_write_P` |`oled_write_P` |
|
|`iota_gfx_write_P` |`oled_write_P` |
|
||||||
|`iota_gfx_clear_screen` |`oled_clear` |
|
|`iota_gfx_clear_screen` |`oled_clear` |
|
||||||
|`matrix_clear` |*removed - delete all references* |
|
|`matrix_clear` |*removed - delete all references*|
|
||||||
|`matrix_write_char_inner` |`oled_write_char` |
|
|`matrix_write_char_inner`|`oled_write_char` |
|
||||||
|`matrix_write_char` |`oled_write_char` |
|
|`matrix_write_char` |`oled_write_char` |
|
||||||
|`matrix_write` |`oled_write` |
|
|`matrix_write` |`oled_write` |
|
||||||
|`matrix_write_ln` |`oled_write_ln` |
|
|`matrix_write_ln` |`oled_write_ln` |
|
||||||
|`matrix_write_P` |`oled_write_P` |
|
|`matrix_write_P` |`oled_write_P` |
|
||||||
|`matrix_write_ln_P` |`oled_write_ln_P` |
|
|`matrix_write_ln_P` |`oled_write_ln_P` |
|
||||||
|`matrix_render` |`oled_render` |
|
|`matrix_render` |`oled_render` |
|
||||||
|`iota_gfx_task` |`oled_task` |
|
|`iota_gfx_task` |`oled_task` |
|
||||||
|`iota_gfx_task_user` |`oled_task_user` |
|
|`iota_gfx_task_user` |`oled_task_user` |
|
||||||
|
@@ -107,7 +107,7 @@ Where `X_Y` is the location of the LED in the matrix defined by [the datasheet](
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### WS2812 (AVR only)
|
### WS2812
|
||||||
|
|
||||||
There is basic support for addressable RGB matrix lighting with a WS2811/WS2812{a,b,c} addressable LED strand. To enable it, add this to your `rules.mk`:
|
There is basic support for addressable RGB matrix lighting with a WS2811/WS2812{a,b,c} addressable LED strand. To enable it, add this to your `rules.mk`:
|
||||||
|
|
||||||
@@ -173,16 +173,20 @@ As mentioned earlier, the center of the keyboard by default is expected to be `{
|
|||||||
|
|
||||||
All RGB keycodes are currently shared with the RGBLIGHT system:
|
All RGB keycodes are currently shared with the RGBLIGHT system:
|
||||||
|
|
||||||
* `RGB_TOG` - toggle
|
|Key |Aliases |Description |
|
||||||
* `RGB_MOD` - cycle through modes
|
|-------------------|----------|--------------------------------------------------------------------------------------|
|
||||||
* `RGB_HUI` - increase hue
|
|`RGB_TOG` | |Toggle RGB lighting on or off |
|
||||||
* `RGB_HUD` - decrease hue
|
|`RGB_MODE_FORWARD` |`RGB_MOD` |Cycle through modes, reverse direction when Shift is held |
|
||||||
* `RGB_SAI` - increase saturation
|
|`RGB_MODE_REVERSE` |`RGB_RMOD`|Cycle through modes in reverse, forward direction when Shift is held |
|
||||||
* `RGB_SAD` - decrease saturation
|
|`RGB_HUI` | |Increase hue, decrease hue when Shift is held |
|
||||||
* `RGB_VAI` - increase value
|
|`RGB_HUD` | |Decrease hue, increase hue when Shift is held |
|
||||||
* `RGB_VAD` - decrease value
|
|`RGB_SAI` | |Increase saturation, decrease saturation when Shift is held |
|
||||||
* `RGB_SPI` - increase speed effect (no EEPROM support)
|
|`RGB_SAD` | |Decrease saturation, increase saturation when Shift is held |
|
||||||
* `RGB_SPD` - decrease speed effect (no EEPROM support)
|
|`RGB_VAI` | |Increase value (brightness), decrease value when Shift is held |
|
||||||
|
|`RGB_VAD` | |Decrease value (brightness), increase value when Shift is held |
|
||||||
|
|`RGB_SPI` | |Increase effect speed (does not support eeprom yet), decrease speed when Shift is held|
|
||||||
|
|`RGB_SPD` | |Decrease effect speed (does not support eeprom yet), increase speed when Shift is held|
|
||||||
|
|
||||||
* `RGB_MODE_*` keycodes will generally work, but are not currently mapped to the correct effects for the RGB Matrix system
|
* `RGB_MODE_*` keycodes will generally work, but are not currently mapped to the correct effects for the RGB Matrix system
|
||||||
|
|
||||||
## RGB Matrix Effects
|
## RGB Matrix Effects
|
||||||
@@ -195,6 +199,7 @@ enum rgb_matrix_effects {
|
|||||||
RGB_MATRIX_SOLID_COLOR = 1, // Static single hue, no speed support
|
RGB_MATRIX_SOLID_COLOR = 1, // Static single hue, no speed support
|
||||||
RGB_MATRIX_ALPHAS_MODS, // Static dual hue, speed is hue for secondary hue
|
RGB_MATRIX_ALPHAS_MODS, // Static dual hue, speed is hue for secondary hue
|
||||||
RGB_MATRIX_GRADIENT_UP_DOWN, // Static gradient top to bottom, speed controls how much gradient changes
|
RGB_MATRIX_GRADIENT_UP_DOWN, // Static gradient top to bottom, speed controls how much gradient changes
|
||||||
|
RGB_MATRIX_GRADIENT_LEFT_RIGHT, // Static gradient left to right, speed controls how much gradient changes
|
||||||
RGB_MATRIX_BREATHING, // Single hue brightness cycling animation
|
RGB_MATRIX_BREATHING, // Single hue brightness cycling animation
|
||||||
RGB_MATRIX_BAND_SAT, // Single hue band fading saturation scrolling left to right
|
RGB_MATRIX_BAND_SAT, // Single hue band fading saturation scrolling left to right
|
||||||
RGB_MATRIX_BAND_VAL, // Single hue band fading brightness scrolling left to right
|
RGB_MATRIX_BAND_VAL, // Single hue band fading brightness scrolling left to right
|
||||||
@@ -282,7 +287,7 @@ You can disable a single effect by defining `DISABLE_[EFFECT_NAME]` in your `con
|
|||||||
|
|
||||||
## Custom RGB Matrix Effects
|
## Custom RGB Matrix Effects
|
||||||
|
|
||||||
By setting `RGB_MATRIX_CUSTOM_USER` (and/or `RGB_MATRIX_CUSTOM_KB`) in `rule.mk`, new effects can be defined directly from userspace, without having to edit any QMK core files.
|
By setting `RGB_MATRIX_CUSTOM_USER` (and/or `RGB_MATRIX_CUSTOM_KB`) in `rules.mk`, new effects can be defined directly from userspace, without having to edit any QMK core files.
|
||||||
|
|
||||||
To declare new effects, create a new `rgb_matrix_user/kb.inc` that looks something like this:
|
To declare new effects, create a new `rgb_matrix_user/kb.inc` that looks something like this:
|
||||||
|
|
||||||
@@ -375,6 +380,10 @@ These are defined in [`rgblight_list.h`](https://github.com/qmk/qmk_firmware/blo
|
|||||||
#define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
|
#define RGB_MATRIX_LED_FLUSH_LIMIT 16 // limits in milliseconds how frequently an animation will update the LEDs. 16 (16ms) is equivalent to limiting to 60fps (increases keyboard responsiveness)
|
||||||
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
|
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255
|
||||||
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set
|
#define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set
|
||||||
|
#define RGB_MATRIX_STARTUP_HUE 0 // Sets the default hue value, if none has been set
|
||||||
|
#define RGB_MATRIX_STARTUP_SAT 255 // Sets the default saturation value, if none has been set
|
||||||
|
#define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS // Sets the default brightness value, if none has been set
|
||||||
|
#define RGB_MATRIX_STARTUP_SPD 127 // Sets the default animation speed, if none has been set
|
||||||
```
|
```
|
||||||
|
|
||||||
## EEPROM storage
|
## EEPROM storage
|
||||||
|
@@ -6,7 +6,7 @@ QMK has the ability to control RGB LEDs attached to your keyboard. This is commo
|
|||||||
|
|
||||||
Some keyboards come with RGB LEDs preinstalled. Others must have them installed after the fact. See the [Hardware Modification](#hardware-modification) section for information on adding RGB lighting to your keyboard.
|
Some keyboards come with RGB LEDs preinstalled. Others must have them installed after the fact. See the [Hardware Modification](#hardware-modification) section for information on adding RGB lighting to your keyboard.
|
||||||
|
|
||||||
Currently QMK supports the following addressable LEDs on AVR microcontrollers (however, the white LED in RGBW variants is not supported):
|
Currently QMK supports the following addressable LEDs (however, the white LED in RGBW variants is not supported):
|
||||||
|
|
||||||
* WS2811, WS2812, WS2812B, WS2812C, etc.
|
* WS2811, WS2812, WS2812B, WS2812C, etc.
|
||||||
* SK6812, SK6812MINI, SK6805
|
* SK6812, SK6812MINI, SK6805
|
||||||
@@ -48,12 +48,12 @@ Changing the **Value** sets the overall brightness.<br>
|
|||||||
|`RGB_TOG` | |Toggle RGB lighting on or off |
|
|`RGB_TOG` | |Toggle RGB lighting on or off |
|
||||||
|`RGB_MODE_FORWARD` |`RGB_MOD` |Cycle through modes, reverse direction when Shift is held |
|
|`RGB_MODE_FORWARD` |`RGB_MOD` |Cycle through modes, reverse direction when Shift is held |
|
||||||
|`RGB_MODE_REVERSE` |`RGB_RMOD`|Cycle through modes in reverse, forward direction when Shift is held|
|
|`RGB_MODE_REVERSE` |`RGB_RMOD`|Cycle through modes in reverse, forward direction when Shift is held|
|
||||||
|`RGB_HUI` | |Increase hue |
|
|`RGB_HUI` | |Increase hue, decrease hue when Shift is held |
|
||||||
|`RGB_HUD` | |Decrease hue |
|
|`RGB_HUD` | |Decrease hue, increase hue when Shift is held |
|
||||||
|`RGB_SAI` | |Increase saturation |
|
|`RGB_SAI` | |Increase saturation, decrease saturation when Shift is held |
|
||||||
|`RGB_SAD` | |Decrease saturation |
|
|`RGB_SAD` | |Decrease saturation, increase saturation when Shift is held |
|
||||||
|`RGB_VAI` | |Increase value (brightness) |
|
|`RGB_VAI` | |Increase value (brightness), decrease value when Shift is held |
|
||||||
|`RGB_VAD` | |Decrease value (brightness) |
|
|`RGB_VAD` | |Decrease value (brightness), increase value when Shift is held |
|
||||||
|`RGB_MODE_PLAIN` |`RGB_M_P `|Static (no animation) mode |
|
|`RGB_MODE_PLAIN` |`RGB_M_P `|Static (no animation) mode |
|
||||||
|`RGB_MODE_BREATHE` |`RGB_M_B` |Breathing animation mode |
|
|`RGB_MODE_BREATHE` |`RGB_M_B` |Breathing animation mode |
|
||||||
|`RGB_MODE_RAINBOW` |`RGB_M_R` |Rainbow animation mode |
|
|`RGB_MODE_RAINBOW` |`RGB_M_R` |Rainbow animation mode |
|
||||||
@@ -363,8 +363,8 @@ Using the `rgblight_set_clipping_range()` function, you can prepare more buffers
|
|||||||
You can set the Clipping Range by executing the following code.
|
You can set the Clipping Range by executing the following code.
|
||||||
|
|
||||||
```c
|
```c
|
||||||
// some soruce
|
// some source
|
||||||
rgblight_set_clipping_range(3, 4);
|
rgblight_set_clipping_range(3, 4);
|
||||||
```
|
```
|
||||||
<img src="https://user-images.githubusercontent.com/2170248/55743785-2bd82a00-5a6e-11e9-9d4b-1b4ffaf4932b.JPG" alt="clip direct" width="70%"/>
|
<img src="https://user-images.githubusercontent.com/2170248/55743785-2bd82a00-5a6e-11e9-9d4b-1b4ffaf4932b.JPG" alt="clip direct" width="70%"/>
|
||||||
|
|
||||||
|
@@ -47,7 +47,7 @@ The 3 wires of the TRS/TRRS cable need to connect GND, VCC, and D0 (aka PDO or p
|
|||||||
|
|
||||||
The 4 wires of the TRRS cable need to connect GND, VCC, and SCL and SDA (aka PD0/pin 3 and PD1/pin 2, respectively) between the two Pro Micros.
|
The 4 wires of the TRRS cable need to connect GND, VCC, and SCL and SDA (aka PD0/pin 3 and PD1/pin 2, respectively) between the two Pro Micros.
|
||||||
|
|
||||||
The pull-up resistors may be placed on either half. It is also possible to use 4 resistors and have the pull-ups in both halves, but this is unnecessary in simple use cases.
|
The pull-up resistors may be placed on either half. If you wish to use the halves independently, it is also possible to use 4 resistors and have the pull-ups in both halves.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -198,10 +198,15 @@ This option changes the startup behavior to detect an active USB connection when
|
|||||||
?> This setting will stop the ability to demo using battery packs.
|
?> This setting will stop the ability to demo using battery packs.
|
||||||
|
|
||||||
```c
|
```c
|
||||||
#define SPLIT_USB_TIMEOUT 2500
|
#define SPLIT_USB_TIMEOUT 2000
|
||||||
```
|
```
|
||||||
This sets the maximum timeout when detecting master/slave when using `SPLIT_USB_DETECT`.
|
This sets the maximum timeout when detecting master/slave when using `SPLIT_USB_DETECT`.
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define SPLIT_USB_TIMEOUT_POLL 10
|
||||||
|
```
|
||||||
|
This sets the poll frequency when detecting master/slave when using `SPLIT_USB_DETECT`
|
||||||
|
|
||||||
## Additional Resources
|
## Additional Resources
|
||||||
|
|
||||||
Nicinabox has a [very nice and detailed guide](https://github.com/nicinabox/lets-split-guide) for the Let's Split keyboard, that covers most everything you need to know, including troubleshooting information.
|
Nicinabox has a [very nice and detailed guide](https://github.com/nicinabox/lets-split-guide) for the Let's Split keyboard, that covers most everything you need to know, including troubleshooting information.
|
||||||
|
@@ -333,6 +333,8 @@ And then simply use `TD(X_CTL)` anywhere in your keymap.
|
|||||||
|
|
||||||
If you want to implement this in your userspace, then you may want to check out how [DanielGGordon](https://github.com/qmk/qmk_firmware/tree/master/users/gordon) has implemented this in their userspace.
|
If you want to implement this in your userspace, then you may want to check out how [DanielGGordon](https://github.com/qmk/qmk_firmware/tree/master/users/gordon) has implemented this in their userspace.
|
||||||
|
|
||||||
|
> In this configuration "hold" takes place **after** tap dance timeout (see `ACTION_TAP_DANCE_FN_ADVANCED_TIME`). To achieve instant hold, remove `state->interrupted` checks in conditions. As a result you may use comfortable longer tapping periods to have more time for taps and not to wait too long for holds (try starting with doubled `TAPPING_TERM`).
|
||||||
|
|
||||||
### Example 5: Using tap dance for advanced mod-tap and layer-tap keys
|
### Example 5: Using tap dance for advanced mod-tap and layer-tap keys
|
||||||
|
|
||||||
Tap dance can be used to emulate `MT()` and `LT()` behavior when the tapped code is not a basic keycode. This is useful to send tapped keycodes that normally require `Shift`, such as parentheses or curly braces—or other modified keycodes, such as `Control + X`.
|
Tap dance can be used to emulate `MT()` and `LT()` behavior when the tapped code is not a basic keycode. This is useful to send tapped keycodes that normally require `Shift`, such as parentheses or curly braces—or other modified keycodes, such as `Control + X`.
|
||||||
|
@@ -193,12 +193,23 @@ By default, when the keyboard boots, it will initialize the input mode to the la
|
|||||||
|
|
||||||
!> Using `UNICODE_SELECTED_MODES` means you don't have to initially set the input mode in `matrix_init_user()` (or a similar function); the Unicode system will do that for you on startup. This has the added benefit of avoiding unnecessary writes to EEPROM.
|
!> Using `UNICODE_SELECTED_MODES` means you don't have to initially set the input mode in `matrix_init_user()` (or a similar function); the Unicode system will do that for you on startup. This has the added benefit of avoiding unnecessary writes to EEPROM.
|
||||||
|
|
||||||
## `send_unicode_hex_string`
|
## `send_unicode_string()`
|
||||||
|
|
||||||
To type multiple characters for things like (ノಠ痊ಠ)ノ彡┻━┻, you can use `send_unicode_hex_string()` much like `SEND_STRING()` except you would use hex values separate by spaces.
|
This function is much like `send_string()` but allows you to input UTF-8 characters directly, and supports all code points (provided the selected input method also supports it). Make sure your `keymap.c` is formatted in UTF-8 encoding.
|
||||||
For example, the table flip seen above would be `send_unicode_hex_string("0028 30CE 0CA0 75CA 0CA0 0029 30CE 5F61 253B 2501 253B")`
|
|
||||||
|
|
||||||
There are many ways to get a hex code, but an easy one is [this site](https://r12a.github.io/app-conversion/). Just make sure to convert to hexadecimal, and that is your string.
|
```c
|
||||||
|
send_unicode_string("(ノಠ痊ಠ)ノ彡┻━┻");
|
||||||
|
```
|
||||||
|
|
||||||
|
## `send_unicode_hex_string()`
|
||||||
|
|
||||||
|
Similar to `send_unicode_string()`, but the characters are represented by their code point values in ASCII, separated by spaces. For example, the table flip above would be achieved with:
|
||||||
|
|
||||||
|
```c
|
||||||
|
send_unicode_hex_string("0028 30CE 0CA0 75CA 0CA0 0029 30CE 5F61 253B 2501 253B");
|
||||||
|
```
|
||||||
|
|
||||||
|
An easy way to convert your Unicode string to this format is by using [this site](https://r12a.github.io/app-conversion/), and taking the result in the "Hex/UTF-32" section.
|
||||||
|
|
||||||
## Additional Language Support
|
## Additional Language Support
|
||||||
|
|
||||||
@@ -228,6 +239,6 @@ AutoHotkey inserts the Text right of `Send, ` when this combination is pressed.
|
|||||||
|
|
||||||
If you enable the US International layout on the system, it will use punctuation to accent the characters.
|
If you enable the US International layout on the system, it will use punctuation to accent the characters.
|
||||||
|
|
||||||
For instance, typing "`a" will result in à.
|
For instance, typing "\`a" will result in à.
|
||||||
|
|
||||||
You can find details on how to enable this [here](https://support.microsoft.com/en-us/help/17424/windows-change-keyboard-layout).
|
You can find details on how to enable this [here](https://support.microsoft.com/en-us/help/17424/windows-change-keyboard-layout).
|
||||||
|
@@ -208,23 +208,15 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||||||
clear_mods(); clear_oneshot_mods();
|
clear_mods(); clear_oneshot_mods();
|
||||||
SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP);
|
SEND_STRING("make " QMK_KEYBOARD ":" QMK_KEYMAP);
|
||||||
#ifndef FLASH_BOOTLOADER
|
#ifndef FLASH_BOOTLOADER
|
||||||
if ( (temp_mod | temp_osm) & MOD_MASK_SHIFT )
|
if ((temp_mod | temp_osm) & MOD_MASK_SHIFT)
|
||||||
#endif
|
#endif
|
||||||
{ //
|
{
|
||||||
#if defined(__arm__) // only run for ARM boards
|
SEND_STRING(":flash");
|
||||||
SEND_STRING(":dfu-util");
|
|
||||||
#elif defined(BOOTLOADER_DFU) // only run for DFU boards
|
|
||||||
SEND_STRING(":dfu");
|
|
||||||
#elif defined(BOOTLOADER_HALFKAY) // only run for teensy boards
|
|
||||||
SEND_STRING(":teensy");
|
|
||||||
#elif defined(BOOTLOADER_CATERINA) // only run for Pro Micros
|
|
||||||
SEND_STRING(":avrdude");
|
|
||||||
#endif // bootloader options
|
|
||||||
}
|
}
|
||||||
if ( (temp_mod | temp_osm) & MOD_MASK_CTRL) {
|
if ((temp_mod | temp_osm) & MOD_MASK_CTRL) {
|
||||||
SEND_STRING(" -j8 --output-sync");
|
SEND_STRING(" -j8 --output-sync");
|
||||||
}
|
}
|
||||||
SEND_STRING(SS_TAP(X_ENTER));
|
tap_code(KC_ENT);
|
||||||
set_mods(temp_mod);
|
set_mods(temp_mod);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -244,7 +236,7 @@ endif
|
|||||||
|
|
||||||
This will add a new `KC_MAKE` keycode that can be used in any of your keymaps. And this keycode will output `make <keyboard>:<keymap>`, making frequent compiling easier. And this will work with any keyboard and any keymap as it will output the current boards info, so that you don't have to type this out every time.
|
This will add a new `KC_MAKE` keycode that can be used in any of your keymaps. And this keycode will output `make <keyboard>:<keymap>`, making frequent compiling easier. And this will work with any keyboard and any keymap as it will output the current boards info, so that you don't have to type this out every time.
|
||||||
|
|
||||||
Also, holding `shift` will add the appropriate flashing command (`:dfu`, `:teensy`, `:avrdude`, `:dfu-util`) for a majority of keyboards. Holding `control` will add some commands that will speed up compiling time by processing multiple files at once.
|
Also, holding Shift will add the flash target (`:flash`) to the command. Holding Control will add some commands that will speed up compiling time by processing multiple files at once.
|
||||||
|
|
||||||
And for the boards that lack a shift key, or that you want to always attempt the flashing part, you can add `FLASH_BOOTLOADER = yes` to the `rules.mk` of that keymap.
|
And for the boards that lack a shift key, or that you want to always attempt the flashing part, you can add `FLASH_BOOTLOADER = yes` to the `rules.mk` of that keymap.
|
||||||
|
|
||||||
|
@@ -99,11 +99,16 @@ or
|
|||||||
|
|
||||||
make <keyboard>:<keymap>:avrdude
|
make <keyboard>:<keymap>:avrdude
|
||||||
|
|
||||||
or if you want to flash multiple boards, use the following command
|
|
||||||
|
|
||||||
make <keyboard>:<keymap>:avrdude-loop
|
#### Caterina commands
|
||||||
|
|
||||||
|
There are a number of DFU commands that you can use to flash firmware to a DFU device:
|
||||||
|
|
||||||
|
* `:avrdude` - This is the normal option which waits until a Caterina device is available (by detecting a new COM port), and then flashes the firmware.
|
||||||
|
* `:avrdude-loop` - This runs the same command as `:avrdude`, but after each device is flashed, it will attempt to flash again. This is useful for bulk flashing. _This requires you to manually escape the loop by hitting Ctrl+C._
|
||||||
|
* `:avrdude-split-left` - This flashes the normal firmware, just like the default option (`:avrdude`). However, this also flashes the "Left Side" EEPROM file for split keyboards. _This is ideal for Pro Micro based split keyboards._
|
||||||
|
* `:avrdude-split-right` - This flashes the normal firmware, just like the default option (`:avrdude`). However, this also flashes the "Right Side" EEPROM file for split keyboards. _This is ideal for Pro Micro based split keyboards._
|
||||||
|
|
||||||
When you're done flashing boards, you'll need to hit Ctrl + C or whatever the correct keystroke is for your operating system to break the loop.
|
|
||||||
|
|
||||||
|
|
||||||
## Halfkay
|
## Halfkay
|
||||||
@@ -231,7 +236,7 @@ Flashing sequence:
|
|||||||
|
|
||||||
There are a number of DFU commands that you can use to flash firmware to a STM32 device:
|
There are a number of DFU commands that you can use to flash firmware to a STM32 device:
|
||||||
|
|
||||||
* `:dfu-util` - The default command for flashing to STM32 devices.
|
* `:dfu-util` - The default command for flashing to STM32 devices, and will wait until an STM32 bootloader device is present.
|
||||||
* `:dfu-util-split-left` - This flashes the normal firmware, just like the default option (`:dfu-util`). However, this also configures the "Left Side" EEPROM setting for split keyboards.
|
* `:dfu-util-split-left` - This flashes the normal firmware, just like the default option (`:dfu-util`). However, this also configures the "Left Side" EEPROM setting for split keyboards.
|
||||||
* `:dfu-util-split-right` - This flashes the normal firmware, just like the default option (`:dfu-util`). However, this also configures the "Right Side" EEPROM setting for split keyboards.
|
* `:dfu-util-split-right` - This flashes the normal firmware, just like the default option (`:dfu-util`). However, this also configures the "Right Side" EEPROM setting for split keyboards.
|
||||||
* `:st-link-cli` - This allows you to flash the firmware via ST-LINK's CLI utility, rather than dfu-util.
|
* `:st-link-cli` - This allows you to flash the firmware via ST-LINK's CLI utility, rather than dfu-util.
|
||||||
|
@@ -13,7 +13,7 @@ General flashing sequence:
|
|||||||
|
|
||||||
## bootloadHID Flashing Target
|
## bootloadHID Flashing Target
|
||||||
|
|
||||||
Using the QMK installation script, detailed [here](newbs_getting_started.md), the required bootloadHID tools should be automatically installed.
|
?> Using the QMK installation script, detailed [here](newbs_getting_started.md), the required bootloadHID tools should be automatically installed.
|
||||||
|
|
||||||
To flash via the command line, use the target `:bootloadHID` by executing the following command:
|
To flash via the command line, use the target `:bootloadHID` by executing the following command:
|
||||||
|
|
||||||
|
@@ -1,125 +0,0 @@
|
|||||||
**En Français**
|
|
||||||
|
|
||||||
* [Guide pour débutant complet](fr-FR/newbs.md)
|
|
||||||
* [Pour débuter](fr-FR/newbs_getting_started.md)
|
|
||||||
* [Compiler son premier firmware](fr-FR/newbs_building_firmware.md)
|
|
||||||
* [Flasher le Firmware](fr-FR/newbs_flashing.md)
|
|
||||||
* [Test et Débuggage](fr-FR/newbs_testing_debugging.md)
|
|
||||||
* [Bonnes pratiques Git](fr-FR/newbs_best_practices.md)
|
|
||||||
* [Ressources d'apprentissage](fr-FR/newbs_learn_more_resources.md)
|
|
||||||
|
|
||||||
* [Les bases de QMK](fr-FR/README.md)
|
|
||||||
* [Indroduction à QMK](fr-FR/getting_started_introduction.md)
|
|
||||||
* [QMK CLI](fr-FR/cli.md)
|
|
||||||
* [Configuration de la CLI QMK](fr-FR/cli_configuration.md)
|
|
||||||
* [Contribuer à QMK](fr-FR/contributing.md)
|
|
||||||
* [Comment utiliser GitHub](fr-FR/getting_started_github.md)
|
|
||||||
* [Trouver de l'aide](fr-FR/getting_started_getting_help.md)
|
|
||||||
|
|
||||||
* [Breaking changes](fr-FR/breaking_changes.md)
|
|
||||||
* [30 août 2019](fr-FR/ChangeLog/20190830.md)
|
|
||||||
|
|
||||||
**En Anglais**
|
|
||||||
|
|
||||||
* [FAQ](faq.md)
|
|
||||||
* [FAQ Générale](faq_general.md)
|
|
||||||
* [Compiler QMK](faq_build.md)
|
|
||||||
* [Débugguer / Dépanner QMK](faq_debug.md)
|
|
||||||
* [Keymap / Disposition](faq_keymap.md)
|
|
||||||
* [Installer les drivers avec Zadig](driver_installation_zadig.md)
|
|
||||||
|
|
||||||
* Guides détaillés
|
|
||||||
* [Installation des outils de compilation](getting_started_build_tools.md)
|
|
||||||
* [Guide Vagrant](getting_started_vagrant.md)
|
|
||||||
* [Commandes de compilations](getting_started_make_guide.md)
|
|
||||||
* [Flasher les firmwares](fr-fr/flashing.md)
|
|
||||||
* [Personnaliser les fonctionnalités](custom_quantum_functions.md)
|
|
||||||
* [Aperçu des fonctionnalités des dispositions](keymap.md)
|
|
||||||
|
|
||||||
* [Hardware](hardware.md)
|
|
||||||
* [Processeurs AVR](hardware_avr.md)
|
|
||||||
* [Pilotes / Drivers](hardware_drivers.md)
|
|
||||||
|
|
||||||
* Réferences
|
|
||||||
* [Lignes de conduite des claviers](hardware_keyboard_guidelines.md)
|
|
||||||
* [Options de configurations](config_options.md)
|
|
||||||
* [Keycodes / Codes des caractères](keycodes.md)
|
|
||||||
* [Conventions de codage - C](coding_conventions_c.md)
|
|
||||||
* [Conventions de codage - Python](coding_conventions_python.md)
|
|
||||||
* [Meilleurs pratiques sur la documentation](documentation_best_practices.md)
|
|
||||||
* [Modèles de documentation](documentation_templates.md)
|
|
||||||
* [Glossaire](reference_glossary.md)
|
|
||||||
* [Tests unitaires](unit_testing.md)
|
|
||||||
* [Fonctions utiles](ref_functions.md)
|
|
||||||
* [Support de configuration](reference_configurator_support.md)
|
|
||||||
* [Format du fichier info.json](reference_info_json.md)
|
|
||||||
* [Développer la CLI en Python](cli_development.md)
|
|
||||||
|
|
||||||
* [Fonctionnalités](features.md)
|
|
||||||
* [Keycodes basiques](keycodes_basic.md)
|
|
||||||
* [Touches utilisées avec Shift (US ANSI)](keycodes_us_ansi_shifted.md)
|
|
||||||
* [Keycodes quantiques](quantum_keycodes.md)
|
|
||||||
* [Keycodes avancés](feature_advanced_keycodes.md)
|
|
||||||
* [Fonctionnalités audio](feature_audio.md)
|
|
||||||
* [Majuscule automatique](feature_auto_shift.md)
|
|
||||||
* [Rétroéclairage](feature_backlight.md)
|
|
||||||
* [Bluetooth](feature_bluetooth.md)
|
|
||||||
* [Bootmagic](feature_bootmagic.md)
|
|
||||||
* [Combos](feature_combo.md)
|
|
||||||
* [Commande](feature_command.md)
|
|
||||||
* [API anti-rebond](feature_debounce_type.md)
|
|
||||||
* [DIP Switch](feature_dip_switch.md)
|
|
||||||
* [Macros dynamiques](feature_dynamic_macros.md)
|
|
||||||
* [Interrupteurs rotatifs](feature_encoders.md)
|
|
||||||
* [Grave Escape](feature_grave_esc.md)
|
|
||||||
* [Retour haptique](feature_haptic_feedback.md)
|
|
||||||
* [Contrôleur LCD HD44780](feature_hd44780.md)
|
|
||||||
* [Touche à verrou / Lock-key](feature_key_lock.md)
|
|
||||||
* [Dispositions / layouts](feature_layouts.md)
|
|
||||||
* [Touche leader](feature_leader_key.md)
|
|
||||||
* [Matrice LED](feature_led_matrix.md)
|
|
||||||
* [Macros](feature_macros.md)
|
|
||||||
* [Boutons de souris](feature_mouse_keys.md)
|
|
||||||
* [Pilotes / Drivers OLED](feature_oled_driver.md)
|
|
||||||
* [Touche one-shot](feature_advanced_keycodes.md#one-shot-keys)
|
|
||||||
* [Périphériques de pointage](feature_pointing_device.md)
|
|
||||||
* [Souris PS/2](feature_ps2_mouse.md)
|
|
||||||
* [Éclairage RGB](feature_rgblight.md)
|
|
||||||
* [Matrice RGB](feature_rgb_matrix.md)
|
|
||||||
* [Space Cadet](feature_space_cadet.md)
|
|
||||||
* [Claviers scindés / splittés](feature_split_keyboard.md)
|
|
||||||
* [Stenographie](feature_stenography.md)
|
|
||||||
* [Inversion des mains](feature_swap_hands.md)
|
|
||||||
* [Tap Dance](feature_tap_dance.md)
|
|
||||||
* [Terminale](feature_terminal.md)
|
|
||||||
* [Imprimante thermique](feature_thermal_printer.md)
|
|
||||||
* [Caractères unicodes](feature_unicode.md)
|
|
||||||
* [Dossier utilisateur](feature_userspace.md)
|
|
||||||
* [Velocikey](feature_velocikey.md)
|
|
||||||
|
|
||||||
* Pour les makers et les bricoleurs
|
|
||||||
* [Guide des claviers soudés à la main](hand_wire.md)
|
|
||||||
* [Guide de flash de l’ISP](isp_flashing_guide.md)
|
|
||||||
* [Guide du débogage ARM](arm_debugging.md)
|
|
||||||
* [Drivers i2c](i2c_driver.md)
|
|
||||||
* [Contrôles des GPIO](internals_gpio_control.md)
|
|
||||||
* [Conversion en Proton C](proton_c_conversion.md)
|
|
||||||
|
|
||||||
* Pour aller plus loin
|
|
||||||
* [Comment fonctionnent les claviers](how_keyboards_work.md)
|
|
||||||
* [Comprendre QMK](understanding_qmk.md)
|
|
||||||
|
|
||||||
* Autres sujets
|
|
||||||
* [Utiliser Eclipse avec QMK](other_eclipse.md)
|
|
||||||
* [Utiliser VSCode avec QMK](other_vscode.md)
|
|
||||||
* [Support](support.md)
|
|
||||||
* [Comment ajouter des traductions](translating.md)
|
|
||||||
|
|
||||||
* À l’intérieur de QMK (En cours de documentation)
|
|
||||||
* [Définitions](internals_defines.md)
|
|
||||||
* [Input Callback Reg](internals_input_callback_reg.md)
|
|
||||||
* [Appareils Midi](internals_midi_device.md)
|
|
||||||
* [Installation d’un appareil Midi](internals_midi_device_setup_process.md)
|
|
||||||
* [Utilitaires Midi](internals_midi_util.md)
|
|
||||||
* [Fonctions Midi](internals_send_functions.md)
|
|
||||||
* [Outils Sysex](internals_sysex_tools.md)
|
|
@@ -6,9 +6,9 @@ Ce document présente les fusions de Breaking Change. Voici la liste des changem
|
|||||||
|
|
||||||
## Formattage de code Core avec clang-format
|
## Formattage de code Core avec clang-format
|
||||||
|
|
||||||
* Tous les fichiers core (`drivers/`, `quantum/`, `tests/`, et `tmk_core/`) seront formattés avec clang-format
|
* Tous les fichiers core (`drivers/`, `quantum/`, `tests/`, et `tmk_core/`) seront formatés avec clang-format
|
||||||
* Un processus travis pour reformatter les PRs lors de la fusion a été mis en place
|
* Un processus travis pour reformatter les PRs lors de la fusion a été mis en place
|
||||||
* Vous pouvez utiliser la nouvelle commande CLI `qmk cformat` afin de formatter avant de soumettre votre PR si vous le souhaitez.
|
* Vous pouvez utiliser la nouvelle commande CLI `qmk cformat` afin de formater avant de soumettre votre PR si vous le souhaitez.
|
||||||
|
|
||||||
## Nettoyage des descripteurs LUFA USB
|
## Nettoyage des descripteurs LUFA USB
|
||||||
|
|
@@ -7,7 +7,7 @@
|
|||||||
[](https://github.com/qmk/qmk_firmware/pulse/monthly)
|
[](https://github.com/qmk/qmk_firmware/pulse/monthly)
|
||||||
[](https://github.com/qmk/qmk_firmware/)
|
[](https://github.com/qmk/qmk_firmware/)
|
||||||
|
|
||||||
## Qu'est ce que QMK Firmware ?
|
## Qu'est-ce que QMK Firmware ?
|
||||||
|
|
||||||
QMK (*Quantum Mechanical Keyboard*) est une communauté open source qui maintient le firmware QMK, la QMK Toolbox (*Boite à outil*), qmk.fm et leurs documentations. QMK Firmware est un firmware dédié aux claviers qui est basé sur [tmk\_keyboard](http://github.com/tmk/tmk_keyboard). Il offre des fonctionnalités très utiles pour les contrôleurs Atmel AVR, et, plus spécifiquement pour [les produits d'OLKB](http://olkb.com), le clavier [ErgoDox EZ](http://www.ergodox-ez.com), et pour les [produits Clueboard](http://clueboard.co/). Il prend désormais aussi en charge les processeurs ARM qui utilisent ChibiOS. Vous pouvez l'utiliser pour contrôler un clavier personnalisé soudé à la main ou alors sur un clavier avec un PCB personnalisé.
|
QMK (*Quantum Mechanical Keyboard*) est une communauté open source qui maintient le firmware QMK, la QMK Toolbox (*Boite à outil*), qmk.fm et leurs documentations. QMK Firmware est un firmware dédié aux claviers qui est basé sur [tmk\_keyboard](http://github.com/tmk/tmk_keyboard). Il offre des fonctionnalités très utiles pour les contrôleurs Atmel AVR, et, plus spécifiquement pour [les produits d'OLKB](http://olkb.com), le clavier [ErgoDox EZ](http://www.ergodox-ez.com), et pour les [produits Clueboard](http://clueboard.co/). Il prend désormais aussi en charge les processeurs ARM qui utilisent ChibiOS. Vous pouvez l'utiliser pour contrôler un clavier personnalisé soudé à la main ou alors sur un clavier avec un PCB personnalisé.
|
||||||
|
|
||||||
@@ -19,14 +19,14 @@ Sinon, vous pouvez aussi le télécharger directement en ([zip](https://github.c
|
|||||||
|
|
||||||
## Comment le compiler
|
## Comment le compiler
|
||||||
|
|
||||||
Avant d'être prêt à compiler vous allez devoir [installer un environnement](getting_started_build_tools.md) pour les développements AVR et/ou ARM. Une fois ceci fait, vous pourrez utiliser la commande `make` pour compiler le clavier et la disposition avec une commande de ce type :
|
Avant d'être prêt à compiler vous allez devoir [installer un environnement](fr-fr/getting_started_build_tools.md) pour les développements AVR et/ou ARM. Une fois ceci fait, vous pourrez utiliser la commande `make` pour compiler le clavier et la disposition avec une commande de ce type :
|
||||||
|
|
||||||
make planck/rev4:default
|
make planck/rev4:default
|
||||||
|
|
||||||
Cette commande compilera la révision `rev4` du clavier `planck` avec la disposition `default`. Notez que tous les claviers n'ont pas forcément de révisions (aussi appelées sous-projects ou dossiers, ou en en Anglais « subprojects » ou « folder »). Cette option peut donc être omise :
|
Cette commande compilera la révision `rev4` du clavier `planck` avec la disposition `default`. Notez que tous les claviers n'ont pas forcément de révisions (aussi appelées sous-projects ou dossiers, ou en anglais « subprojects » ou « folder »). Cette option peut donc être omise :
|
||||||
|
|
||||||
make preonic:default
|
make preonic:default
|
||||||
|
|
||||||
## Comment le personnaliser
|
## Comment le personnaliser
|
||||||
|
|
||||||
QMK a beaucoup de [fonctionnalités](features.md) à explorer, et [une documentation](http://docs.qmk.fm) très abondante que vous pourrez parcourir. La plupart des fonctionnalités vous permettrons de modifier vos [dispositions](keymap.md) (keymaps) et de changer [les codes de caractères](keycodes.md) (keycodes).
|
QMK a beaucoup de [fonctionnalités](fr-fr/features.md) à explorer, et [une documentation](http://docs.qmk.fm) très abondante que vous pourrez parcourir. La plupart des fonctionnalités vous permettrons de modifier vos [dispositions](fr-fr/keymap.md) (keymaps) et de changer [les codes de caractères](fr-fr/keycodes.md) (keycodes).
|
125
docs/fr-fr/_summary.md
Normal file
125
docs/fr-fr/_summary.md
Normal file
@@ -0,0 +1,125 @@
|
|||||||
|
**En Français**
|
||||||
|
|
||||||
|
* [Guide pour débutant complet](fr-fr/newbs.md)
|
||||||
|
* [Pour débuter](fr-fr/newbs_getting_started.md)
|
||||||
|
* [Compiler son premier firmware](fr-fr/newbs_building_firmware.md)
|
||||||
|
* [Flasher le Firmware](fr-fr/newbs_flashing.md)
|
||||||
|
* [Test et Débuggage](fr-fr/newbs_testing_debugging.md)
|
||||||
|
* [Bonnes pratiques Git](fr-fr/newbs_best_practices.md)
|
||||||
|
* [Ressources d'apprentissage](fr-fr/newbs_learn_more_resources.md)
|
||||||
|
|
||||||
|
* [Les bases de QMK](fr-fr/README.md)
|
||||||
|
* [Indroduction à QMK](fr-fr/getting_started_introduction.md)
|
||||||
|
* [QMK CLI](fr-fr/cli.md)
|
||||||
|
* [Configuration de la CLI QMK](fr-fr/cli_configuration.md)
|
||||||
|
* [Contribuer à QMK](fr-fr/contributing.md)
|
||||||
|
* [Comment utiliser GitHub](fr-fr/getting_started_github.md)
|
||||||
|
* [Trouver de l'aide](fr-fr/getting_started_getting_help.md)
|
||||||
|
|
||||||
|
* [Breaking changes](fr-fr/breaking_changes.md)
|
||||||
|
* [30 août 2019](fr-fr/ChangeLog/20190830.md)
|
||||||
|
|
||||||
|
* [FAQ](fr-fr/faq.md)
|
||||||
|
* [FAQ Générale](fr-fr/faq_general.md)
|
||||||
|
* [Compiler QMK](fr-fr/faq_build.md)
|
||||||
|
* [Débugguer / Dépanner QMK](fr-fr/faq_debug.md)
|
||||||
|
* [Keymap / Disposition](fr-fr/faq_keymap.md)
|
||||||
|
* [Installer les drivers avec Zadig](fr-fr/driver_installation_zadig.md)
|
||||||
|
|
||||||
|
**En Anglais**
|
||||||
|
|
||||||
|
* Guides détaillés
|
||||||
|
* [Installation des outils de compilation](fr-fr/getting_started_build_tools.md)
|
||||||
|
* [Guide Vagrant](fr-fr/getting_started_vagrant.md)
|
||||||
|
* [Commandes de compilations](fr-fr/getting_started_make_guide.md)
|
||||||
|
* [Flasher les firmwares](fr-fr/flashing.md)
|
||||||
|
* [Personnaliser les fonctionnalités](fr-fr/custom_quantum_functions.md)
|
||||||
|
* [Aperçu des fonctionnalités des dispositions](fr-fr/keymap.md)
|
||||||
|
|
||||||
|
* [Hardware](fr-fr/hardware.md)
|
||||||
|
* [Processeurs AVR](fr-fr/hardware_avr.md)
|
||||||
|
* [Pilotes / Drivers](fr-fr/hardware_drivers.md)
|
||||||
|
|
||||||
|
* Réferences
|
||||||
|
* [Lignes de conduite des claviers](fr-fr/hardware_keyboard_guidelines.md)
|
||||||
|
* [Options de configurations](fr-fr/config_options.md)
|
||||||
|
* [Keycodes / Codes des caractères](fr-fr/keycodes.md)
|
||||||
|
* [Conventions de codage - C](fr-fr/coding_conventions_c.md)
|
||||||
|
* [Conventions de codage - Python](fr-fr/coding_conventions_python.md)
|
||||||
|
* [Meilleurs pratiques sur la documentation](fr-fr/documentation_best_practices.md)
|
||||||
|
* [Modèles de documentation](fr-fr/documentation_templates.md)
|
||||||
|
* [Glossaire](fr-fr/reference_glossary.md)
|
||||||
|
* [Tests unitaires](fr-fr/unit_testing.md)
|
||||||
|
* [Fonctions utiles](fr-fr/ref_functions.md)
|
||||||
|
* [Support de configuration](fr-fr/reference_configurator_support.md)
|
||||||
|
* [Format du fichier info.json](fr-fr/reference_info_json.md)
|
||||||
|
* [Développer la CLI en Python](fr-fr/cli_development.md)
|
||||||
|
|
||||||
|
* [Fonctionnalités](fr-fr/features.md)
|
||||||
|
* [Keycodes basiques](fr-fr/keycodes_basic.md)
|
||||||
|
* [Touches utilisées avec Shift (US ANSI)](fr-fr/keycodes_us_ansi_shifted.md)
|
||||||
|
* [Keycodes quantiques](fr-fr/quantum_keycodes.md)
|
||||||
|
* [Keycodes avancés](fr-fr/feature_advanced_keycodes.md)
|
||||||
|
* [Fonctionnalités audio](fr-fr/feature_audio.md)
|
||||||
|
* [Majuscule automatique](fr-fr/feature_auto_shift.md)
|
||||||
|
* [Rétroéclairage](fr-fr/feature_backlight.md)
|
||||||
|
* [Bluetooth](fr-fr/feature_bluetooth.md)
|
||||||
|
* [Bootmagic](fr-fr/feature_bootmagic.md)
|
||||||
|
* [Combos](fr-fr/feature_combo.md)
|
||||||
|
* [Commande](fr-fr/feature_command.md)
|
||||||
|
* [API anti-rebond](fr-fr/feature_debounce_type.md)
|
||||||
|
* [DIP Switch](fr-fr/feature_dip_switch.md)
|
||||||
|
* [Macros dynamiques](fr-fr/feature_dynamic_macros.md)
|
||||||
|
* [Interrupteurs rotatifs](fr-fr/feature_encoders.md)
|
||||||
|
* [Grave Escape](fr-fr/feature_grave_esc.md)
|
||||||
|
* [Retour haptique](fr-fr/feature_haptic_feedback.md)
|
||||||
|
* [Contrôleur LCD HD44780](fr-fr/feature_hd44780.md)
|
||||||
|
* [Touche à verrou / Lock-key](fr-fr/feature_key_lock.md)
|
||||||
|
* [Dispositions / layouts](fr-fr/feature_layouts.md)
|
||||||
|
* [Touche leader](fr-fr/feature_leader_key.md)
|
||||||
|
* [Matrice LED](fr-fr/feature_led_matrix.md)
|
||||||
|
* [Macros](fr-fr/feature_macros.md)
|
||||||
|
* [Boutons de souris](fr-fr/feature_mouse_keys.md)
|
||||||
|
* [Pilotes / Drivers OLED](fr-fr/feature_oled_driver.md)
|
||||||
|
* [Touche one-shot](fr-fr/feature_advanced_keycodes.md#one-shot-keys)
|
||||||
|
* [Périphériques de pointage](fr-fr/feature_pointing_device.md)
|
||||||
|
* [Souris PS/2](fr-fr/feature_ps2_mouse.md)
|
||||||
|
* [Éclairage RGB](fr-fr/feature_rgblight.md)
|
||||||
|
* [Matrice RGB](fr-fr/feature_rgb_matrix.md)
|
||||||
|
* [Space Cadet](fr-fr/feature_space_cadet.md)
|
||||||
|
* [Claviers scindés / splittés](fr-fr/feature_split_keyboard.md)
|
||||||
|
* [Stenographie](fr-fr/feature_stenography.md)
|
||||||
|
* [Inversion des mains](fr-fr/feature_swap_hands.md)
|
||||||
|
* [Tap Dance](fr-fr/feature_tap_dance.md)
|
||||||
|
* [Terminale](fr-fr/feature_terminal.md)
|
||||||
|
* [Imprimante thermique](fr-fr/feature_thermal_printer.md)
|
||||||
|
* [Caractères unicodes](fr-fr/feature_unicode.md)
|
||||||
|
* [Dossier utilisateur](fr-fr/feature_userspace.md)
|
||||||
|
* [Velocikey](fr-fr/feature_velocikey.md)
|
||||||
|
|
||||||
|
* Pour les makers et les bricoleurs
|
||||||
|
* [Guide des claviers soudés à la main](fr-fr/hand_wire.md)
|
||||||
|
* [Guide de flash de l’ISP](fr-fr/isp_flashing_guide.md)
|
||||||
|
* [Guide du débogage ARM](fr-fr/arm_debugging.md)
|
||||||
|
* [Drivers i2c](fr-fr/i2c_driver.md)
|
||||||
|
* [Contrôles des GPIO](fr-fr/internals_gpio_control.md)
|
||||||
|
* [Conversion en Proton C](fr-fr/proton_c_conversion.md)
|
||||||
|
|
||||||
|
* Pour aller plus loin
|
||||||
|
* [Comment fonctionnent les claviers](fr-fr/how_keyboards_work.md)
|
||||||
|
* [Comprendre QMK](fr-fr/understanding_qmk.md)
|
||||||
|
|
||||||
|
* Autres sujets
|
||||||
|
* [Utiliser Eclipse avec QMK](fr-fr/other_eclipse.md)
|
||||||
|
* [Utiliser VSCode avec QMK](fr-fr/other_vscode.md)
|
||||||
|
* [Support](fr-fr/support.md)
|
||||||
|
* [Comment ajouter des traductions](fr-fr/translating.md)
|
||||||
|
|
||||||
|
* À l’intérieur de QMK (En cours de documentation)
|
||||||
|
* [Définitions](fr-fr/internals_defines.md)
|
||||||
|
* [Input Callback Reg](fr-fr/internals_input_callback_reg.md)
|
||||||
|
* [Appareils Midi](fr-fr/internals_midi_device.md)
|
||||||
|
* [Installation d’un appareil Midi](fr-fr/internals_midi_device_setup_process.md)
|
||||||
|
* [Utilitaires Midi](fr-fr/internals_midi_util.md)
|
||||||
|
* [Fonctions Midi](fr-fr/internals_send_functions.md)
|
||||||
|
* [Outils Sysex](fr-fr/internals_sysex_tools.md)
|
@@ -23,7 +23,7 @@ Le prochain Breaking Change est planifié pour le 29 novembre.
|
|||||||
|
|
||||||
## Quels changements seront inclus?
|
## Quels changements seront inclus?
|
||||||
|
|
||||||
Pour voir une liste de candidats de breaking changes, vous pouvez regardez la liste des [labels `breaking_change`](https://github.com/qmk/qmk_firmware/pulls?q=is%3Aopen+label%3Abreaking_change+is%3Apr). De nouveaux changements peuvent être ajoutés entre maintenant et lorsque `future` est fermée, et un PR avec ce label n'est pas garanti d'être fusionné.
|
Pour voir une liste de candidats de breaking changes, vous pouvez regarder la liste des [labels `breaking_change`](https://github.com/qmk/qmk_firmware/pulls?q=is%3Aopen+label%3Abreaking_change+is%3Apr). De nouveaux changements peuvent être ajoutés entre maintenant et lorsque `future` est fermée, et un PR avec ce label n'est pas garanti d'être fusionné.
|
||||||
|
|
||||||
Si vous souhaitez que votre breaking change soit inclus dans ce tour, vous devez créer un PR avec le label `breaking_change` et faire en sorte qu'il soit accepté avant que `future` ne soit fermé. Une fois `future` fermé, aucun nouveau breaking change sera accepté.
|
Si vous souhaitez que votre breaking change soit inclus dans ce tour, vous devez créer un PR avec le label `breaking_change` et faire en sorte qu'il soit accepté avant que `future` ne soit fermé. Une fois `future` fermé, aucun nouveau breaking change sera accepté.
|
||||||
|
|
@@ -4,7 +4,7 @@ Cette page décrit comment configurer et utiliser la CLI QMK.
|
|||||||
|
|
||||||
# Vue d'ensemble
|
# Vue d'ensemble
|
||||||
|
|
||||||
La CLI de QMK permet de simplifier la compilation et l'intéraction avec les clavier QMK. Nous avons définis plusieurs commandes pour simplifier et rationaliser les tâches telles qu'obtenir et compiler le firmware QMK, créer de nouvelles keymaps, et plus.
|
La CLI de QMK permet de simplifier la compilation et l'interaction avec les claviers QMK. Nous avons défini plusieurs commandes pour simplifier et rationaliser les tâches telles qu'obtenir et compiler le firmware QMK, créer de nouvelles keymaps, et plus.
|
||||||
|
|
||||||
* [CLI globale](#global-cli)
|
* [CLI globale](#global-cli)
|
||||||
* [CLI locale](#local-cli)
|
* [CLI locale](#local-cli)
|
||||||
@@ -127,7 +127,7 @@ qmk new-keymap [-kb KEYBOARD] [-km KEYMAP]
|
|||||||
|
|
||||||
## `qmk pyformat`
|
## `qmk pyformat`
|
||||||
|
|
||||||
Cette commande formatte le code python dans `qmk_firmware`.
|
Cette commande formate le code python dans `qmk_firmware`.
|
||||||
|
|
||||||
**Utilisation**:
|
**Utilisation**:
|
||||||
|
|
||||||
@@ -137,7 +137,7 @@ qmk pyformat
|
|||||||
|
|
||||||
## `qmk pytest`
|
## `qmk pytest`
|
||||||
|
|
||||||
Cette commande démarre la suite de test python. Si vous faites des changements dans le code Python, assurez vous que les tests se lancent avec succès.
|
Cette commande démarre la suite de test python. Si vous faites des changements dans le code Python, assurez-vous que les tests se lancent avec succès.
|
||||||
|
|
||||||
**Utilisation**:
|
**Utilisation**:
|
||||||
|
|
@@ -41,7 +41,7 @@ user.keymap: None -> default
|
|||||||
|
|
||||||
# CLI Documentation (`qmk config`)
|
# CLI Documentation (`qmk config`)
|
||||||
|
|
||||||
La commande `qmk config` est utilisée pour intéragir avec la configuration sous-jacente. Lancée sans argument, elle affiche la configuration courante. Lorsque des arguments sont définis, ils sont considérés comme étant des jetons de configuration, qui sont des chaînes de caractère ne contenant aucun espace avec le format suivant:
|
La commande `qmk config` est utilisée pour interagir avec la configuration sous-jacente. Lancée sans argument, elle affiche la configuration courante. Lorsque des arguments sont définis, ils sont considérés comme étant des jetons de configuration, qui sont des chaînes de caractère ne contenant aucun espace avec le format suivant:
|
||||||
|
|
||||||
<subcommand|general|default>[.<key>][=<value>]
|
<subcommand|general|default>[.<key>][=<value>]
|
||||||
|
|
||||||
@@ -91,7 +91,7 @@ default.keymap: default -> None
|
|||||||
|
|
||||||
## Plusieurs opérations
|
## Plusieurs opérations
|
||||||
|
|
||||||
Vous pouvez combiner plusieures opérations d'écriture et de lecture en une seule commande. Elle seront exécutées et affichées dans l'ordre:
|
Vous pouvez combiner plusieurs opérations d'écriture et de lecture en une seule commande. Elles seront exécutées et affichées dans l'ordre:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ qmk config compile default.keymap=default compile.keymap=None
|
$ qmk config compile default.keymap=default compile.keymap=None
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
👍🎉 Premièrement, merci de prendre le temps de lire ceci et de contribuer! 🎉👍
|
👍🎉 Premièrement, merci de prendre le temps de lire ceci et de contribuer! 🎉👍
|
||||||
|
|
||||||
Les contributions de tiers nous aide à améliorer et faire grandir QMK. Nous voulons rendre les pull requests et le processus de contribution utile et simple à la fois pour les contributeurs et les mainteneurs. C'est pourquoi nous avons mis en places des directives pour les contibuteurs afin que votre pull request puisse être accepté sans changement majeur.
|
Les contributions de tiers nous aide à améliorer et faire grandir QMK. Nous voulons rendre les pull requests et le processus de contribution utile et simple à la fois pour les contributeurs et les mainteneurs. C'est pourquoi nous avons mis en places des directives pour les contributeurs afin que votre pull request puisse être accepté sans changement majeur.
|
||||||
|
|
||||||
* [Aperçu du projet](#project-overview)
|
* [Aperçu du projet](#project-overview)
|
||||||
* [Conventions de codage](#coding-conventions)
|
* [Conventions de codage](#coding-conventions)
|
||||||
@@ -38,7 +38,7 @@ Vous n'avez encore jamais contribué à un projet open source? Vous vous demande
|
|||||||
0. Enregistrez-vous sur [GitHub](https://github.com).
|
0. Enregistrez-vous sur [GitHub](https://github.com).
|
||||||
1. Définissez une keymap à contribuer, [trouvez une issue](https://github.com/qmk/qmk_firmware/issues) que vous souhaitez corriger, ou [une fonction](https://github.com/qmk/qmk_firmware/issues?q=is%3Aopen+is%3Aissue+label%3Afeature) que vous voulez ajouter.
|
1. Définissez une keymap à contribuer, [trouvez une issue](https://github.com/qmk/qmk_firmware/issues) que vous souhaitez corriger, ou [une fonction](https://github.com/qmk/qmk_firmware/issues?q=is%3Aopen+is%3Aissue+label%3Afeature) que vous voulez ajouter.
|
||||||
2. Créez un fork sur le dépôt associé avec une issue sur votre compte GitHub. Cela veut dire que vous allez avoir une copie du dépôt sous `votre-login-GitHub/qmk_firmware`.
|
2. Créez un fork sur le dépôt associé avec une issue sur votre compte GitHub. Cela veut dire que vous allez avoir une copie du dépôt sous `votre-login-GitHub/qmk_firmware`.
|
||||||
3. Clonez le dépôt sur votre macine locale en utilisant `git clone https://github.com/login-github/repository-name.git`.
|
3. Clonez le dépôt sur votre machine locale en utilisant `git clone https://github.com/login-github/repository-name.git`.
|
||||||
4. Si vous travaillez sur une nouvelle fonctionnalité, pensez à ouvrir une issue pour parler avec nous du travail que vous souhaitez démarrer.
|
4. Si vous travaillez sur une nouvelle fonctionnalité, pensez à ouvrir une issue pour parler avec nous du travail que vous souhaitez démarrer.
|
||||||
5. Créez une nouvelle branche pour votre correctif en utilisant `git checkout -b nom-de-branche`.
|
5. Créez une nouvelle branche pour votre correctif en utilisant `git checkout -b nom-de-branche`.
|
||||||
6. Faites les changements nécessaires pour corriger le problème ou ajouter la fonctionnalité.
|
6. Faites les changements nécessaires pour corriger le problème ou ajouter la fonctionnalité.
|
||||||
@@ -69,7 +69,7 @@ Nous avons un certain nombre de type de changements dans QMK, chacun nécessitan
|
|||||||
* Keymaps: Assurez-vous que `make keyboard:your_new_keymap` ne renvoie pas d'erreur.
|
* Keymaps: Assurez-vous que `make keyboard:your_new_keymap` ne renvoie pas d'erreur.
|
||||||
* Claviers: Assurez-vous que `make keyboard:all` ne renvoie pas d'erreur.
|
* Claviers: Assurez-vous que `make keyboard:all` ne renvoie pas d'erreur.
|
||||||
* Core: Assurez-vous que `make all` ne renvoie pas d'erreur.
|
* Core: Assurez-vous que `make all` ne renvoie pas d'erreur.
|
||||||
* Assurez-vous que les messages de commit soient compréhensibles d'eux-même. Vous devriez écrire une description simple (pas plus de 70 caractères) sur la première ligne, suivi d'une ligne vide, suivi d'un détail de votre commit, si nécessaire. Exemple:
|
* Assurez-vous que les messages de commit soient compréhensibles d'eux-mêmes. Vous devriez écrire une description simple (pas plus de 70 caractères) sur la première ligne, suivi d'une ligne vide, suivi d'un détail de votre commit, si nécessaire. Exemple:
|
||||||
|
|
||||||
```
|
```
|
||||||
Adjust the fronzlebop for the kerpleplork
|
Adjust the fronzlebop for the kerpleplork
|
||||||
@@ -81,11 +81,11 @@ Limited experimentation on the devices I have available shows that 7 is high eno
|
|||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
La documentation est l'une des manière les plus simples de démarrer la contribution sur QMK. Il est simple de trouver des endroits où la documentation est fausse ou incomplète, et il est tout aussi simple de la corriger! Nous avons aussi grandement besoin de quelqu'un pour éditer notre documentation, donc si vous avez des compétences en édition mais que vous n'êtes pas sûr de savoir où aller, n'hésitez pas [demandez de l'aide](#where-can-i-go-for-help)!
|
La documentation est l'une des manières les plus simples de démarrer la contribution sur QMK. Il est simple de trouver des endroits où la documentation est fausse ou incomplète, et il est tout aussi simple de la corriger! Nous avons aussi grandement besoin de quelqu'un pour éditer notre documentation, donc si vous avez des compétences en édition mais que vous n'êtes pas sûr de savoir où aller, n'hésitez pas [demandez de l'aide](#where-can-i-go-for-help)!
|
||||||
|
|
||||||
Vous trouverez toute notre documentation dans le répertoire `qmk_firmware/docs`, ou si vous préférez utiliser des outils web, vous pouvez cliquer sur le bouton "Suggest An Edit" en haut de chaque page sur http://docs.qmk.fm/.
|
Vous trouverez toute notre documentation dans le répertoire `qmk_firmware/docs`, ou si vous préférez utiliser des outils web, vous pouvez cliquer sur le bouton "Suggest An Edit" en haut de chaque page sur http://docs.qmk.fm/.
|
||||||
|
|
||||||
Lorsque vous donnez des exemples de code dans la documentation, essayez de suivre les conventions de nommage utilisées ailleurs dnas la documentation. Par exemple, standardisez les enums en utilisant `my_layers` ou `my_keycodes` afin de garder une consistance:
|
Lorsque vous donnez des exemples de code dans la documentation, essayez de suivre les conventions de nommage utilisées ailleurs dans la documentation. Par exemple, standardisez les enums en utilisant `my_layers` ou `my_keycodes` afin de garder une consistance:
|
||||||
|
|
||||||
```c
|
```c
|
||||||
enum my_layers {
|
enum my_layers {
|
||||||
@@ -129,16 +129,16 @@ Faites attention d'être sûr d'implémenter votre nouvelle fonctionnalité de l
|
|||||||
* [Chat sur Discord](https://discord.gg/Uq7gcHh)
|
* [Chat sur Discord](https://discord.gg/Uq7gcHh)
|
||||||
* [Ouvrir une Issue](https://github.com/qmk/qmk_firmware/issues/new)
|
* [Ouvrir une Issue](https://github.com/qmk/qmk_firmware/issues/new)
|
||||||
|
|
||||||
Les PR de nouvelles fonctionnalités de de correction de bug affectent tous les claviers. Nous sommes aussi dans un processus de restructuration de QMK. Pour cette raison, il est absolument nécessaire que tout changement important ou significatif soit discuté avant que l'implémentation soit faite. Si vous ouvrez un PR sans nous avoir parlé, préparez vous à faire des refontes significatives si vous changements ne sont pas compatibles avec ce que nous avons planifié.
|
Les PR de nouvelles fonctionnalités de de correction de bug affectent tous les claviers. Nous sommes aussi dans un processus de restructuration de QMK. Pour cette raison, il est absolument nécessaire que tout changement important ou significatif soit discuté avant que l'implémentation soit faite. Si vous ouvrez un PR sans nous avoir parlé, préparez-vous à faire des refontes significatives si vos changements ne sont pas compatibles avec ce que nous avons planifié.
|
||||||
|
|
||||||
Voici quelques choses à garder en tête lorsque vous travaillez sur une fonctionnalité ou un bug fix.
|
Voici quelques choses à garder en tête lorsque vous travaillez sur une fonctionnalité ou un bug fix.
|
||||||
|
|
||||||
* **Désactivé par défaut** - la mémoire est plutôt limitée sur la plupart des puces que QMK supporte, et il est important que les keymaps courantes ne soient pas cassées. S'il vous plaît faites que vos features doivent être **activées** plutôt que désactivées. Si vous pensez qu'elle devrait être activée par défaut, ou que cela réduit la taille du code, parlez-nous en.
|
* **Désactivé par défaut** - la mémoire est plutôt limitée sur la plupart des puces que QMK supporte, et il est important que les keymaps courantes ne soient pas cassées. S'il vous plaît faites que vos features doivent être **activées** plutôt que désactivées. Si vous pensez qu'elle devrait être activée par défaut, ou que cela réduit la taille du code, parlez-nous-en.
|
||||||
* **Compilez localement avant de soumettre** - Cela devrait aller sans dire, mais votre code doit compiler! Notre système Travis devrait relever les problèmes, mais il est généralement plus rapide de compiler quelques claviers en local plutôt que d'attendre le retour des résultats
|
* **Compilez localement avant de soumettre** - Cela devrait aller sans dire, mais votre code doit compiler! Notre système Travis devrait relever les problèmes, mais il est généralement plus rapide de compiler quelques claviers en local plutôt que d'attendre le retour des résultats
|
||||||
* **Faites attention aux révisions et différentes bases de puces** - beaucoup de claviers ont des révisions qui permettent des changements de configuration mineurs, voir des bases de chip différentes. Essayez de faire que votre fonctionnalité soit supportée à la fois sur ARM et AVR, ou désactivez-là automatiquement sur les plateformes non supportées.
|
* **Faites attention aux révisions et différentes bases de puces** - beaucoup de claviers ont des révisions qui permettent des changements de configuration mineurs, voir des bases de chip différentes. Essayez de faire que votre fonctionnalité soit supportée à la fois sur ARM et AVR, ou désactivez-là automatiquement sur les plateformes non supportées.
|
||||||
* **Expliquez votre fonctionnalité** - Documentez-là dans `docs/`, soit dans un nouveau fichier, ou dans une partie d'un fichier existant. Si vous ne la documentez pas, personne ne pourra bénéficier de votre dur labeur.
|
* **Expliquez votre fonctionnalité** - Documentez-là dans `docs/`, soit dans un nouveau fichier, ou dans une partie d'un fichier existant. Si vous ne la documentez pas, personne ne pourra bénéficier de votre dur labeur.
|
||||||
|
|
||||||
Nous vous demandons aussi de suivre ces ces directives:
|
Nous vous demandons aussi de suivre ces directives:
|
||||||
|
|
||||||
* Gardez un nombre de commits raisonnable, ou nous squasherons votre PR.
|
* Gardez un nombre de commits raisonnable, ou nous squasherons votre PR.
|
||||||
* Ne regroupez pas des claviers ou des keymaps avec des changements core. Soumettez vos changements core en premier.
|
* Ne regroupez pas des claviers ou des keymaps avec des changements core. Soumettez vos changements core en premier.
|
||||||
@@ -151,4 +151,4 @@ Afin de maintenir une vision claire sur comment les choses sont architectuées d
|
|||||||
|
|
||||||
# Que veut dire le code de conduite pour moi?
|
# Que veut dire le code de conduite pour moi?
|
||||||
|
|
||||||
Note [Code De Conduite](https://github.com/qmk/qmk_firmware/blob/master/CODE_OF_CONDUCT.md) veut dire que vous avez la responsabilité de traiter tout le monde dans le projet avec respect et courtoisie, peut importe leur identité. Si vous êtes victime d'une attitude ou de commentaires inapropriés, tels que décrit dans notre Code de Conduite, nous sommes là pour vous et nous ferons de notre mieux pour nous assurer que le fautif soit réprimandé, tel que décrit dans notre code.
|
Note [Code De Conduite](https://github.com/qmk/qmk_firmware/blob/master/CODE_OF_CONDUCT.md) veut dire que vous avez la responsabilité de traiter tout le monde dans le projet avec respect et courtoisie, peu importe leur identité. Si vous êtes victime d'une attitude ou de commentaires inappropriés, tels que décrit dans notre Code de Conduite, nous sommes là pour vous et nous ferons de notre mieux pour nous assurer que le fautif soit réprimandé, tel que décrit dans notre code.
|
46
docs/fr-fr/driver_installation_zadig.md
Normal file
46
docs/fr-fr/driver_installation_zadig.md
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
# Installation du driver du bootloader avec Zadig
|
||||||
|
|
||||||
|
Vous n’aurez pas besoin de pilote particulier pour utiliser un clavier QMK. En effet, QMK se présente à l'ordinateur hôte comme un clavier HID standard et sera reconnu sans problème. Cependant vous aurez peut-être besoin d'un pilote pour flasher votre clavier avec Windows. En effet, quand vous redémarrerez votre clavier en mode bootloader, le périphérique que détectera Windows ne sera pas un clavier mais un périphérique bootloader.
|
||||||
|
|
||||||
|
Il existe deux exceptions : le bootloader Caterina, qui se trouve en général sur les Pro Micros, et le bootloader Halfkay, livré avec les Teensy de PJRC. Ils apparaissent respectivement sous la forme d'un port série et d'un périphérique HID générique, ne nécessitant pas de pilote particulier.
|
||||||
|
|
||||||
|
Nous vous recommandons d'utiliser l'utilitaire [Zadig](https://zadig.akeo.ie/). Si vous avez configuré votre environnement de développement avec Msys2 ou WSL, le script `qmk_install.sh` vous aura proposé l'installation des pilotes durant le processus.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Passez votre clavier en mode bootloader, soit en appuyant sur le keycode `RESET` (qui peut se trouver dans un calque différent) ou en appuyant sur le bouton reset qui se trouve en général sous la board. Si votre clavier n'a aucune de ces options, essayez de le brancher en maintenant Escape ou Espace+`B` appuyés (voir la documentation de [Bootmagic](feature_bootmagic.md) pour plus de détails). Certaines boards utilisent [Command](feature_command.md) à la place de Bootmagic. Dans ce cas, vous pouvez entrer en mode bootloader en appuyant, à n'importe quel moment lorsque le clavier est branché, sur les combinaisons de touches Shift Gauche+Shift Droit+`B` ou Shift Gauche+Shift Droit+Escape.
|
||||||
|
Certains claviers ont des instructions spécifiques pour passer en mode bootloader. Par exemple, la touche [Bootmagic Lite]](feature_bootmagic.md#bootmagic-lite) (défaut : Échap) peut être sur une touche différente telle que Contrôle Gauche. La combinaison pour la Command (défaut : Shift Gauche+Shift Droit) peut être différente, par exemple Contrôle Gauche+Contrôle Droit. Référez-vous au fichier README de votre clavier.
|
||||||
|
|
||||||
|
Pour mettre un clavier en mode bootloader avec USBaspLoader, appuyez sur le bouton `RESET` tout en maintenant le bouton `BOOT`. Vous pouvez aussi maintenir le bouton `BOOT` en branchant le câble USB.
|
||||||
|
|
||||||
|
Zadig détectera automatiquement les périphériques en mode bootloader. Il se peut toutefois que vous deviez vérifier en passant par **Options → List All Devices**.
|
||||||
|
|
||||||
|
|
||||||
|
- Pour les claviers avec des MCUs Atmel AVR, le bootloader aura un nom similaire à `ATm32U4DFU`, et un Vendor ID `03EB`.
|
||||||
|
- Les bootloaders USBasp s'appelleront `USBasp`, avec un VID/PID `16C0:05DC`.
|
||||||
|
- Les claviers AVR flashé avec le bootloader QMK-DFU s'appelleront `<nom du clavier> Bootloader` et auront aussi le VID `03EB`.
|
||||||
|
- Pour la plupart des claviers ARM, ils s'appelleront `STM32 BOOTLOADER`, et auront un VID/PID `0483:DF11`.
|
||||||
|
|
||||||
|
!> Si Zadig affiche certains de vos périphériques avec le driver `HidUsb`, votre clavier n'est probablement pas en mode bootloader. La flèche aura une couleur orange et vous aurez un message de confirmation vous demandant de modifier un pilote système. **Ne continuez pas!**
|
||||||
|
|
||||||
|
Si la flèche apparaît en vert, sélectionnez le driver et appuyez sur le bouton **Install Driver**. Le driver `libusb-win32` devrait normalement fonctionner pour AVR, et `WinUSB` pour ARM. Si vous avez des problèmes pour flasher la board, essayez d'installer un pilote différent de la liste. Pour flasher un périphérique USBaspLoader en ligne de commande avec msys2, le driver `libusbk` est recommandé, sinon `libusb-win32` devrait fonctionner correctement si vous utilisez QMK Toolbox pour flasher.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Finalement, débranchez et rebranchez le clavier afin de vous assurer que le nouveau pilote a bien été chargé. Si vous utilisez QMK Toolbox pour flasher, redémarrez-le aussi, il arrive qu'il n'arrive pas à détecter le changement de driver.
|
||||||
|
|
||||||
|
## Récupérer l'installation du mauvais périphérique
|
||||||
|
|
||||||
|
Si vous n'arrivez plus à saisir de texte avec le clavier, il est possible que vous ayez installé le driver sur le clavier au lieu du bootloader. Vous pouvez facilement vérifier ceci dans Zadig. Un clavier fonctionnel a le pilote `HidUsb` installé sur toutes ses interfaces :
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Ouvrez le Gestionnaire de périphériques et cherchez un périphérique qui ressemble à votre clavier.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Cliquez dessus avec le bouton droit et sélectionner **Désinstaller le périphérique**. Faites bien attention à sélectionner **Supprimer le pilote pour ce périphérique** avant de valider.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Appuyez sur **Action → Analyser les changements de hardware**. A ce stade, vous devriez pouvoir saisir à nouveau. Vérifiez dans Zadig que les périphériques utilisent bien le pilote `HidUsb`. Si c'est le cas, vous avez corrigé le problème, votre clavier devrait fonctionner à nouveau !
|
6
docs/fr-fr/faq.md
Normal file
6
docs/fr-fr/faq.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# Foire Aux Questions
|
||||||
|
|
||||||
|
* [FAQ Générale](faq_general.md)
|
||||||
|
* [Construire ou Compiler QMK](faq_build.md)
|
||||||
|
* [Débuguer et Dépanner QMK](faq_debug.md)
|
||||||
|
* [Keymap (disposition)](faq_keymap.md)
|
154
docs/fr-fr/faq_build.md
Normal file
154
docs/fr-fr/faq_build.md
Normal file
@@ -0,0 +1,154 @@
|
|||||||
|
# Foire aux questions sur la compilation
|
||||||
|
|
||||||
|
Cette page couvre les questions concernant la compilation de QMK. Si vous ne l'avez pas encore fait, vous devriez lire les guides [Configuration de l'environnement de build](getting_started_build_tools.md) et [Instructions pour Make](getting_started_make_guide.md).
|
||||||
|
|
||||||
|
## Je ne peux pas programmer sous Linux
|
||||||
|
|
||||||
|
Vous aurez besoin des permissions appropriées pour utiliser un périphérique. Pour les utilisateurs de Linux, référez-vous aux instructions concernant les règles `udev` ci-dessous. Si `udev` vous pose des problèmes, une alternative est d'utiliser la commande `sudo`. Si vous ne connaissez pas cette commande, référez-vous à son manuel d'utilisation en utilisant `man sudo` ou [regardez cette page](https://linux.die.net/man/8/sudo).
|
||||||
|
|
||||||
|
Un exemple utilisant `sudo`, lorsque votre contrôleur est un ATMega32u4 :
|
||||||
|
|
||||||
|
$ sudo dfu-programmer atmega32u4 erase --force
|
||||||
|
$ sudo dfu-programmer atmega32u4 flash your.hex
|
||||||
|
$ sudo dfu-programmer atmega32u4 reset
|
||||||
|
|
||||||
|
ou simplement :
|
||||||
|
|
||||||
|
$ sudo make <keyboard>:<keymap>:dfu
|
||||||
|
|
||||||
|
Veuillez noter que lancer `make` avec `sudo` est généralement une **mauvaise** idée, et vous devriez préférer une des méthodes précédente, si possible.
|
||||||
|
|
||||||
|
### Règles `udev` pour Linux
|
||||||
|
|
||||||
|
Sous Linux, vous aurez besoin des permissions appropriées pour accéder au MCU (le micro-contrôleur). Vous avez le choix d'utiliser `sudo` en flashant le firmware, ou placer ces fichiers dans `/etc/udev/rules.d`. Une fois ajouté, lancez les commandes suivantes :
|
||||||
|
|
||||||
|
```console
|
||||||
|
sudo udevadm control --reload-rules
|
||||||
|
sudo udevadm trigger
|
||||||
|
```
|
||||||
|
|
||||||
|
**/etc/udev/rules.d/50-atmel-dfu.rules:**
|
||||||
|
```
|
||||||
|
# Atmel ATMega32U4
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff4", MODE:="0666"
|
||||||
|
# Atmel USBKEY AT90USB1287
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ffb", MODE:="0666"
|
||||||
|
# Atmel ATMega32U2
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2ff0", MODE:="0666"
|
||||||
|
```
|
||||||
|
|
||||||
|
**/etc/udev/rules.d/52-tmk-keyboard.rules:**
|
||||||
|
```
|
||||||
|
# tmk keyboard products https://github.com/tmk/tmk_keyboard
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="feed", MODE:="0666"
|
||||||
|
```
|
||||||
|
|
||||||
|
**/etc/udev/rules.d/54-input-club-keyboard.rules:**
|
||||||
|
|
||||||
|
```
|
||||||
|
# Input Club keyboard bootloader
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c11", MODE:="0666"
|
||||||
|
```
|
||||||
|
|
||||||
|
**/etc/udev/rules.d/55-catalina.rules:**
|
||||||
|
```
|
||||||
|
# ModemManager should ignore the following devices
|
||||||
|
ATTRS{idVendor}=="2a03", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||||
|
ATTRS{idVendor}=="2341", ENV{ID_MM_DEVICE_IGNORE}="1"
|
||||||
|
```
|
||||||
|
|
||||||
|
**Note:** Le filtrage utilisant ModemManager fonctionnera uniquement si vous n'êtes pas en mode strict. Les commandes suivantes peuvent changer cette option :
|
||||||
|
|
||||||
|
```console
|
||||||
|
sudo sed -i 's/--filter-policy=strict/--filter-policy=default/' /lib/systemd/system/ModemManager.service
|
||||||
|
sudo systemctl daemon-reload
|
||||||
|
sudo systemctl restart ModemManager
|
||||||
|
```
|
||||||
|
|
||||||
|
**/etc/udev/rules.d/56-dfu-util.rules:**
|
||||||
|
|
||||||
|
```
|
||||||
|
# stm32duino
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1eaf", ATTRS{idProduct}=="0003", MODE:="0666"
|
||||||
|
# Generic stm32
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Le périphérique sériel n'est pas détecté en mode bootloader sous Linux
|
||||||
|
|
||||||
|
Assurez-vous que votre kernel ait un support approprié pour votre périphérique. Si votre périphérique utilise USB ACM, par exemple pour les Pro Micro (AtMega32u4), assurez-vous d'inclure `CONFIG_USB_ACM=y`. D'autres périphériques peuvent avoir besoin de `USB_SERIAL` et de ses sous-options.
|
||||||
|
|
||||||
|
## Périphérique inconnu pour le bootloader DFU
|
||||||
|
|
||||||
|
Les problèmes rencontrés lorsque l'on flash des claviers sous Windows sont, la plupart du temps, dus à une installation du mauvais pilote, ou un pilote manquant.
|
||||||
|
|
||||||
|
Relancer le script d'installation de QMK (`./util/qmk_install.sh` situé dans répertoire `qmk_firmware`sous MSYS2 ou WSL) ou réinstaller la QMK Toolbox peut résoudre le problème. Une alternative est de télécharger et lancer manuellement le package [`qmk_driver_installer`](https://github.com/qmk/qmk_driver_installer).
|
||||||
|
|
||||||
|
Si vous rencontrez toujours des problèmes, essayez de télécharger et lancer Zadig. Voir [Installation du driver du bootloader avec Zadig](driver_installation_zadig.md) pour plus d'informations.
|
||||||
|
|
||||||
|
## USB VID et PID
|
||||||
|
|
||||||
|
Vous pouvez utiliser l'ID de votre choix en modifier `config.h`. Il y a peu de chance de conflit avec d'autres produits.
|
||||||
|
|
||||||
|
La plupart des boards QMK utilisent `0xFEED` comme vendor ID. Vérifiez les autres claviers pour être sûr de choisir un Product ID unique.
|
||||||
|
|
||||||
|
Étudiez aussi ce ticket
|
||||||
|
https://github.com/tmk/tmk_keyboard/issues/150
|
||||||
|
|
||||||
|
Vous pouvez acheter un VID:PID unique ici. Je ne pense pas que ce soit nécessaire pour un usage personnel.
|
||||||
|
- http://www.obdev.at/products/vusb/license.html
|
||||||
|
- http://www.mcselec.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=92&option=com_phpshop&Itemid=1
|
||||||
|
|
||||||
|
## BOOTLOADER_SIZE pour AVR
|
||||||
|
|
||||||
|
Notez que la taille du bootloader pour les Teensy2.0++ est de 2048bytes. Quelques Makefiles peuvent contenir une erreur et avoir le mauvais commentaire.
|
||||||
|
|
||||||
|
```
|
||||||
|
# Boot Section Size in *bytes*
|
||||||
|
# Teensy halfKay 512
|
||||||
|
# Teensy++ halfKay 2048
|
||||||
|
# Atmel DFU loader 4096 (TMK Alt Controller)
|
||||||
|
# LUFA bootloader 4096
|
||||||
|
# USBaspLoader 2048
|
||||||
|
OPT_DEFS += -DBOOTLOADER_SIZE=2048
|
||||||
|
```
|
||||||
|
|
||||||
|
## `avr-gcc: internal compiler error: Abort trap: 6 (program cc1)` sous MacOS
|
||||||
|
|
||||||
|
C'est un problème de mise à jour avec brew, causée par des liens symboliques (symlinks) dont dépend avr-gcc qui sont détruits.
|
||||||
|
|
||||||
|
La solution est de supprimer et réinstaller tous les modules affectés.
|
||||||
|
|
||||||
|
```
|
||||||
|
brew rm avr-gcc
|
||||||
|
brew rm dfu-programmer
|
||||||
|
brew rm dfu-util
|
||||||
|
brew rm gcc-arm-none-eabi
|
||||||
|
brew rm avrdude
|
||||||
|
brew install avr-gcc
|
||||||
|
brew install dfu-programmer
|
||||||
|
brew install dfu-util
|
||||||
|
brew install gcc-arm-none-eabi
|
||||||
|
brew install avrdude
|
||||||
|
```
|
||||||
|
|
||||||
|
### avr-gcc 8.1 et LUFA
|
||||||
|
|
||||||
|
Si vous avez mis à jour votre avr-gcc au-dessus de la version 7, vous risquez de voir des erreurs impliquant LUA. Par exemple :
|
||||||
|
|
||||||
|
`lib/lufa/LUFA/Drivers/USB/Class/Device/AudioClassDevice.h:380:5: error: 'const' attribute on function returning 'void'`
|
||||||
|
|
||||||
|
Pour le moment, vous devrez revenir à la version 7 de avr-gcc dans brew.
|
||||||
|
|
||||||
|
```
|
||||||
|
brew uninstall --force avr-gcc
|
||||||
|
brew install avr-gcc@8
|
||||||
|
brew link --force avr-gcc@8
|
||||||
|
```
|
||||||
|
|
||||||
|
### Je viens de flasher mon clavier et il ne fait rien/l'appui des touches n'est pas enregistré - c'est aussi un ARM(rev6 plank, clueboard 60, hs60v2, etc.) (Février 2019)
|
||||||
|
|
||||||
|
A cause de la manière dont les EEPROM fonctionnent sur les puces ARM, les options sauvegardées peuvent ne plus être valides. Ceci affecte les calques par défaut et *peut*, sous certaines conditions que nous essayons encore de déterminer, rendre le clavier inutilisable. Réinitialiser l'EEPROM corrigera le problème.
|
||||||
|
|
||||||
|
[Réinitialiser EEPROM sur Planck rev6](https://cdn.discordapp.com/attachments/473506116718952450/539284620861243409/planck_rev6_default.bin) peut être utilisé pour forcer une réinitialisation d'EEPROM. Une fois cette image flashée, flashez à nouveau votre firmware standard. Cela devrait rétablir le fonctionnement de votre clavier.
|
||||||
|
Si bootmagic est activé dans n'importe quel forme, vous devriez être capable de faire aussi ceci (regardez [Documentation Bootmagic](feature_bootmagic.md) et les informations spécifiques à votre clavier).
|
165
docs/fr-fr/faq_debug.md
Normal file
165
docs/fr-fr/faq_debug.md
Normal file
@@ -0,0 +1,165 @@
|
|||||||
|
# FAQ Débugage
|
||||||
|
|
||||||
|
Cette page détaille diverses questions fréquemment posées par les utilisateurs sur le dépannage de leurs claviers.
|
||||||
|
|
||||||
|
# Console de débugage
|
||||||
|
|
||||||
|
## `hid_listen` ne reconnaît pas de périphérique
|
||||||
|
|
||||||
|
Lorsque la console de débugage sur votre périphérique n'est pas prêt, vous obtiendrez un message similaire :
|
||||||
|
|
||||||
|
```
|
||||||
|
Waiting for device:.........
|
||||||
|
```
|
||||||
|
|
||||||
|
Une fois le périphérique connecté, *hid_listen* le trouve et vous obtiendrez ce message :
|
||||||
|
|
||||||
|
```
|
||||||
|
Waiting for new device:.........................
|
||||||
|
Listening:
|
||||||
|
```
|
||||||
|
|
||||||
|
Si vous ne recevez pas ce message `Listening:`, essayez de compiler avec `CONSOLE_ENABLE=yes` dans le [Makefile]
|
||||||
|
|
||||||
|
Il se peut que vous ayez besoin de certains privilèges avancés pour accéder à des périphériques sur des OS comme Linux.
|
||||||
|
|
||||||
|
- Essayez `sudo hid_listen`
|
||||||
|
|
||||||
|
## Ne reçoit pas de messages sur la console
|
||||||
|
|
||||||
|
Vérifiez :
|
||||||
|
|
||||||
|
- *hid_listen* trouve votre périphérique. Voir ci-dessus.
|
||||||
|
- Activez le débugage en appuyant sur **Magic**+d. Voir [Commandes Magic](https://github.com/tmk/tmk_keyboard#magic-commands).
|
||||||
|
- Définissez `debug_enable=true` en général dans `matrix_init()` du fichier **matrix.c**.
|
||||||
|
- Essayez d'utiliser la fonction `print` à la place du debug print. Voir **common/print.h**.
|
||||||
|
- Déconnectez tous les autres périphériques qui utilisent la fonction console. Voir [Issue #97](https://github.com/tmk/tmk_keyboard/issues/97).
|
||||||
|
|
||||||
|
## Linux ou les systèmes UNIX nécessitent des privilèges super utilisateur
|
||||||
|
|
||||||
|
Utilisez `sudo` pour exécuter *hid_listen* avec des privilèges étendus.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ sudo hid_listen
|
||||||
|
```
|
||||||
|
|
||||||
|
Ou ajoutez une *udev rule* pour les périphériques TMK en plaçant un fichier dans le répertoire rules. Le chemin vers ce répertoire peut varier en fonction du système.
|
||||||
|
|
||||||
|
Fichier: /etc/udev/rules.d/52-tmk-keyboard.rules(sous Ubuntu)
|
||||||
|
```
|
||||||
|
# tmk keyboard products https://github.com/tmk/tmk_keyboard
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="feed", MODE:="0666"
|
||||||
|
```
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
|
# Divers
|
||||||
|
|
||||||
|
## Considérations de sécurité
|
||||||
|
|
||||||
|
Vous ne voulez probablement pas "briquer" votre clavier, rendre impossible d'écrire un firmware dessus. Il y a quelques paramètres qui montrent ce qui est (et n'est probablement pas) trop risqué.
|
||||||
|
|
||||||
|
- Si votre map de clavier n'inclut pas de RESET, pour entrer en mode DFU, vous devrez appuyer sur le bouton reset du PCB. Cela implique que vous devrez certainement dévisser certaines pièces de votre clavier pour y accéder.
|
||||||
|
- Modifier les fichiers tmk_core / common peut rendre le clavier inutilisable
|
||||||
|
- Si un fichier .hex trop large est la cause du problème : `make dfu` supprime le bloc puis teste la taille (il ne fait pas les choses dans le bon ordre), ce qui provoque une erreur. En résultat, le flash n’aura pas été fait et le clavier restera en mode DFU.
|
||||||
|
- Pour finir, notez que la taille maximale d'un fichier .hex sur un Plank est de 7000h (28672 decimal)
|
||||||
|
|
||||||
|
```
|
||||||
|
Linking: .build/planck_rev4_cbbrowne.elf [OK]
|
||||||
|
Creating load file for Flash: .build/planck_rev4_cbbrowne.hex [OK]
|
||||||
|
|
||||||
|
Size after:
|
||||||
|
text data bss dec hex filename
|
||||||
|
0 22396 0 22396 577c planck_rev4_cbbrowne.hex
|
||||||
|
```
|
||||||
|
|
||||||
|
- La taille du fichier ci-dessus est de 22396/577ch, ce qui est en dessous de 28672/7000h
|
||||||
|
- Tant que vous avez un fichier .hex alternatif correct, vous pouvez réessayer en le chargeant
|
||||||
|
- Certaines options que vous pouvez spécifier dans votre Makefile consomme de la mémoire supplémentaire. Faites attention aux options BOOTMAGIC_ENABLE, MOUSEKEY_ENABLE, EXTRAKEY_ENABLE, CONSOLE_ENABLE, API_SYSEX_ENABLE.
|
||||||
|
- Les outils DFU **ne** vous permettent **pas** d'écrire dans le bootloader (à moins que vous n'ajoutiez des options spéciales), il n'y a donc peu de risque.
|
||||||
|
- Les EEPROM ont environ 100000 cycles d'écriture. Ne réécrivez pas le firmware de manière continue et répétée. Vous allez détruire définitivement l'EEPROM.
|
||||||
|
|
||||||
|
## NKRO ne fonctionne pas
|
||||||
|
|
||||||
|
Premièrement, vous devez compiler le firmware avec l'option de compilation `NKRO_ENABLE` dans le **Makefile**.
|
||||||
|
|
||||||
|
Essayez la commande `Magic` **N** (`LShift+RShift+N` par défaut) si **NKRO** ne fonctionne toujours pas. Vous pouvez utiliser cette commande pour basculer temporairement entre le mode **NKRO** et **6KRO**. Sous certaines conditions, **NKRO** ne fonctionnera pas et vous devrez basculer en **6KRO**, en particulier lorsque vous êtes dans le BIOS.
|
||||||
|
|
||||||
|
Si votre firmware est compilé avec `BOOTMAGIC_ENABLE` vous devrez l'activer avec la commande `BootMagic` **N** (`Espace+N` par défaut). Cette option est enregistrée dans l'EEPROM et sera gardé entre deux cycles de démarrage.
|
||||||
|
|
||||||
|
https://github.com/tmk/tmk_keyboard#boot-magic-configuration---virtual-dip-switch
|
||||||
|
|
||||||
|
## Le TrackPoint a besoin Circuit de réinitialisation (Support de souris PS/2)
|
||||||
|
|
||||||
|
Sans circuit de réinitialisation vous allez avoir des résultats inconsistants à cause de la mauvaise initialisation du matériel. Regardez le schéma du circuit du TPM754.
|
||||||
|
|
||||||
|
- http://geekhack.org/index.php?topic=50176.msg1127447#msg1127447
|
||||||
|
- http://www.mikrocontroller.net/attachment/52583/tpm754.pdf
|
||||||
|
|
||||||
|
## Impossible de lire la colonne de la matrice après 16
|
||||||
|
|
||||||
|
Utilisez `1UL<<16` à la place de `1<<16` dans `read_cols()` du fichier [matrix.h] lorsque le nombre de vos colonnes dépassent 16.
|
||||||
|
|
||||||
|
En C, `1` implique un type [int] qui est [16 bits] pour les AVR, ce qui implique que vous ne pouvez pas décaler à gauche de plus de 15. Si vous utilisez `1<<16`, vous aurez un résultat non attendu de zéro. Vous devez donc utiliser un type [unsigned long] en utilisant `1UL`.
|
||||||
|
|
||||||
|
http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279
|
||||||
|
|
||||||
|
## Les touches spéciales ne fonctionnent pas (Touche Système, Touches de contrôle du son)
|
||||||
|
|
||||||
|
Vous devez définir `EXTRAKEY_ENABLE` dans le fichier `rules.mk` pour les utiliser dans QMK.
|
||||||
|
|
||||||
|
```
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
```
|
||||||
|
|
||||||
|
## Réveiller du mode veille ne fonctionne pas
|
||||||
|
|
||||||
|
Sous Windows, activez l'option `Permettre au périphérique de sortir l'ordinateur de veille` dans les paramètres des **Options d'alimentations** du **Gestionnaire de périphériques**. Vérifiez aussi les paramètres du BIOS.
|
||||||
|
|
||||||
|
Appuyer sur n'importe quelle touche en mode veille devrait sortir l'ordinateur de veille.
|
||||||
|
|
||||||
|
## Vous utilisez un Arduino ?
|
||||||
|
|
||||||
|
**Faites attention au fait que le nommage des pin d'un Arduino diffère de la puce**. Par exemple, la pin `D0` n'est pas `PD0`. Vérifiez le circuit avec la fiche technique.
|
||||||
|
|
||||||
|
- http://arduino.cc/en/uploads/Main/arduino-leonardo-schematic_3b.pdf
|
||||||
|
- http://arduino.cc/en/uploads/Main/arduino-micro-schematic.pdf
|
||||||
|
|
||||||
|
Les Arduino Leonardo et micro ont des **ATMega32U4** et peuvent être utilisés avec TMK, mais le bootloader Arduino peut causer des problèmes.
|
||||||
|
|
||||||
|
## Activer JTAG
|
||||||
|
|
||||||
|
Par défaut, le débugage des interfaces JTAG est désactivé dès que le clavier démarre. Les MCUs compatible JTAG viennent d'usine avec le fusible `JTAGEN` activé, et il prend certaines pins du MCU que la board pourrait utiliser pour la matrice, les LEDs, etc.
|
||||||
|
|
||||||
|
Si vous voulez garder JTAG activé, ajoutez la ligne suivante à votre fichier `config.h` :
|
||||||
|
|
||||||
|
```c
|
||||||
|
#define NO_JTAG_DISABLE
|
||||||
|
```
|
||||||
|
|
||||||
|
## Compatibilité USB 3
|
||||||
|
|
||||||
|
Il semble que certaines personnes ont eu des problèmes avec les ports USB 3, essayez un port USB 2.
|
||||||
|
|
||||||
|
## Compatibilité Mac
|
||||||
|
|
||||||
|
### OS X 10.11 et Hub
|
||||||
|
|
||||||
|
https://geekhack.org/index.php?topic=14290.msg1884034#msg1884034
|
||||||
|
|
||||||
|
## Problème sur BIOS (UEFI) / Resume (Mise en veille et réveil) / Redémarrage
|
||||||
|
|
||||||
|
Certaines personnes ont eu des problèmes de fonctionnement de leur clavier dans le BIOS et/ou après des redémarrages.
|
||||||
|
|
||||||
|
Pour le moment, l'origine du problème n'est pas comprise, mais certaines options de compilation semble liées. Dans le Makefile, essayez de désactiver les options comme `CONSOLE_ENABLE`, `NKRO_ENABLE`, `SLEEP_LED_ENABLE` et/ou d'autres.
|
||||||
|
|
||||||
|
https://github.com/tmk/tmk_keyboard/issues/266
|
||||||
|
https://geekhack.org/index.php?topic=41989.msg1967778#msg1967778
|
||||||
|
|
||||||
|
## FLIP ne marche pas
|
||||||
|
|
||||||
|
### `AtLibUsbDfu.dll` Not Found
|
||||||
|
|
||||||
|
Supprimez le pilote actuel et réinstallez celui donné par FLIP dans le gestionnaire de périphériques.
|
||||||
|
|
||||||
|
http://imgur.com/a/bnwzy
|
16
docs/fr-fr/faq_general.md
Normal file
16
docs/fr-fr/faq_general.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Questions fréquemment posées
|
||||||
|
|
||||||
|
## Qu'est-ce que QMK ?
|
||||||
|
|
||||||
|
[QMK](https://github.com/qmk), acronyme pour Quantum Mechanical Keyboard, est un groupe de personnes qui construisent des outils pour des claviers personnalisés. Nous avons commencé par le [firmware QMK](https://github.com/qmk/qmk_firmware), un fork très modifié du firmware [TMK](https://github.com/tmk/tmk_keyboard).
|
||||||
|
|
||||||
|
## Quelles sont les différences entre QMK et TMK ?
|
||||||
|
|
||||||
|
TMK a été conçu et développé à l'origine par [Jun Wako](https://github.com/tmk). QMK a démarré comme étant le fork de [Jack Humbert](https://github.com/jackhumbert) pour le Planck. Au bout d'un moment, le fork de Jack a divergé de manière significative de TMK et, en 2015, Jack a décidé de le renommer QMK.
|
||||||
|
|
||||||
|
D'un point de vue technique, QMK se base sur TMK en lui ajoutant plusieurs nouvelles fonctionnalités.
|
||||||
|
QMK a notamment augmenté le nombre de keycodes disponibles et les a utilisé pour implémenter des fonctionnalités avancées telles que `S()`, `LCTL()` et `MO()`. Vous pouvez voir une liste complète de ces keycodes dans [Keycodes] (keycodes.md).
|
||||||
|
|
||||||
|
D'un point de vue management de projet et communauté, Hasu, sur TMK maintient tous les claviers supportés officiellement par lui-même, avec un peu de support de la communauté. Il existe ou peuvent être créées d'autres communautés maintenant des fork pour d'autres claviers. Peu de keymaps sont définies par défaut, les utilisateurs ne se partagent donc pas leurs keymaps en général. QMK encourage le partage des claviers et des keymaps à l'aide d'un dépôt géré de manière centrale, acceptant les pull requests qui suivent les standards de qualité. Ceux-ci sont surtout maitenus par la communauté, mais l'équipe de QMK aide aussi lorsque c'est nécessaire.
|
||||||
|
|
||||||
|
Les deux approches ont leurs avantages et leurs inconvénients, et le développements de fonctionnalités intéressantes sont partagées entre TMK et QMK lorsque fait sens.
|
161
docs/fr-fr/faq_keymap.md
Normal file
161
docs/fr-fr/faq_keymap.md
Normal file
@@ -0,0 +1,161 @@
|
|||||||
|
# FAQ Keymap
|
||||||
|
|
||||||
|
Cette page couvre les questions souvent posées à propos des keymaps. Si vous ne l'avez pas encore fait, vous devriez commencer par là [Aperçu des Keymap](keymap.md).
|
||||||
|
|
||||||
|
## Quels Keycodes puis-je utiliser ?
|
||||||
|
|
||||||
|
Regardez [Keycodes](keycodes.md) pour une liste des keycodes disponibles. Certains keycodes spécifiques ont des documentations plus complètes de disponible.
|
||||||
|
|
||||||
|
Les keycodes sont définies dans [common/keycode.h](https://github.com/qmk/qmk_firmware/blob/master/tmk_core/common/keycode.h).
|
||||||
|
|
||||||
|
## Quels sont les keycodes par défaut ?
|
||||||
|
|
||||||
|
Il existe 3 configurations de clavier standard utilisées dans le monde: ANSI, ISO et JIS. L'Amérique du Nord utilise principalement l'ANSI, l'Europe et l'Afrique l'ISO et le Japon utilise JIS. Les autres régions utilisent généralement ANSI ou ISO. Les keycodes correspondant à ces dispositions spécifiques sont affichés ici :
|
||||||
|
|
||||||
|
<!-- Source for this image: http://www.keyboard-layout-editor.com/#/gists/bf431647d1001cff5eff20ae55621e9a -->
|
||||||
|

|
||||||
|
|
||||||
|
## Certaines de mes touches sont permutées ou ne fonctionnent pas
|
||||||
|
|
||||||
|
QMK possède deux fonctionnalités, Bootmagic et Command, qui vous permettent de modifier le comportement de votre clavier à la volée. Cela inclut, sans toutefois s'y limiter, l'échange de Ctrl / Majuscules, la désactivation de l'interface graphique, le basculement de Alt/Gui, le basculement de barre d'espacement arrière/barre oblique inversée, la désactivation de toutes les touches et d'autres modifications comportementales.
|
||||||
|
|
||||||
|
Pour résoudre rapidement le problème, essayez de maintenir les touches Espace + Retour arrière enfoncées pendant que vous branchez votre clavier. Cela réinitialisera les paramètres stockés sur votre clavier, ramenant ces touches à un fonctionnement normal. Si cela ne fonctionne pas, regardez ici:
|
||||||
|
|
||||||
|
* [Bootmagic](feature_bootmagic.md)
|
||||||
|
* [Command](feature_command.md)
|
||||||
|
|
||||||
|
## La touche de menu ne fonctionne pas
|
||||||
|
|
||||||
|
La touche trouvée sur la plupart des claviers modernes située entre `KC_RGUI` et` KC_RCTL` est en réalité appelée `KC_APP`. En effet, lorsque cette touche a été inventée, il existait déjà une clé nommée `MENU` dans les normes correspondantes. MS a donc choisi de l'appeler la touche` APP`.
|
||||||
|
|
||||||
|
## `KC_SYSREQ` ne fonctionne pas
|
||||||
|
|
||||||
|
Utilisez le keycode pour Print Screen (`KC_PSCREEN` or `KC_PSCR`) à la place de `KC_SYSREQ`. La combinaison de touche 'Alt + Print Screen' est reconnue comme 'System request'.
|
||||||
|
|
||||||
|
Voir [issue #168](https://github.com/tmk/tmk_keyboard/issues/168) et
|
||||||
|
* http://en.wikipedia.org/wiki/Magic_SysRq_key
|
||||||
|
* http://en.wikipedia.org/wiki/System_request
|
||||||
|
|
||||||
|
## Les touches alimentation ne fonctionnent pas
|
||||||
|
|
||||||
|
Un peu déroutant, il y a deux codes de touche "Alimentation" dans QMK: `KC_POWER` dans la page d'utilisation du clavier / keypad, et `KC_SYSTEM_POWER` (ou `KC_PWR`) dans la page Consumer.
|
||||||
|
|
||||||
|
Le premier n'est reconnu que sur macOS, alors que le dernier, `KC_SLEP` et `KC_WAKE` sont supportés par les trois principaux systèmes d'exploitation. Il est donc recommandé de les utiliser à la place. Sous Windows, ces touches prennent effet immédiatement, mais sur macOS, elles doivent être maintenues enfoncées jusqu'à ce qu'une boîte de dialogue apparaisse.
|
||||||
|
|
||||||
|
## Modificateur "One Shot"
|
||||||
|
|
||||||
|
Cette fonctionnalité permet de corriger un problème avec la touche Shift. En effet, il arrive de saisir plusieurs majuscules en ne voulant en saisir qu'une sur un mot. Ex : `CEtte` à la place de `Cette`. La fonctionnalité « One shot » shift permet de corriger ça.
|
||||||
|
|
||||||
|
https://github.com/tmk/tmk_keyboard/issues/67
|
||||||
|
|
||||||
|
## Le modificateur d'un calque reste bloqué
|
||||||
|
|
||||||
|
Les touches de modification ou les calques peuvent être bloquées si la commutation de calque n'est pas configurée correctement.
|
||||||
|
Pour les touches de modification et les actions de calque, vous devez placer `KC_TRANS` sur la même position du calque de destination afin de désenregistrer la clé de modificateur ou de revenir au calque précédent lors de la libération.
|
||||||
|
|
||||||
|
* https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#31-momentary-switching
|
||||||
|
* http://geekhack.org/index.php?topic=57008.msg1492604#msg1492604
|
||||||
|
* https://github.com/tmk/tmk_keyboard/issues/248
|
||||||
|
|
||||||
|
## Support de touche à verrouillage mécanique
|
||||||
|
|
||||||
|
Cette fonctionnalité permet l'usage de *touches à verrouillage mécanique* comme [ces interrupteurs Alps](http://deskthority.net/wiki/Alps_SKCL_Lock). Vous pouvez l'activer en ajoutant ceci à votre `config.h` :
|
||||||
|
|
||||||
|
```
|
||||||
|
#define LOCKING_SUPPORT_ENABLE
|
||||||
|
#define LOCKING_RESYNC_ENABLE
|
||||||
|
```
|
||||||
|
|
||||||
|
Une fois la fonction activée, utilisez les keycodes `KC_LCAP`, `KC_LNUM` et `KC_LSCR` dans votre keymap.
|
||||||
|
|
||||||
|
Des vieux claviers mécaniques ont parfois des touches à verrouillage, mais les claviers modernes n'en sont pas équipés. ***Vous n'avez pas besoin de cette fonction dans la majorité des cas et devez utiliser les keycodes `KC_CAPS`, `KC_NLCK` et `KC_SLCK`.***
|
||||||
|
|
||||||
|
## Ajouter des caractères spéciaux autres que ASCII comme la cédille 'Ç'
|
||||||
|
|
||||||
|
Voir la fonctionnalité [Unicode](feature_unicode.md).
|
||||||
|
|
||||||
|
## Touche `Fn` sur macOS
|
||||||
|
|
||||||
|
Contrairement à la plupart des touches Fn, celle des claviers Apple a son propre code d'activation... en quelque sorte. Il remplace le sixième code d'activation dans un rapport de base 6KRO HID - de sorte qu'un clavier Apple ne contient en réalité que 5KRO.
|
||||||
|
|
||||||
|
Il est techniquement possible de demander à QMK d’envoyer ce keycode. Cependant, cela nécessite une modification du format du rapport pour ajouter l'état de la touche Fn.
|
||||||
|
Pire encore, ce keycode n'est reconnu que si les identifiants du clavier VID et PID correspondent à ceux d'un vrai clavier Apple. Malheureusement QMK ne peut juridiquement prendre en charge cette fonctionnalité et il y a peu de chance que la situation s'améliore.
|
||||||
|
|
||||||
|
Voir [cette issue](https://github.com/qmk/qmk_firmware/issues/2179) pour des informations détaillées.
|
||||||
|
|
||||||
|
## Touches Media sous Mac OSX
|
||||||
|
|
||||||
|
#### KC_MNXT et KC_MPRV ne fonctionnent pas sous Mac
|
||||||
|
|
||||||
|
Utilisez `KC_MFFD`(`KC_MEDIA_FAST_FORWARD`) et `KC_MRWD`(`KC_MEDIA_REWIND`) à la place de `KC_MNXT` et `KC_MPRV`.
|
||||||
|
Voir https://github.com/tmk/tmk_keyboard/issues/195
|
||||||
|
|
||||||
|
## Touches supportées sous Mac OSX?
|
||||||
|
|
||||||
|
Vous pouvez connaître les keycodes supportés par OSX en lisant ce code source.
|
||||||
|
|
||||||
|
`usb_2_adb_keymap` contient les tableaux des pages Keyboard/Keypad vers les scancodes ADB (keycodes interne à OSX).
|
||||||
|
|
||||||
|
https://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-606.1.7/IOHIDFamily/Cosmo_USB2ADB.c
|
||||||
|
|
||||||
|
Et `IOHIDConsumer::dispatchConsumerEvent` s'occupe des utilisations Consumer page.
|
||||||
|
|
||||||
|
https://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-606.1.7/IOHIDFamily/IOHIDConsumer.cpp
|
||||||
|
|
||||||
|
## Touches JIS dans Mac OSX
|
||||||
|
|
||||||
|
Les touches de clavier spécifiques JIS comme `無変換(Muhenkan)`, `変換(Henkan)`, `ひらがな(hiragana)` ne sont pas reconnues par OSX. Vous pouvez utiliser **Seil** pour les activer, esssayez les options suivantes.
|
||||||
|
|
||||||
|
* Activer la touche NFER sur clavier PC
|
||||||
|
* Activer la touche XFER sur clavier PC
|
||||||
|
* Activer la touche KATAKANA sur clavier PC
|
||||||
|
|
||||||
|
https://pqrs.org/osx/karabiner/seil.html
|
||||||
|
|
||||||
|
## RN-42 Bluetooth ne fonctionne pas avec Karabiner
|
||||||
|
|
||||||
|
Karabiner - Outil de Keymapping sous Mac OSX - Ignore les entrées du module RN-42. Vous devez activer cette option pour rendre Karabiner compatible avec votre clavier.
|
||||||
|
https://github.com/tekezo/Karabiner/issues/403#issuecomment-102559237
|
||||||
|
|
||||||
|
Plus de détails sur ce problème sur les liens suivants.
|
||||||
|
https://github.com/tmk/tmk_keyboard/issues/213
|
||||||
|
https://github.com/tekezo/Karabiner/issues/403
|
||||||
|
|
||||||
|
## Esc et <code>`</code> sur une touche simple.
|
||||||
|
|
||||||
|
Cette fonctionnalité permet d'utiliser une touche à la fois comme touche Échap ou une touche `§` (En Azerty) selon le cas d’utilisation. Cela est très utile sur un clavier de petite taille.
|
||||||
|
|
||||||
|
Voir la fonctionnalité [Grave Escape](feature_grave_esc.md).
|
||||||
|
|
||||||
|
## Eject sur Mac OSX
|
||||||
|
|
||||||
|
Le keycode`KC_EJCT` fonctionne sous OSX. https://github.com/tmk/tmk_keyboard/issues/250
|
||||||
|
|
||||||
|
Il semble que Windows 10 ignore le code et Linux/Xorg le reconnaît mais n'a pas de mapping par défaut.
|
||||||
|
|
||||||
|
Nous ne sommes pas sûr quel keycode est utilisé pour la touche Eject sur les claviers Apple officiels. HHKB utilise `F20` pour la touche Eject (`Fn+f`) lorsqu'il est en mode Mac, mais ce n'est probablement pas la même chose que le keycode Eject d'Apple.
|
||||||
|
|
||||||
|
## Qu'est-ce que `weak_mods` et `real_mods` dans `action_util.c`
|
||||||
|
|
||||||
|
___TO BE IMPROVED___
|
||||||
|
|
||||||
|
real_mods est prévu pour retenir l'état des touches modificateur réelles/physiques, alors que weak_mods ne retient l'état que des modificateurs temporaires ou virtuels qui ne devraient pas affecter l'état des touches modificaterus réelles.
|
||||||
|
|
||||||
|
Par exemple, disons que vous maintenez la touche physique "shift gauche" et tapez ACTION_MODS_KEY(LSHIFT, KC_A),
|
||||||
|
|
||||||
|
en weak_mods,
|
||||||
|
|
||||||
|
* (1) maintenir shift gauche : real_mods |= MOD_BIT(LSHIFT)
|
||||||
|
* (2) appuyer ACTION_MODS_KEY(LSHIFT, KC_A): weak_mods |= MOD_BIT(LSHIFT)
|
||||||
|
* (3) lâcher ACTION_MODS_KEY(LSHIFT, KC_A): weak_mods &= ~MOD_BIT(LSHIFT)
|
||||||
|
real_mods garde sur état modificateur.
|
||||||
|
|
||||||
|
sans weak_mods,
|
||||||
|
|
||||||
|
* (1) maintenir shift gauche : real_mods |= MOD_BIT(LSHIFT)
|
||||||
|
* (2) appuyer ACTION_MODS_KEY(LSHIFT, KC_A): real_mods |= MOD_BIT(LSHIFT)
|
||||||
|
* (3) lâcher ACTION_MODS_KEY(LSHIFT, KC_A): real_mods &= ~MOD_BIT(LSHIFT)
|
||||||
|
ici real_mods a perdu son état pour 'shift gauche physique'.
|
||||||
|
|
||||||
|
weak_mods est ORed avec real_mods lorsque le rapport du clavier est envoyé.
|
||||||
|
https://github.com/tmk/tmk_core/blob/master/common/action_util.c#L57
|
@@ -1,6 +1,6 @@
|
|||||||
# Instructions pour flasher et informations sur les bootloader
|
# Instructions pour flasher et informations sur les bootloader
|
||||||
|
|
||||||
Les claviers utilisent différents types de bootloaders et certains doivent être flashés différement. Heureusement, certains projets comme la [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) ont pour objectifs de permettre de flasher les différents bootloader sans trop se faire de soucis et ça peut importe les manières de les flasher.
|
Les claviers utilisent différents types de bootloaders et certains doivent être flashés différement. Heureusement, certains projets comme la [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) ont pour objectifs de permettre de flasher les différents bootloader sans trop se faire de soucis et ça peu importe les manières de les flasher.
|
||||||
|
|
||||||
Si vous avez un bootloader sélectionné avec la variable `BOOTLOADER` dans votre fichier `rules.mk` alors QMK vas automatiquement calculer si votre fichier .hex n'est pas trop grand pour être flashé sur votre appareil, et il affichera la taille finale du firmware. Pour vérifier la taille manuellement, vous pouvez aussi compiler le firmware avec l'option `check-size`. Exemple : `make planck/rev4:default:check-size`.
|
Si vous avez un bootloader sélectionné avec la variable `BOOTLOADER` dans votre fichier `rules.mk` alors QMK vas automatiquement calculer si votre fichier .hex n'est pas trop grand pour être flashé sur votre appareil, et il affichera la taille finale du firmware. Pour vérifier la taille manuellement, vous pouvez aussi compiler le firmware avec l'option `check-size`. Exemple : `make planck/rev4:default:check-size`.
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ QMK a un fork du bootloader LUFA DFU qui vous permet de faire un simple scan de
|
|||||||
#define QMK_LED E6
|
#define QMK_LED E6
|
||||||
#define QMK_SPEAKER C6
|
#define QMK_SPEAKER C6
|
||||||
|
|
||||||
Le fabriquant et le nom du produit proviennent de vos définitions dans fichier `config.h`, et la chaîne de caractère « bootloader » est ajoutée au nom du prodruit.
|
Le fabricant et le nom du produit proviennent de vos définitions dans fichier `config.h`, et la chaîne de caractère « bootloader » est ajoutée au nom du produit.
|
||||||
|
|
||||||
Pour génerer le bootloader, utilisez la cible `bootloader`. Exemple : `make planck/rev4:default:bootloader`.
|
Pour génerer le bootloader, utilisez la cible `bootloader`. Exemple : `make planck/rev4:default:bootloader`.
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ Il y a plusieurs commandes DFU que vous pouvez utiliser pour flasher le firmware
|
|||||||
|
|
||||||
## Caterina
|
## Caterina
|
||||||
|
|
||||||
Les cartes arduinos et leurs clones utilisent le [bootloader Caterina](https://github.com/arduino/ArduinoCore-avr/tree/master/bootloaders/caterina) (tous les claviers utilisant un Pro Micro, ou un clone). Ils utilisent aussi le protocole avr109 pour communiquer en virtuellement en série (serial en Anglais). Les bootloaders comme le [A-Star](https://www.pololu.com/docs/0J61/9) sont basés sur Caterina.
|
Les cartes arduinos et leurs clones utilisent le [bootloader Caterina](https://github.com/arduino/ArduinoCore-avr/tree/master/bootloaders/caterina) (tous les claviers utilisant un Pro Micro, ou un clone). Ils utilisent aussi le protocole avr109 pour communiquer en virtuellement en série (serial en anglais). Les bootloaders comme le [A-Star](https://www.pololu.com/docs/0J61/9) sont basés sur Caterina.
|
||||||
|
|
||||||
Pour vérifier la compatibilité avec un bootloader Caterina, vérifiez que ce bloc est présent dans votre fichier `rules.mk` :
|
Pour vérifier la compatibilité avec un bootloader Caterina, vérifiez que ce bloc est présent dans votre fichier `rules.mk` :
|
||||||
|
|
||||||
@@ -84,8 +84,8 @@ BOOTLOADER = caterina
|
|||||||
|
|
||||||
Flashers compatibles :
|
Flashers compatibles :
|
||||||
|
|
||||||
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (Interface graphique recomandée)
|
* [QMK Toolbox](https://github.com/qmk/qmk_toolbox/releases) (Interface graphique recommandée)
|
||||||
* [avrdude](http://www.nongnu.org/avrdude/) avec avr109 / `:avrdude` (Outil en ligne de commande recomandé)
|
* [avrdude](http://www.nongnu.org/avrdude/) avec avr109 / `:avrdude` (Outil en ligne de commande recommandé)
|
||||||
* [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
|
* [AVRDUDESS](https://github.com/zkemble/AVRDUDESS)
|
||||||
|
|
||||||
Séquence de flash :
|
Séquence de flash :
|
||||||
@@ -99,11 +99,14 @@ ou, utilisez :
|
|||||||
|
|
||||||
make <keyboard>:<keymap>:avrdude
|
make <keyboard>:<keymap>:avrdude
|
||||||
|
|
||||||
ou, si vous vous voulez flasher plusieurs claviers, utilisez la commande suivante :
|
#### Commandes Caterina
|
||||||
|
|
||||||
make <keyboard>:<keymap>:avrdude-loop
|
Il existe un certain nombre de commandes DFU que vous pouvez utiliser pour mettre à jour le firmware sur un périphérique DFU:
|
||||||
|
|
||||||
Quand vous avez fini de flasher vos claviers, vous aurez besoin d'utiliser Ctrl + C ou alors la touche ayant la fonction similaire sur votre OS pour sortir de la boucle.
|
* `: avrdude` - Il s’agit de l’option normale. Le script va attendre qu’un appareil Caterina soit disponible. Dès que c’est le cas, il flash le firmware. Il attendra de détecter un nouveau port COM pour le flasher.
|
||||||
|
* `: avrdude-loop` - Cela fonctionne de la même manière que`: avrdude`, mais une fois que chaque périphérique est flashé, il tentera de flasher à nouveau. Cela peut être utile pour flasher plusieurs claviers à la suite. _Cela implique de sortir manuellement de la boucle en appuyant sur Ctrl + C, Cmd + C ou un raccourci équivalent selon votre OS_
|
||||||
|
* `: avrdude-split-left` - Cela fonctionne de la même manière que la fonction (`: avrdude`). Toutefois, cela permet aussi de flasher le coté gauche de l'EEPROM des claviers splittés / divisés. C'est donc la méthode recommandée pour les claviers splittés avec Pro Micro.
|
||||||
|
* `: avrdude-split-right` - Cela fonctionne de la même manière que la fonction (`: avrdude`). Toutefois, cela permet aussi de flasher le coté droite de l'EEPROM des claviers splittés / divisés. C'est donc la méthode recommandée pour les claviers splittés avec Pro Micro.
|
||||||
|
|
||||||
## Halfkay
|
## Halfkay
|
||||||
|
|
||||||
@@ -169,7 +172,7 @@ Séquence de flash :
|
|||||||
|
|
||||||
## BootloadHID
|
## BootloadHID
|
||||||
|
|
||||||
BootloadHID est un bootloader pour les microcontroleurs AVR. L'utilitaire de téleversement ne demande pas de drivers au niveau du kernel et peut être lancé sans installer aucune DLLs.
|
BootloadHID est un bootloader pour les microcontrôleurs AVR. L'utilitaire de téleversement ne demande pas de drivers au niveau du kernel et peut être lancé sans installer aucune DLLs.
|
||||||
|
|
||||||
Pour vérifier la compatibilité avec le bootloader bootloadHID, vérifiez que ce bloc existe dans votre fichier `rules.mk` :
|
Pour vérifier la compatibilité avec le bootloader bootloadHID, vérifiez que ce bloc existe dans votre fichier `rules.mk` :
|
||||||
|
|
||||||
@@ -194,7 +197,7 @@ Séquence de flash
|
|||||||
|
|
||||||
1. Entrez dans le bootloader en utilisant l'une de ces méthodes :
|
1. Entrez dans le bootloader en utilisant l'une de ces méthodes :
|
||||||
* Pressez la touche du keycode `RESET` (Cela ne fonctionnera pas sur certains appareils).
|
* Pressez la touche du keycode `RESET` (Cela ne fonctionnera pas sur certains appareils).
|
||||||
* Verouillez la touche « Salt » tout en branchant le clavier (Géneralement ce principe est documenté dans le fichier readme du clavier)
|
* Verrouillez la touche « Salt » tout en branchant le clavier (Généralement ce principe est documenté dans le fichier readme du clavier)
|
||||||
2. Attendez que l'OS détecte l'appareil.
|
2. Attendez que l'OS détecte l'appareil.
|
||||||
3. Flasher le fichier .hex.
|
3. Flasher le fichier .hex.
|
||||||
4. Redémarrez l'appareil en mode « application ». Cela peut être fait automatiquement.
|
4. Redémarrez l'appareil en mode « application ». Cela peut être fait automatiquement.
|
||||||
@@ -224,13 +227,13 @@ Séquence pour flasher:
|
|||||||
3. Flasher un fichier `.bin`.h
|
3. Flasher un fichier `.bin`.h
|
||||||
* Vous allez recevoir un avertissement à propos de la signature DFU. Ignorez-la.
|
* Vous allez recevoir un avertissement à propos de la signature DFU. Ignorez-la.
|
||||||
4. Réinitialisez l'appareil en mode « application ». Cela peut être fait automatiquement.
|
4. Réinitialisez l'appareil en mode « application ». Cela peut être fait automatiquement.
|
||||||
* Si vous êtes en train de travailler en ligne de commande, par exemple avec un `make planck/rev6:default:dfu-util` alors soyez bien sur que l'argument `:leave` est passé aux argument DFU grâce à la variable `DFU_ARGS` à l'intérieur de votre fichier `rules.mk` (Ex : `DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave`) afin que votre appareil redémarre après avoir été flashé.
|
* Si vous êtes en train de travailler en ligne de commande, par exemple avec un `make planck/rev6:default:dfu-util` alors soyez bien sur que l'argument `:leave` est passé aux arguments DFU grâce à la variable `DFU_ARGS` à l'intérieur de votre fichier `rules.mk` (Ex : `DFU_ARGS = -d 0483:df11 -a 0 -s 0x08000000:leave`) afin que votre appareil redémarre après avoir été flashé.
|
||||||
|
|
||||||
### Commandes STM32
|
### Commandes STM32
|
||||||
|
|
||||||
Il y a différentes commandes que vous pouvez utiliser pour flasher un firmware dans un appareil STM32 :
|
Il y a différentes commandes que vous pouvez utiliser pour flasher un firmware dans un appareil STM32 :
|
||||||
|
|
||||||
* `:dfu-util` - La commande par défaut pour flasher un appareil STM32.
|
* `:dfu-util` - C'est l'option standard pour flasher un appareil STM32. Le script attendra qu'un bootloader STM32 soit présent.
|
||||||
* `:dfu-util-split-left` - Permet de flasher un firmware normalement, tout comme l'option précedente mais permet de configurer le coté gauche des paramètres EEPROM sur un clavier scindé.
|
* `:dfu-util-split-left` - Permet de flasher un firmware normalement, tout comme l'option précédente mais permet de configurer le côté gauche des paramètres EEPROM sur un clavier scindé.
|
||||||
* `:dfu-util-split-right` - Permet de flasher un firmware normalement, tout comme l'option précedente mais permet de configurer le coté droit des paramètres EEPROM sur un clavier scindé.
|
* `:dfu-util-split-right` - Permet de flasher un firmware normalement, tout comme l'option précédente mais permet de configurer le côté droit des paramètres EEPROM sur un clavier scindé.
|
||||||
* `:st-link-cli` - Cela permet de flasher le firmware avec l'utilitaire en ligne de commande ST-LINK's plutôt que d'utiliser dfu-util.
|
* `:st-link-cli` - Cela permet de flasher le firmware avec l'utilitaire en ligne de commande ST-LINK's plutôt que d'utiliser dfu-util.
|
@@ -4,7 +4,7 @@ Il y a beaucoup de ressources pour trouver de l'aide avec QMK.
|
|||||||
|
|
||||||
## Chat temps-réel
|
## Chat temps-réel
|
||||||
|
|
||||||
Vous trouverez des développeurs QMK et des utilisateurs sur notre [Serveur Discord](https://discord.gg/Uq7gcHh) principal. Il y a des canaux spécifiques dans le serveurs pour discuter des firmware, toolbox, hardware et configurateurs.
|
Vous trouverez des développeurs QMK et des utilisateurs sur notre [Serveur Discord](https://discord.gg/Uq7gcHh) principal. Il y a des canaux spécifiques dans le serveur pour discuter des firmwares, toolbox, hardware et configurateurs.
|
||||||
|
|
||||||
## Sous-Reddit OLKB
|
## Sous-Reddit OLKB
|
||||||
|
|
||||||
@@ -12,4 +12,4 @@ Le forum officiel de QMK est [/r/olkb](https://reddit.com/r/olkb) sur [reddit.co
|
|||||||
|
|
||||||
## Tickets GitHub
|
## Tickets GitHub
|
||||||
|
|
||||||
Vous pouvez ouvrir un [ticket sur GitHub](https://github.com/qmk/qmk_firmware/issues). Ceci est spécialement pratique lorsque votre problème demande une discussion long terme ou un débugage.
|
Vous pouvez ouvrir un [ticket sur GitHub](https://github.com/qmk/qmk_firmware/issues). Ceci est spécialement pratique lorsque votre problème demande une discussion sur le long terme ou un débugage.
|
@@ -8,25 +8,31 @@ Commencez par la [page GitHub de QMK](https://github.com/qmk/qmk_firmware), et v
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
Si vous faites partie d'une organisation, vous aurez besoin de savoir quel compte utiliser pour le fork. Dans la plupart des cas, vous voudrez créer le fork dans votre compte personnel. Une fois le fork complet (cela peut quelque fois prendre un peu de temps), appuyez sur le bouton "Clone or download":
|
Si vous faites partie d'une organisation, vous aurez besoin de savoir quel compte utiliser pour le fork. Dans la plupart des cas, vous voudrez créer le fork dans votre compte personnel. Une fois le fork complet (cela peut quelques fois prendre un peu de temps), appuyez sur le bouton "Clone or download":
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Faites attention à sélectionner "HTTPS", et sélectionnez le liens et copiez-le:
|
Faites attention à sélectionner "HTTPS", et sélectionnez le lien et copiez-le:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
Ensuite, entrez `git clone` dans la ligne de commande, et collez votre lien:
|
Ensuite, entrez `git clone --recurse-submodules ` dans la ligne de commande, et collez votre lien:
|
||||||
|
|
||||||
```
|
```
|
||||||
user@computer:~$ git clone https://github.com/whoeveryouare/qmk_firmware.git
|
user@computer:~$ git clone --recurse-submodules https://github.com/whoeveryouare/qmk_firmware.git
|
||||||
Cloning into 'qmk_firmware'...
|
Cloning into 'qmk_firmware'...
|
||||||
remote: Counting objects: 46625, done.
|
remote: Enumerating objects: 9, done.
|
||||||
remote: Compressing objects: 100% (2/2), done.
|
remote: Counting objects: 100% (9/9), done.
|
||||||
remote: Total 46625 (delta 0), reused 0 (delta 0), pack-reused 46623
|
remote: Compressing objects: 100% (5/5), done.
|
||||||
Receiving objects: 100% (46625/46625), 84.47 MiB | 3.14 MiB/s, done.
|
remote: Total 183883 (delta 5), reused 4 (delta 4), pack-reused 183874
|
||||||
Resolving deltas: 100% (29362/29362), done.
|
Receiving objects: 100% (183883/183883), 132.90 MiB | 9.57 MiB/s, done.
|
||||||
Checking out files: 100% (2799/2799), done.
|
Resolving deltas: 100% (119972/119972), done.
|
||||||
|
...
|
||||||
|
Submodule path 'lib/chibios': checked out '587968d6cbc2b0e1c7147540872f2a67e59ca18b'
|
||||||
|
Submodule path 'lib/chibios-contrib': checked out 'ede48346eee4b8d6847c19bc01420bee76a5e486'
|
||||||
|
Submodule path 'lib/googletest': checked out 'ec44c6c1675c25b9827aacd08c02433cccde7780'
|
||||||
|
Submodule path 'lib/lufa': checked out 'ce10f7642b0459e409839b23cc91498945119b4d'
|
||||||
|
Submodule path 'lib/ugfx': checked out '3e97b74e03c93631cdd3ddb2ce43b963fdce19b2'
|
||||||
```
|
```
|
||||||
|
|
||||||
Vous avez maintenant votre fork QMK sur votre machine locale, vous pouvez ajouter votre keymap, la compiler et la flasher sur votre board. Une fois heureux avec vos changements, vous pouvez les ajouter, commit, et pousser vers votre fork comme suit:
|
Vous avez maintenant votre fork QMK sur votre machine locale, vous pouvez ajouter votre keymap, la compiler et la flasher sur votre board. Une fois heureux avec vos changements, vous pouvez les ajouter, commit, et pousser vers votre fork comme suit:
|
||||||
@@ -48,7 +54,7 @@ To https://github.com/whoeveryouare/qmk_firmware.git
|
|||||||
+ 20043e64...7da94ac5 master -> master
|
+ 20043e64...7da94ac5 master -> master
|
||||||
```
|
```
|
||||||
|
|
||||||
Vos changements existent maintenant dans votre fork sur GitHub. Si vous allez à cete adresse (`https://github.com/<whoeveryouare>/qmk_firmware`), vous pouvez créer un nouveau "Pull Request" en cliquant sur ce bouton:
|
Vos changements existent maintenant dans votre fork sur GitHub. Si vous allez à cette adresse (`https://github.com/<whoeveryouare>/qmk_firmware`), vous pouvez créer un nouveau "Pull Request" en cliquant sur ce bouton:
|
||||||
|
|
||||||

|

|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user