diff options
author | fauxpark <fauxpark@gmail.com> | 2019-12-12 06:33:10 +1100 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-12-11 11:33:09 -0800 |
commit | 770a4ee7291095aaa6548d3e988633bf2ae6e6c0 (patch) | |
tree | 77f927d380d9f3b356c4a96dfa789980a26b47d2 /docs | |
parent | ccda62616d422ae6df810b6fd68fc8e61002e278 (diff) | |
download | qmk_firmware-770a4ee7291095aaa6548d3e988633bf2ae6e6c0.tar.gz qmk_firmware-770a4ee7291095aaa6548d3e988633bf2ae6e6c0.zip |
[Docs] Remove some outdated FAQ items (#7607)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/faq_build.md | 4 | ||||
-rw-r--r-- | docs/faq_debug.md | 68 | ||||
-rw-r--r-- | docs/faq_keymap.md | 63 | ||||
-rw-r--r-- | docs/fr-fr/faq_build.md | 4 | ||||
-rw-r--r-- | docs/fr-fr/faq_debug.md | 71 | ||||
-rw-r--r-- | docs/fr-fr/faq_keymap.md | 67 | ||||
-rw-r--r-- | docs/zh-cn/faq_build.md | 5 | ||||
-rw-r--r-- | docs/zh-cn/faq_debug.md | 68 | ||||
-rw-r--r-- | docs/zh-cn/faq_keymap.md | 63 |
9 files changed, 3 insertions, 410 deletions
diff --git a/docs/faq_build.md b/docs/faq_build.md index 4c91cb28b..b2e448306 100644 --- a/docs/faq_build.md +++ b/docs/faq_build.md | |||
@@ -87,10 +87,6 @@ Re-running the QMK installation script (`./util/qmk_install.sh` from the `qmk_fi | |||
87 | 87 | ||
88 | 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. | 88 | 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. |
89 | 89 | ||
90 | ## WINAVR is Obsolete | ||
91 | It is no longer recommended and may cause some problem. | ||
92 | See [TMK Issue #99](https://github.com/tmk/tmk_keyboard/issues/99). | ||
93 | |||
94 | ## USB VID and PID | 90 | ## USB VID and PID |
95 | 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. | 91 | 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. |
96 | 92 | ||
diff --git a/docs/faq_debug.md b/docs/faq_debug.md index 1e0cdc82b..6c66defbd 100644 --- a/docs/faq_debug.md +++ b/docs/faq_debug.md | |||
@@ -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 | |||
112 | 112 | ||
113 | http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279 | 113 | http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279 |
114 | 114 | ||
115 | |||
116 | ## Bootloader Jump Doesn't Work | ||
117 | Properly configure bootloader size in **Makefile**. With wrong section size bootloader won't probably start with **Magic command** and **Boot Magic**. | ||
118 | ``` | ||
119 | # Size of Bootloaders in bytes: | ||
120 | # Atmel DFU loader(ATmega32U4) 4096 | ||
121 | # Atmel DFU loader(AT90USB128) 8192 | ||
122 | # LUFA bootloader(ATmega32U4) 4096 | ||
123 | # Arduino Caterina(ATmega32U4) 4096 | ||
124 | # USBaspLoader(ATmega***) 2048 | ||
125 | # Teensy halfKay(ATmega32U4) 512 | ||
126 | # Teensy++ halfKay(AT90USB128) 2048 | ||
127 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
128 | ``` | ||
129 | AVR Boot section size are defined by setting **BOOTSZ** fuse in fact. Consult with your MCU datasheet. | ||
130 | Note that **Word**(2 bytes) size and address are used in datasheet while TMK uses **Byte**. | ||
131 | |||
132 | AVR Boot section is located at end of Flash memory like the followings. | ||
133 | ``` | ||
134 | byte Atmel/LUFA(ATMega32u4) byte Atmel(AT90SUB1286) | ||
135 | 0x0000 +---------------+ 0x00000 +---------------+ | ||
136 | | | | | | ||
137 | | | | | | ||
138 | | Application | | Application | | ||
139 | | | | | | ||
140 | = = = = | ||
141 | | | 32KB-4KB | | 128KB-8KB | ||
142 | 0x6000 +---------------+ 0x1E000 +---------------+ | ||
143 | | Bootloader | 4KB | Bootloader | 8KB | ||
144 | 0x7FFF +---------------+ 0x1FFFF +---------------+ | ||
145 | |||
146 | |||
147 | byte Teensy(ATMega32u4) byte Teensy++(AT90SUB1286) | ||
148 | 0x0000 +---------------+ 0x00000 +---------------+ | ||
149 | | | | | | ||
150 | | | | | | ||
151 | | Application | | Application | | ||
152 | | | | | | ||
153 | = = = = | ||
154 | | | 32KB-512B | | 128KB-2KB | ||
155 | 0x7E00 +---------------+ 0x1FC00 +---------------+ | ||
156 | | Bootloader | 512B | Bootloader | 2KB | ||
157 | 0x7FFF +---------------+ 0x1FFFF +---------------+ | ||
158 | ``` | ||
159 | |||
160 | And see this discussion for further reference. | ||
161 | https://github.com/tmk/tmk_keyboard/issues/179 | ||
162 | |||
163 | 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. | ||
164 | |||
165 | ## Special Extra Key Doesn't Work (System, Audio Control Keys) | 115 | ## Special Extra Key Doesn't Work (System, Audio Control Keys) |
166 | You need to define `EXTRAKEY_ENABLE` in `rules.mk` to use them in QMK. | 116 | You need to define `EXTRAKEY_ENABLE` in `rules.mk` to use them in QMK. |
167 | 117 | ||
@@ -194,24 +144,6 @@ If you would like to keep JTAG enabled, just add the following to your `config.h | |||
194 | #define NO_JTAG_DISABLE | 144 | #define NO_JTAG_DISABLE |
195 | ``` | 145 | ``` |
196 | 146 | ||
197 | ## Adding LED Indicators of Lock Keys | ||
198 | You need your own LED indicators for CapsLock, ScrollLock and NumLock? See this post. | ||
199 | |||
200 | http://deskthority.net/workshop-f7/tmk-keyboard-firmware-collection-t4478-120.html#p191560 | ||
201 | |||
202 | ## Program Arduino Micro/Leonardo | ||
203 | Push reset button and then run command like this within 8 seconds. | ||
204 | |||
205 | ``` | ||
206 | avrdude -patmega32u4 -cavr109 -b57600 -Uflash:w:adb_usb.hex -P/dev/ttyACM0 | ||
207 | ``` | ||
208 | |||
209 | Device name will vary depending on your system. | ||
210 | |||
211 | http://arduino.cc/en/Main/ArduinoBoardMicro | ||
212 | https://geekhack.org/index.php?topic=14290.msg1563867#msg1563867 | ||
213 | |||
214 | |||
215 | ## USB 3 Compatibility | 147 | ## USB 3 Compatibility |
216 | I heard some people have a problem with USB 3 port, try USB 2 port. | 148 | I heard some people have a problem with USB 3 port, try USB 2 port. |
217 | 149 | ||
diff --git a/docs/faq_keymap.md b/docs/faq_keymap.md index 84d8548d4..2d00e8bef 100644 --- a/docs/faq_keymap.md +++ b/docs/faq_keymap.md | |||
@@ -67,24 +67,8 @@ After enabling this feature use keycodes `KC_LCAP`, `KC_LNUM` and `KC_LSCR` in y | |||
67 | 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`.*** | 67 | 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`.*** |
68 | 68 | ||
69 | ## Input Special Characters Other Than ASCII like Cédille 'Ç' | 69 | ## Input Special Characters Other Than ASCII like Cédille 'Ç' |
70 | NO UNIVERSAL METHOD TO INPUT THOSE WORKS OVER ALL SYSTEMS. You have to define **MACRO** in way specific to your OS or layout. | ||
71 | 70 | ||
72 | See this post for example **MACRO** code. | 71 | See the [Unicode](feature_unicode.md) feature. |
73 | |||
74 | http://deskthority.net/workshop-f7/tmk-keyboard-firmware-collection-t4478-120.html#p195620 | ||
75 | |||
76 | On **Windows** you can use `AltGr` key or **Alt code**. | ||
77 | * http://en.wikipedia.org/wiki/AltGr_key | ||
78 | * http://en.wikipedia.org/wiki/Alt_code | ||
79 | |||
80 | On **Mac** OS defines `Option` key combinations. | ||
81 | * http://en.wikipedia.org/wiki/Option_key#Alternative_keyboard_input | ||
82 | |||
83 | On **Xorg** you can use `compose` key, instead. | ||
84 | * http://en.wikipedia.org/wiki/Compose_key | ||
85 | |||
86 | And see this for **Unicode** input. | ||
87 | * http://en.wikipedia.org/wiki/Unicode_input | ||
88 | 72 | ||
89 | ## `Fn` Key on macOS | 73 | ## `Fn` Key on macOS |
90 | 74 | ||
@@ -130,51 +114,6 @@ https://github.com/tekezo/Karabiner/issues/403 | |||
130 | 114 | ||
131 | See the [Grave Escape](feature_grave_esc.md) feature. | 115 | See the [Grave Escape](feature_grave_esc.md) feature. |
132 | 116 | ||
133 | ## Arrow on Right Modifier Keys with Dual-Role | ||
134 | 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**. | ||
135 | ``` | ||
136 | |||
137 | #include "keymap_common.h" | ||
138 | |||
139 | |||
140 | /* Arrow keys on right modifier keys with TMK dual role feature | ||
141 | * | ||
142 | * https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#213-modifier-with-tap-keydual-role | ||
143 | * https://en.wikipedia.org/wiki/Modifier_key#Dual-role_keys | ||
144 | */ | ||
145 | const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
146 | /* 0: qwerty */ | ||
147 | [0] = LAYOUT( \ | ||
148 | ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, NUHS,BSPC, \ | ||
149 | TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, \ | ||
150 | LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT,ENT, \ | ||
151 | LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH,FN0, ESC, \ | ||
152 | FN4, LGUI,LALT, SPC, APP, FN2, FN1, FN3), | ||
153 | [1] = LAYOUT( \ | ||
154 | GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS,TRNS, \ | ||
155 | TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,\ | ||
156 | TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \ | ||
157 | TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,FN5, TRNS, \ | ||
158 | TRNS,TRNS,TRNS, TRNS, TRNS,FN7, FN6, FN8), | ||
159 | }; | ||
160 | |||
161 | const uint16_t PROGMEM fn_actions[] = { | ||
162 | [0] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_UP), | ||
163 | [1] = ACTION_MODS_TAP_KEY(MOD_RGUI, KC_DOWN), | ||
164 | [2] = ACTION_MODS_TAP_KEY(MOD_RALT, KC_LEFT), | ||
165 | [3] = ACTION_MODS_TAP_KEY(MOD_RCTL, KC_RIGHT), | ||
166 | [4] = ACTION_LAYER_MOMENTARY(1), | ||
167 | [5] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_PGUP), | ||
168 | [6] = ACTION_MODS_TAP_KEY(MOD_RGUI, KC_PGDN), | ||
169 | [7] = ACTION_MODS_TAP_KEY(MOD_RALT, KC_HOME), | ||
170 | [8] = ACTION_MODS_TAP_KEY(MOD_RCTL, KC_END), | ||
171 | }; | ||
172 | |||
173 | ``` | ||
174 | |||
175 | Dual-role key: https://en.wikipedia.org/wiki/Modifier_key#Dual-role_keys | ||
176 | |||
177 | |||
178 | ## Eject on Mac OSX | 117 | ## Eject on Mac OSX |
179 | `KC_EJCT` keycode works on OSX. https://github.com/tmk/tmk_keyboard/issues/250 | 118 | `KC_EJCT` keycode works on OSX. https://github.com/tmk/tmk_keyboard/issues/250 |
180 | It seems Windows 10 ignores the code and Linux/Xorg recognizes but has no mapping by default. | 119 | It seems Windows 10 ignores the code and Linux/Xorg recognizes but has no mapping by default. |
diff --git a/docs/fr-fr/faq_build.md b/docs/fr-fr/faq_build.md index 6fba1e430..448ff01aa 100644 --- a/docs/fr-fr/faq_build.md +++ b/docs/fr-fr/faq_build.md | |||
@@ -86,10 +86,6 @@ Relancer le script d'installation de QMK (`./util/qmk_install.sh` situé dans r | |||
86 | 86 | ||
87 | 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. | 87 | 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. |
88 | 88 | ||
89 | ## WINAVR est obsolète | ||
90 | |||
91 | Il n'est plus recommandé et peut causer des problèmes. Voir [TMK Issue #99](https://github.com/tmk/tmk_keyboard/issues/99). | ||
92 | |||
93 | ## USB VID et PID | 89 | ## USB VID et PID |
94 | 90 | ||
95 | Vous pouvez utiliser l'ID de votre choix en modifier `config.h`. Il y a peu de chance de conflit avec d'autres produits. | 91 | Vous pouvez utiliser l'ID de votre choix en modifier `config.h`. Il y a peu de chance de conflit avec d'autres produits. |
diff --git a/docs/fr-fr/faq_debug.md b/docs/fr-fr/faq_debug.md index 7a85fd1f2..754c79921 100644 --- a/docs/fr-fr/faq_debug.md +++ b/docs/fr-fr/faq_debug.md | |||
@@ -104,58 +104,6 @@ En C, `1` implique un type [int] qui est [16 bits] pour les AVR, ce qui implique | |||
104 | 104 | ||
105 | http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279 | 105 | http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279 |
106 | 106 | ||
107 | ## Bootloader Jump ne fonctionne pas | ||
108 | |||
109 | Configurez correctement la taille du bootloader dans le **Makefile**. Une mauvaise taille de section du bootloader empêchera probablement le démarrage avec **Magic command** et **Boot Magic**. | ||
110 | |||
111 | ``` | ||
112 | # Size of Bootloaders in bytes: | ||
113 | # Atmel DFU loader(ATmega32U4) 4096 | ||
114 | # Atmel DFU loader(AT90USB128) 8192 | ||
115 | # LUFA bootloader(ATmega32U4) 4096 | ||
116 | # Arduino Caterina(ATmega32U4) 4096 | ||
117 | # USBaspLoader(ATmega***) 2048 | ||
118 | # Teensy halfKay(ATmega32U4) 512 | ||
119 | # Teensy++ halfKay(AT90USB128) 2048 | ||
120 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
121 | ``` | ||
122 | |||
123 | La taille de la section de démarrage de AVR est définie par l'option **BOOTSZ** fuse. Vérifiez la fiche technique du MCU. Veuilez noter que les tailles et adresses sont définies en **Word** (2 octets) dans la fiche technique alors que TMK utilise des **Byte**. | ||
124 | |||
125 | La section de boot AVR se trouve à la fin de la mémoire flash, comme suit. | ||
126 | |||
127 | ``` | ||
128 | byte Atmel/LUFA(ATMega32u4) byte Atmel(AT90SUB1286) | ||
129 | 0x0000 +---------------+ 0x00000 +---------------+ | ||
130 | | | | | | ||
131 | | | | | | ||
132 | | Application | | Application | | ||
133 | | | | | | ||
134 | = = = = | ||
135 | | | 32KB-4KB | | 128KB-8KB | ||
136 | 0x6000 +---------------+ 0x1E000 +---------------+ | ||
137 | | Bootloader | 4KB | Bootloader | 8KB | ||
138 | 0x7FFF +---------------+ 0x1FFFF +---------------+ | ||
139 | |||
140 | |||
141 | byte Teensy(ATMega32u4) byte Teensy++(AT90SUB1286) | ||
142 | 0x0000 +---------------+ 0x00000 +---------------+ | ||
143 | | | | | | ||
144 | | | | | | ||
145 | | Application | | Application | | ||
146 | | | | | | ||
147 | = = = = | ||
148 | | | 32KB-512B | | 128KB-2KB | ||
149 | 0x7E00 +---------------+ 0x1FC00 +---------------+ | ||
150 | | Bootloader | 512B | Bootloader | 2KB | ||
151 | 0x7FFF +---------------+ 0x1FFFF +---------------+ | ||
152 | ``` | ||
153 | |||
154 | Référez-vous à cette discussion pour plus de référence. | ||
155 | https://github.com/tmk/tmk_keyboard/issues/179 | ||
156 | |||
157 | Si vous utilisez un TeensyUSB, il y a un [bug connu](https://github.com/qmk/qmk_firmware/issues/164) qui fait que le bouton reset matériel empêche la touche RESET de fonctionner. Débrancher et rebrancher le clavier devrait résoudre le problème. | ||
158 | |||
159 | ## Les touches spéciales ne fonctionnent pas (Touche Système, Touches de contrôle du son) | 107 | ## Les touches spéciales ne fonctionnent pas (Touche Système, Touches de contrôle du son) |
160 | 108 | ||
161 | Vous devez définir `EXTRAKEY_ENABLE` dans le fichier `rules.mk` pour les utiliser dans QMK. | 109 | Vous devez définir `EXTRAKEY_ENABLE` dans le fichier `rules.mk` pour les utiliser dans QMK. |
@@ -189,25 +137,6 @@ Si vous voulez garder JTAG activé, ajoutez la ligne suivante à votre fichier ` | |||
189 | #define NO_JTAG_DISABLE | 137 | #define NO_JTAG_DISABLE |
190 | ``` | 138 | ``` |
191 | 139 | ||
192 | ## Adding LED Indicators of Lock Keys | ||
193 | |||
194 | Si vous souhaitez votre propre indicateur LED pour CapsLock, ScrollLock et NumLock alors lisez ce post. | ||
195 | |||
196 | http://deskthority.net/workshop-f7/tmk-keyboard-firmware-collection-t4478-120.html#p191560 | ||
197 | |||
198 | ## Programmer Arduino Micro/Leonardo | ||
199 | |||
200 | Appuyez sur le bouton reset puis lancez la commande suivante dans les 8 secondes. | ||
201 | |||
202 | ``` | ||
203 | avrdude -patmega32u4 -cavr109 -b57600 -Uflash:w:adb_usb.hex -P/dev/ttyACM0 | ||
204 | ``` | ||
205 | |||
206 | Le nom du périphérique peut varier en fonction de votre système. | ||
207 | |||
208 | http://arduino.cc/en/Main/ArduinoBoardMicro | ||
209 | https://geekhack.org/index.php?topic=14290.msg1563867#msg1563867 | ||
210 | |||
211 | ## Compatibilité USB 3 | 140 | ## Compatibilité USB 3 |
212 | 141 | ||
213 | Il semble que certaines personnes ont eu des problèmes avec les ports USB 3, essayez un port USB 2. | 142 | Il semble que certaines personnes ont eu des problèmes avec les ports USB 3, essayez un port USB 2. |
diff --git a/docs/fr-fr/faq_keymap.md b/docs/fr-fr/faq_keymap.md index 8244d4225..2cbbe9308 100644 --- a/docs/fr-fr/faq_keymap.md +++ b/docs/fr-fr/faq_keymap.md | |||
@@ -72,24 +72,7 @@ Des vieux claviers mécaniques ont parfois des touches à verrouillage, mais les | |||
72 | 72 | ||
73 | ## Ajouter des caractères spéciaux autres que ASCII comme la cédille 'Ç' | 73 | ## Ajouter des caractères spéciaux autres que ASCII comme la cédille 'Ç' |
74 | 74 | ||
75 | IL N'EXISTE AUCUNE METHODE UNIVERSELLE POUR LES AJOUTER QUI FONCTIONNE SUR TOUS LES SYSTEMES. Vous devez définir une **MACRO** d'une manière spécifique à votre OS ou layout. | 75 | Voir la fonctionnalité [Unicode](feature_unicode.md). |
76 | |||
77 | Voir ce post pour un exemple de code **MACRO**. | ||
78 | |||
79 | http://deskthority.net/workshop-f7/tmk-keyboard-firmware-collection-t4478-120.html#p195620 | ||
80 | |||
81 | Sous **Windows** vous pouvez utiliser la touche `AltGr` ou **Alt code**. | ||
82 | * http://en.wikipedia.org/wiki/AltGr_key | ||
83 | * http://en.wikipedia.org/wiki/Alt_code | ||
84 | |||
85 | Sous **Mac OS** définissez une combinaison de touche `Option`. | ||
86 | * http://en.wikipedia.org/wiki/Option_key#Alternative_keyboard_input | ||
87 | |||
88 | Sous **Xorg** vous pouvez utiliser une touche `compose` à la place. | ||
89 | * http://en.wikipedia.org/wiki/Compose_key | ||
90 | |||
91 | Et voir ceci pour une entrée **Unicode**. | ||
92 | * http://en.wikipedia.org/wiki/Unicode_input | ||
93 | 76 | ||
94 | ## Touche `Fn` sur macOS | 77 | ## Touche `Fn` sur macOS |
95 | 78 | ||
@@ -144,54 +127,6 @@ Cette fonctionnalité permet d'utiliser une touche à la fois comme touche Écha | |||
144 | 127 | ||
145 | Voir la fonctionnalité [Grave Escape](feature_grave_esc.md). | 128 | Voir la fonctionnalité [Grave Escape](feature_grave_esc.md). |
146 | 129 | ||
147 | ## Avoir les touches modificatrices qui ont double usage en flèches directionnelles. | ||
148 | |||
149 | Ceci transforme les touches "modificateur droit" en touches fléchées lorsque les touches sont seulement "tapées" tout en restant des modificateurs lorsqu'elles sont maintenues. | ||
150 | |||
151 | Dans TMK la fonction double rôle s'appelle **TAP**. | ||
152 | |||
153 | ```C | ||
154 | |||
155 | #include "keymap_common.h" | ||
156 | |||
157 | |||
158 | /* Arrow keys on right modifier keys with TMK dual role feature | ||
159 | * | ||
160 | * https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#213-modifier-with-tap-keydual-role | ||
161 | * https://en.wikipedia.org/wiki/Modifier_key#Dual-role_keys | ||
162 | */ | ||
163 | const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
164 | /* 0: qwerty */ | ||
165 | [0] = LAYOUT( \ | ||
166 | ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, NUHS,BSPC, \ | ||
167 | TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, \ | ||
168 | LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT,ENT, \ | ||
169 | LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH,FN0, ESC, \ | ||
170 | FN4, LGUI,LALT, SPC, APP, FN2, FN1, FN3), | ||
171 | [1] = LAYOUT( \ | ||
172 | GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS,TRNS, \ | ||
173 | TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,\ | ||
174 | TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \ | ||
175 | TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,FN5, TRNS, \ | ||
176 | TRNS,TRNS,TRNS, TRNS, TRNS,FN7, FN6, FN8), | ||
177 | }; | ||
178 | |||
179 | const uint16_t PROGMEM fn_actions[] = { | ||
180 | [0] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_UP), | ||
181 | [1] = ACTION_MODS_TAP_KEY(MOD_RGUI, KC_DOWN), | ||
182 | [2] = ACTION_MODS_TAP_KEY(MOD_RALT, KC_LEFT), | ||
183 | [3] = ACTION_MODS_TAP_KEY(MOD_RCTL, KC_RIGHT), | ||
184 | [4] = ACTION_LAYER_MOMENTARY(1), | ||
185 | [5] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_PGUP), | ||
186 | [6] = ACTION_MODS_TAP_KEY(MOD_RGUI, KC_PGDN), | ||
187 | [7] = ACTION_MODS_TAP_KEY(MOD_RALT, KC_HOME), | ||
188 | [8] = ACTION_MODS_TAP_KEY(MOD_RCTL, KC_END), | ||
189 | }; | ||
190 | |||
191 | ``` | ||
192 | |||
193 | Touches double rôle : https://en.wikipedia.org/wiki/Modifier_key#Dual-role_keys | ||
194 | |||
195 | ## Eject sur Mac OSX | 130 | ## Eject sur Mac OSX |
196 | 131 | ||
197 | Le keycode`KC_EJCT` fonctionne sous OSX. https://github.com/tmk/tmk_keyboard/issues/250 | 132 | Le keycode`KC_EJCT` fonctionne sous OSX. https://github.com/tmk/tmk_keyboard/issues/250 |
diff --git a/docs/zh-cn/faq_build.md b/docs/zh-cn/faq_build.md index 2f33fbca9..82d0697a8 100644 --- a/docs/zh-cn/faq_build.md +++ b/docs/zh-cn/faq_build.md | |||
@@ -56,11 +56,6 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="1c11", MODE:="0666" | |||
56 | ?> 事实上没有一个驱动的最佳选择,有些选项就是和某些系统相辅相成。但libUSB和WinUSB似乎也算是这里的最佳选择了。 | 56 | ?> 事实上没有一个驱动的最佳选择,有些选项就是和某些系统相辅相成。但libUSB和WinUSB似乎也算是这里的最佳选择了。 |
57 | 如果bootloader在设备列表中没有显示,你可能要使能 "List all devices"选项在选项菜单中`Options`,然后找到有问题的bootloader设备。(译者注:在win10中可能为 查看-显示隐藏的设备) | 57 | 如果bootloader在设备列表中没有显示,你可能要使能 "List all devices"选项在选项菜单中`Options`,然后找到有问题的bootloader设备。(译者注:在win10中可能为 查看-显示隐藏的设备) |
58 | 58 | ||
59 | |||
60 | ## WINAVR已淘汰 | ||
61 | 不再推荐使用WINAVR,使用可能会导致问题 | ||
62 | 详情请见[TMK Issue #99](https://github.com/tmk/tmk_keyboard/issues/99). | ||
63 | |||
64 | ## USB VID 和 PID | 59 | ## USB VID 和 PID |
65 | 你可以在编辑`config.h`时使用任何你想用的ID值。实际上,使用任何可能未使用的ID都没有问题,除了有极低的与其他产品发生冲突的可能性。 | 60 | 你可以在编辑`config.h`时使用任何你想用的ID值。实际上,使用任何可能未使用的ID都没有问题,除了有极低的与其他产品发生冲突的可能性。 |
66 | 61 | ||
diff --git a/docs/zh-cn/faq_debug.md b/docs/zh-cn/faq_debug.md index a3cc7c510..7eff7f265 100644 --- a/docs/zh-cn/faq_debug.md +++ b/docs/zh-cn/faq_debug.md | |||
@@ -101,56 +101,6 @@ https://github.com/tmk/tmk_keyboard#boot-magic-configuration---virtual-dip-switc | |||
101 | 101 | ||
102 | http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279 | 102 | http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279 |
103 | 103 | ||
104 | |||
105 | ## Bootloader跳转不好用 | ||
106 | 在**Makefile**中正确配置**Makefile**大小。如果分区大小不正确,引导加载程序可能无法从**Magic command**和**Boot Magic**加载。 | ||
107 | ``` | ||
108 | # bootloader字节数: | ||
109 | # Atmel DFU loader(ATmega32U4) 4096 | ||
110 | # Atmel DFU loader(AT90USB128) 8192 | ||
111 | # LUFA bootloader(ATmega32U4) 4096 | ||
112 | # Arduino Caterina(ATmega32U4) 4096 | ||
113 | # USBaspLoader(ATmega***) 2048 | ||
114 | # Teensy halfKay(ATmega32U4) 512 | ||
115 | # Teensy++ halfKay(AT90USB128) 2048 | ||
116 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
117 | ``` | ||
118 | AVR引导大小是通过**BOOTSZ**熔丝位来设置的。查阅你单片机的datasheet。 | ||
119 | 记住,datasheet用的是**Word**(2字节)表示大小和地址,TMK用的是**Byte**。 | ||
120 | |||
121 | AVR引导部分位于闪存的末尾,如下所示(Application是应用区,Bootloader是引导区)。 | ||
122 | ``` | ||
123 | byte Atmel/LUFA(ATMega32u4) byte Atmel(AT90SUB1286) | ||
124 | 0x0000 +---------------+ 0x00000 +---------------+ | ||
125 | | | | | | ||
126 | | | | | | ||
127 | | Application | | Application | | ||
128 | | | | | | ||
129 | = = = = | ||
130 | | | 32KB-4KB | | 128KB-8KB | ||
131 | 0x6000 +---------------+ 0x1E000 +---------------+ | ||
132 | | Bootloader | 4KB | Bootloader | 8KB | ||
133 | 0x7FFF +---------------+ 0x1FFFF +---------------+ | ||
134 | |||
135 | |||
136 | byte Teensy(ATMega32u4) byte Teensy++(AT90SUB1286) | ||
137 | 0x0000 +---------------+ 0x00000 +---------------+ | ||
138 | | | | | | ||
139 | | | | | | ||
140 | | Application | | Application | | ||
141 | | | | | | ||
142 | = = = = | ||
143 | | | 32KB-512B | | 128KB-2KB | ||
144 | 0x7E00 +---------------+ 0x1FC00 +---------------+ | ||
145 | | Bootloader | 512B | Bootloader | 2KB | ||
146 | 0x7FFF +---------------+ 0x1FFFF +---------------+ | ||
147 | ``` | ||
148 | |||
149 | 详情请见下方issue。 | ||
150 | https://github.com/tmk/tmk_keyboard/issues/179 | ||
151 | |||
152 | 如果你使用TeensyUSB, 有一个[已知bug](https://github.com/qmk/qmk_firmware/issues/164)硬件重置按钮阻止软件定义重置键工作。重新插拔键盘就好了。 | ||
153 | |||
154 | ## 特殊额外键不起作用(系统,音频控制键) | 104 | ## 特殊额外键不起作用(系统,音频控制键) |
155 | 你要在`rules.mk`定义`EXTRAKEY_ENABLE`在QMK中使用它们。 | 105 | 你要在`rules.mk`定义`EXTRAKEY_ENABLE`在QMK中使用它们。 |
156 | 106 | ||
@@ -173,24 +123,6 @@ EXTRAKEY_ENABLE = yes # 音频控制和系统控制 | |||
173 | 123 | ||
174 | Arduino Leonardo和micro使用**ATMega32U4**,该芯片TMK可用,但Arduino的bootloader会导致问题。 | 124 | Arduino Leonardo和micro使用**ATMega32U4**,该芯片TMK可用,但Arduino的bootloader会导致问题。 |
175 | 125 | ||
176 | ## 为锁定键添加指示灯 | ||
177 | 你要自制CapsLock, ScrollLock 和 NumLock指示灯?见下文。 | ||
178 | |||
179 | http://deskthority.net/workshop-f7/tmk-keyboard-firmware-collection-t4478-120.html#p191560 | ||
180 | |||
181 | ## 为Arduino Micro/Leonardo编程 | ||
182 | 按下重置键然后在8秒内运行下方这样的命令。 | ||
183 | |||
184 | ``` | ||
185 | avrdude -patmega32u4 -cavr109 -b57600 -Uflash:w:adb_usb.hex -P/dev/ttyACM0 | ||
186 | ``` | ||
187 | |||
188 | 设备名称因系统而异。 | ||
189 | |||
190 | http://arduino.cc/en/Main/ArduinoBoardMicro | ||
191 | https://geekhack.org/index.php?topic=14290.msg1563867#msg1563867 | ||
192 | |||
193 | |||
194 | ## USB 3 兼容性 | 126 | ## USB 3 兼容性 |
195 | 据传说有些人用USB3接口会有问题,用USB2的试试。 | 127 | 据传说有些人用USB3接口会有问题,用USB2的试试。 |
196 | 128 | ||
diff --git a/docs/zh-cn/faq_keymap.md b/docs/zh-cn/faq_keymap.md index ee8e3c06b..7fb434b4c 100644 --- a/docs/zh-cn/faq_keymap.md +++ b/docs/zh-cn/faq_keymap.md | |||
@@ -66,24 +66,8 @@ https://github.com/tmk/tmk_keyboard/issues/67 | |||
66 | 远古机械键盘偶尔会有自锁机械开关,现在几乎没有了。***大多数情况下你不需要使用该功能,且要使用`KC_CAPS`, `KC_NLCK`和`KC_SLCK`这三个键码。*** | 66 | 远古机械键盘偶尔会有自锁机械开关,现在几乎没有了。***大多数情况下你不需要使用该功能,且要使用`KC_CAPS`, `KC_NLCK`和`KC_SLCK`这三个键码。*** |
67 | 67 | ||
68 | ## 输入ASCII之外的特殊字符比如Cédille 'Ç' | 68 | ## 输入ASCII之外的特殊字符比如Cédille 'Ç' |
69 | 没有在所有系统中输入这个的通用方法。你要定义针对你的特定操作系统或布局的**宏**。 | ||
70 | 69 | ||
71 | 比如看这个**宏**代码的文章。 | 70 | 请见[Unicode](feature_unicode.md)功能。 |
72 | |||
73 | http://deskthority.net/workshop-f7/tmk-keyboard-firmware-collection-t4478-120.html#p195620 | ||
74 | <!--翻译问题:下方维基百科链接应全部替换为中文链接,暂未找到全部--> | ||
75 | 在**Windows**上,可以用`AltGr`键或**Alt码**。 | ||
76 | * http://en.wikipedia.org/wiki/AltGr_key | ||
77 | * https://zh.wikipedia.org/wiki/Alt%E7%A0%81 | ||
78 | |||
79 | 在**Mac OS**定义`Option`键组合。 | ||
80 | * https://zh.wikipedia.org/wiki/Option%E9%94%AE#%E6%9B%BF%E4%BB%A3%E9%94%AE%E7%9B%98%E8%BE%93%E5%85%A5 | ||
81 | |||
82 | 在**Xorg**可以改用`compose`键。 | ||
83 | * http://en.wikipedia.org/wiki/Compose_key | ||
84 | |||
85 | 下方链接查看**Unicode**输入。 | ||
86 | * http://en.wikipedia.org/wiki/Unicode_input | ||
87 | 71 | ||
88 | ## macOS上的`Fn` | 72 | ## macOS上的`Fn` |
89 | 73 | ||
@@ -136,51 +120,6 @@ https://github.com/tekezo/Karabiner/issues/403 | |||
136 | 120 | ||
137 | 请见[Grave Escape](feature_grave_esc.md)功能。 | 121 | 请见[Grave Escape](feature_grave_esc.md)功能。 |
138 | 122 | ||
139 | ## 右侧双角色修改键(诸如Shift、Alt等有修改其他键作用的键)变箭头键 | ||
140 | 右侧修改键单击时会变为箭头键,长按就还是修改键。在TMK中双角色键称之为**TAP**. | ||
141 | ``` | ||
142 | |||
143 | #include "keymap_common.h" | ||
144 | |||
145 | |||
146 | /* 用TMK双角色键功能实现右侧修改键改箭头键 | ||
147 | * | ||
148 | * https://github.com/tmk/tmk_core/blob/master/doc/keymap.md#213-modifier-with-tap-keydual-role | ||
149 | * https://en.wikipedia.org/wiki/Modifier_key#Dual-role_keys | ||
150 | */ | ||
151 | const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
152 | /* 0: qwerty */ | ||
153 | [0] = LAYOUT( \ | ||
154 | ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, MINS,EQL, NUHS,BSPC, \ | ||
155 | TAB, Q, W, E, R, T, Y, U, I, O, P, LBRC,RBRC,BSLS, \ | ||
156 | LCTL,A, S, D, F, G, H, J, K, L, SCLN,QUOT,ENT, \ | ||
157 | LSFT,NUBS,Z, X, C, V, B, N, M, COMM,DOT, SLSH,FN0, ESC, \ | ||
158 | FN4, LGUI,LALT, SPC, APP, FN2, FN1, FN3), | ||
159 | [1] = LAYOUT( \ | ||
160 | GRV, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS,TRNS, \ | ||
161 | TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,\ | ||
162 | TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS, \ | ||
163 | TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,TRNS,FN5, TRNS, \ | ||
164 | TRNS,TRNS,TRNS, TRNS, TRNS,FN7, FN6, FN8), | ||
165 | }; | ||
166 | |||
167 | const uint16_t PROGMEM fn_actions[] = { | ||
168 | [0] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_UP), | ||
169 | [1] = ACTION_MODS_TAP_KEY(MOD_RGUI, KC_DOWN), | ||
170 | [2] = ACTION_MODS_TAP_KEY(MOD_RALT, KC_LEFT), | ||
171 | [3] = ACTION_MODS_TAP_KEY(MOD_RCTL, KC_RIGHT), | ||
172 | [4] = ACTION_LAYER_MOMENTARY(1), | ||
173 | [5] = ACTION_MODS_TAP_KEY(MOD_RSFT, KC_PGUP), | ||
174 | [6] = ACTION_MODS_TAP_KEY(MOD_RGUI, KC_PGDN), | ||
175 | [7] = ACTION_MODS_TAP_KEY(MOD_RALT, KC_HOME), | ||
176 | [8] = ACTION_MODS_TAP_KEY(MOD_RCTL, KC_END), | ||
177 | }; | ||
178 | |||
179 | ``` | ||
180 | |||
181 | 双角色键说明: https://en.wikipedia.org/wiki/Modifier_key#Dual-role_keys | ||
182 | |||
183 | |||
184 | ## Mac OSX的弹出键 | 123 | ## Mac OSX的弹出键 |
185 | `KC_EJCT` 键码在OSX可以使用 https://github.com/tmk/tmk_keyboard/issues/250 | 124 | `KC_EJCT` 键码在OSX可以使用 https://github.com/tmk/tmk_keyboard/issues/250 |
186 | 似乎Windows10会忽略该键码,Linux/Xorg可以识别该键码但默认不映射。 | 125 | 似乎Windows10会忽略该键码,Linux/Xorg可以识别该键码但默认不映射。 |