diff options
| author | XScorpion2 <rcalt2vt@gmail.com> | 2021-08-19 12:39:15 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-19 18:39:15 +0100 |
| commit | 9d1c98c891bb8e1e98dc618e0693a7efff23a22e (patch) | |
| tree | b3ceeb02861a2e94c248c1e538e9b8db456ffa47 /docs | |
| parent | af3673a5b6985f4364210c3656f323624c2e1962 (diff) | |
| download | qmk_firmware-9d1c98c891bb8e1e98dc618e0693a7efff23a22e.tar.gz qmk_firmware-9d1c98c891bb8e1e98dc618e0693a7efff23a22e.zip | |
Added right vs left specific pin assignments for dip switch (#13074)
* Added right vs left specific pin assignments for dip switch
* Update feature_dip_switch.md
* Ran formatting tools
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/feature_dip_switch.md | 3 | ||||
| -rw-r--r-- | docs/ja/feature_dip_switch.md | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/docs/feature_dip_switch.md b/docs/feature_dip_switch.md index 43a6a3faf..6fbe91657 100644 --- a/docs/feature_dip_switch.md +++ b/docs/feature_dip_switch.md | |||
| @@ -9,6 +9,8 @@ and this to your `config.h`: | |||
| 9 | ```c | 9 | ```c |
| 10 | // Connects each switch in the dip switch to the GPIO pin of the MCU | 10 | // Connects each switch in the dip switch to the GPIO pin of the MCU |
| 11 | #define DIP_SWITCH_PINS { B14, A15, A10, B9 } | 11 | #define DIP_SWITCH_PINS { B14, A15, A10, B9 } |
| 12 | // For split keyboards, you can separately define the right side pins | ||
| 13 | #define DIP_SWITCH_PINS_RIGHT { ... } | ||
| 12 | ``` | 14 | ``` |
| 13 | 15 | ||
| 14 | or | 16 | or |
| @@ -96,7 +98,6 @@ bool dip_switch_update_mask_user(uint32_t state) { | |||
| 96 | } | 98 | } |
| 97 | ``` | 99 | ``` |
| 98 | 100 | ||
| 99 | |||
| 100 | ## Hardware | 101 | ## Hardware |
| 101 | 102 | ||
| 102 | ### Connects each switch in the dip switch to the GPIO pin of the MCU | 103 | ### Connects each switch in the dip switch to the GPIO pin of the MCU |
diff --git a/docs/ja/feature_dip_switch.md b/docs/ja/feature_dip_switch.md index a5436779f..8d0eeafa5 100644 --- a/docs/ja/feature_dip_switch.md +++ b/docs/ja/feature_dip_switch.md | |||
| @@ -14,6 +14,8 @@ DIP スイッチは、以下を `rules.mk` に追加することでサポート | |||
| 14 | ```c | 14 | ```c |
| 15 | // Connects each switch in the dip switch to the GPIO pin of the MCU | 15 | // Connects each switch in the dip switch to the GPIO pin of the MCU |
| 16 | #define DIP_SWITCH_PINS { B14, A15, A10, B9 } | 16 | #define DIP_SWITCH_PINS { B14, A15, A10, B9 } |
| 17 | // For split keyboards, you can separately define the right side pins | ||
| 18 | #define DIP_SWITCH_PINS_RIGHT { ... } | ||
| 17 | ``` | 19 | ``` |
| 18 | 20 | ||
| 19 | あるいは | 21 | あるいは |
