Deploying to gh-pages from master @ 501f2fdef1 🚀
				
					
				
			This commit is contained in:
		
							parent
							
								
									ecac181662
								
							
						
					
					
						commit
						4984097d9b
					
				
					 12 changed files with 32 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -29,7 +29,9 @@ This level contains all of the options for that particular keymap. If you wish t
 | 
			
		|||
 | 
			
		||||
This is a C header file that is one of the first things included, and will persist over the whole project (if included). Lots of variables can be set here and accessed elsewhere. The `config.h` file shouldn't be including other `config.h` files, or anything besides this:
 | 
			
		||||
 | 
			
		||||
    #include "config_common.h"
 | 
			
		||||
```c
 | 
			
		||||
#include "config_common.h"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Hardware Options
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -41,7 +41,9 @@ Bevorzugst Du es lieber auf der Befehlszeile zu debuggen? Dafür eignet sich das
 | 
			
		|||
 | 
			
		||||
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>
 | 
			
		||||
```c
 | 
			
		||||
#include "print.h"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Danach stehen dir verschiedene Druck-Funktionen zur Verfügung:
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -41,7 +41,9 @@ Para plataformas compatibles, [QMK Toolbox](https://github.com/qmk/qmk_toolbox)
 | 
			
		|||
 | 
			
		||||
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>
 | 
			
		||||
```c
 | 
			
		||||
#include "print.h"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Después de eso puedes utilzar algunas funciones print diferentes:
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -182,7 +182,9 @@ Which would send Left Control+`a` (Left Control down, `a`, Left Control up) - no
 | 
			
		|||
 | 
			
		||||
By default, it assumes a US keymap with a QWERTY layout; if you want to change that (e.g. if your OS uses software Colemak), include this somewhere in your keymap:
 | 
			
		||||
 | 
			
		||||
    #include <sendstring_colemak.h>
 | 
			
		||||
```c
 | 
			
		||||
#include "sendstring_colemak.h"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### Strings in Memory
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -184,7 +184,7 @@ If you wanted to consolidate macros and other functions into your userspace for
 | 
			
		|||
 | 
			
		||||
First, you'd want to go through all of your `keymap.c` files and replace `process_record_user` with `process_record_keymap` instead.   This way, you can still use keyboard specific codes on those boards, and use your custom "global" keycodes as well.   You'll also want to replace `SAFE_RANGE` with `NEW_SAFE_RANGE` so that you wont have any overlapping keycodes
 | 
			
		||||
 | 
			
		||||
Then add `#include <name.h>` to all of your keymap.c files.  This allows you to use these new keycodes without having to redefine them in each keymap.
 | 
			
		||||
Then add `#include "<name>.h"` to all of your keymap.c files.  This allows you to use these new keycodes without having to redefine them in each keymap.
 | 
			
		||||
 | 
			
		||||
Once you've done that, you'll want to set the keycode definitions that you need to the `<name>.h`  file. For instance:
 | 
			
		||||
```c
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -42,7 +42,9 @@ Vous préférez une solution basée sur le terminal? [hid_listen](https://www.pj
 | 
			
		|||
 | 
			
		||||
Parfois, il est utile d'afficher des messages de débugage depuis votre [code custom](custom_quantum_functions.md). Le faire est assez simple. Commencez par ajouter `print.h` au début de votre fichier:
 | 
			
		||||
 | 
			
		||||
    #include <print.h>
 | 
			
		||||
```c
 | 
			
		||||
#include "print.h"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Une fois fait, vous pouvez utiliser les fonctions print suivantes:
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,7 +34,9 @@ QMK での全ての利用可能な設定にはデフォルトがあります。
 | 
			
		|||
 | 
			
		||||
これは最初に include されるものの 1 つである C ヘッダファイルで、プロジェクト全体(もし含まれる場合)にわたって持続します。多くの変数をここで設定し、他の場所からアクセスすることができます。`config.h` ファイルでは、以下のもの以外の、他の `config.h`  ファイルやその他のファイルの include をしないでください:
 | 
			
		||||
 | 
			
		||||
    #include "config_common.h"
 | 
			
		||||
```c
 | 
			
		||||
#include "config_common.h"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## ハードウェアオプション
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -187,7 +187,9 @@ void post_process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
 | 
			
		||||
デフォルトでは、QWERTY レイアウトの US キーマップを想定しています; それを変更したい場合(例えば OS がソフトウェア Colemak を使う場合)、キーマップのどこかに以下を含めます:
 | 
			
		||||
 | 
			
		||||
    #include <sendstring_colemak.h>
 | 
			
		||||
```c
 | 
			
		||||
#include "sendstring_colemak.h"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### メモリ内の文字列
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -189,7 +189,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
 | 
			
		||||
最初に、全ての `keymap.c` ファイルを調べ、代わりに `process_record_user` を `process_record_keymap` に置き換えます。この方法では、これらのキーボードでキーボード固有のコードを使用でき、カスタムの "global" キーコードも使うことができます。また、`SAFE_RANGE` を `NEW_SAFE_RANGE` に置き換えて、キーコードが重複しないようにすることもできます。
 | 
			
		||||
 | 
			
		||||
次に、全ての keymap.c ファイルに `#include <name.h>` を追加します。これにより、各キーマップでそれらを再定義することなく新しいキーコードを使うことができます。
 | 
			
		||||
次に、全ての keymap.c ファイルに `#include "<name>.h"` を追加します。これにより、各キーマップでそれらを再定義することなく新しいキーコードを使うことができます。
 | 
			
		||||
 | 
			
		||||
それが完了したら、必要なキーコードの定義を `<name>.h` ファイルに設定します。例えば:
 | 
			
		||||
```c
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -45,7 +45,9 @@ void keyboard_post_init_user(void) {
 | 
			
		|||
 | 
			
		||||
[custom code](ja/custom_quantum_functions.md)内からデバッグメッセージを出力すると便利な場合があります。それはとても簡単です。ファイルの先頭に`print.h`のインクルードを追加します:
 | 
			
		||||
 | 
			
		||||
    #include <print.h>
 | 
			
		||||
```c
 | 
			
		||||
#include "print.h"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
そのあとは、いくつかの異なった print 関数を使用することが出来ます。
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,7 +36,9 @@ Prefer a terminal based solution? [hid_listen](https://www.pjrc.com/teensy/hid_l
 | 
			
		|||
 | 
			
		||||
Sometimes it's useful to print debug messages from within your [custom code](custom_quantum_functions.md). Doing so is pretty simple. Start by including `print.h` at the top of your file:
 | 
			
		||||
 | 
			
		||||
    #include <print.h>
 | 
			
		||||
```c
 | 
			
		||||
#include "print.h"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
After that you can use a few different print functions:
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,7 +34,9 @@ void keyboard_post_init_user(void) {
 | 
			
		|||
 | 
			
		||||
有时用[custom code](custom_quantum_functions.md)发送自定义调试信息很有用. 这么做很简单. 首先在你文件头部包含`print.h`:
 | 
			
		||||
 | 
			
		||||
    #include <print.h>
 | 
			
		||||
```c
 | 
			
		||||
#include "print.h"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
之后,您可以使用一些不同的打印功能:
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue