[Doc]: Correct Markdown syntax errors. (#22511)
This commit is contained in:
parent
b7df75e47f
commit
0fb3aaec8e
5 changed files with 16 additions and 15 deletions
|
@ -345,7 +345,6 @@ is not set, all other layers will reference themselves.
|
||||||
}
|
}
|
||||||
return layer; // important if default is not in case.
|
return layer; // important if default is not in case.
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
The equivalent definition using the combo macros is this:
|
The equivalent definition using the combo macros is this:
|
||||||
|
|
|
@ -213,7 +213,7 @@ These configuration options should be placed in `config.h`. Example:
|
||||||
|`OLED_SCROLL_TIMEOUT_RIGHT`|*Not defined* |Scroll timeout direction is right when defined, left when undefined. |
|
|`OLED_SCROLL_TIMEOUT_RIGHT`|*Not defined* |Scroll timeout direction is right when defined, left when undefined. |
|
||||||
|`OLED_TIMEOUT` |`60000` |Turns off the OLED screen after 60000ms of screen update inactivity. Helps reduce OLED Burn-in. Set to 0 to disable. |
|
|`OLED_TIMEOUT` |`60000` |Turns off the OLED screen after 60000ms of screen update inactivity. Helps reduce OLED Burn-in. Set to 0 to disable. |
|
||||||
|`OLED_UPDATE_INTERVAL` |`0` (`50` for split keyboards) |Set the time interval for updating the OLED display in ms. This will improve the matrix scan rate. |
|
|`OLED_UPDATE_INTERVAL` |`0` (`50` for split keyboards) |Set the time interval for updating the OLED display in ms. This will improve the matrix scan rate. |
|
||||||
|`OLED_UPDATE_PROCESS_LIMIT'|`1` |Set the number of dirty blocks to render per loop. Increasing may degrade performance. |
|
|`OLED_UPDATE_PROCESS_LIMIT`|`1` |Set the number of dirty blocks to render per loop. Increasing may degrade performance. |
|
||||||
|
|
||||||
### I2C Configuration
|
### I2C Configuration
|
||||||
|Define |Default |Description |
|
|Define |Default |Description |
|
||||||
|
|
|
@ -801,8 +801,10 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
#### Set different target layer when a particular layer is active:
|
#### Set different target layer when a particular layer is active:
|
||||||
|
|
||||||
The below code will change the auto mouse layer target to `_MOUSE_LAYER_2` when `_DEFAULT_LAYER_2` is highest default layer state.
|
The below code will change the auto mouse layer target to `_MOUSE_LAYER_2` when `_DEFAULT_LAYER_2` is highest default layer state.
|
||||||
*NOTE: that `auto_mouse_layer_off` is used here instead of `remove_auto_mouse_layer` as `default_layer_state_set_*` stack is separate from the `layer_state_set_*` stack* if something similar was to be done in `layer_state_set_user `state = remove_auto_mouse_layer(state, false)` should be used instead
|
|
||||||
*ADDITIONAL NOTE: `AUTO_MOUSE_TARGET_LAYER` is checked if already set to avoid deactivating the target layer unless needed*
|
*NOTE: that `auto_mouse_layer_off` is used here instead of `remove_auto_mouse_layer` as `default_layer_state_set_*` stack is separate from the `layer_state_set_*` stack*, if something similar was to be done in `layer_state_set_user`, `state = remove_auto_mouse_layer(state, false)` should be used instead.
|
||||||
|
|
||||||
|
*ADDITIONAL NOTE: `AUTO_MOUSE_TARGET_LAYER` is checked if already set to avoid deactivating the target layer unless needed*.
|
||||||
|
|
||||||
```c
|
```c
|
||||||
// in keymap.c
|
// in keymap.c
|
||||||
|
|
|
@ -205,7 +205,7 @@ This sets the pin to be used for serial communication. If you're not using seria
|
||||||
However, if you are using serial and I<sup>2</sup>C on the board, you will need to set this, and to something other than D0 and D1 (as these are used for I<sup>2</sup>C communication).
|
However, if you are using serial and I<sup>2</sup>C on the board, you will need to set this, and to something other than D0 and D1 (as these are used for I<sup>2</sup>C communication).
|
||||||
|
|
||||||
```c
|
```c
|
||||||
#define SELECT_SOFT_SERIAL_SPEED {#}`
|
#define SELECT_SOFT_SERIAL_SPEED {#}
|
||||||
```
|
```
|
||||||
|
|
||||||
If you're having issues with serial communication, you can change this value, as it controls the communication speed for serial. The default is 1, and the possible values are:
|
If you're having issues with serial communication, you can change this value, as it controls the communication speed for serial. The default is 1, and the possible values are:
|
||||||
|
|
|
@ -143,13 +143,13 @@ Replace `username.json` with the JSON file name that was downloaded from [QMK Co
|
||||||
|
|
||||||
If you have completed all steps correctly, the folder `qmk_keymap/` will contain the following files:
|
If you have completed all steps correctly, the folder `qmk_keymap/` will contain the following files:
|
||||||
```
|
```
|
||||||
|-- .github
|
├── .github
|
||||||
| `-- workflows
|
│ └── workflows
|
||||||
| `-- build.yml
|
│ └── build.yml
|
||||||
|-- rules.mk
|
├── rules.mk
|
||||||
|-- config.h
|
├── config.h
|
||||||
|-- source.c
|
├── source.c
|
||||||
|-- username.json
|
└── username.json
|
||||||
```
|
```
|
||||||
|
|
||||||
To commit and push them into GitHub, run the following commands (replacing `gh-username` with your GitHub user name):
|
To commit and push them into GitHub, run the following commands (replacing `gh-username` with your GitHub user name):
|
||||||
|
|
Loading…
Reference in a new issue