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
This commit is contained in:
XScorpion2 2021-08-19 12:39:15 -05:00 committed by GitHub
parent af3673a5b6
commit 9d1c98c891
Failed to generate hash of commit
3 changed files with 28 additions and 3 deletions

View file

@ -9,6 +9,8 @@ and this to your `config.h`:
```c
// Connects each switch in the dip switch to the GPIO pin of the MCU
#define DIP_SWITCH_PINS { B14, A15, A10, B9 }
// For split keyboards, you can separately define the right side pins
#define DIP_SWITCH_PINS_RIGHT { ... }
```
or
@ -96,7 +98,6 @@ bool dip_switch_update_mask_user(uint32_t state) {
}
```
## Hardware
### Connects each switch in the dip switch to the GPIO pin of the MCU

View file

@ -14,6 +14,8 @@ DIP スイッチは、以下を `rules.mk` に追加することでサポート
```c
// Connects each switch in the dip switch to the GPIO pin of the MCU
#define DIP_SWITCH_PINS { B14, A15, A10, B9 }
// For split keyboards, you can separately define the right side pins
#define DIP_SWITCH_PINS_RIGHT { ... }
```
あるいは