aboutsummaryrefslogtreecommitdiff
path: root/docs/feature_dip_switch.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/feature_dip_switch.md')
-rw-r--r--docs/feature_dip_switch.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/feature_dip_switch.md b/docs/feature_dip_switch.md
index bce47fed8..15e449c4c 100644
--- a/docs/feature_dip_switch.md
+++ b/docs/feature_dip_switch.md
@@ -7,9 +7,17 @@ DIP switches are supported by adding this to your `rules.mk`:
7and this to your `config.h`: 7and this to your `config.h`:
8 8
9```c 9```c
10// Connects each switch in the dip switch to the GPIO pin of the MCU
10#define DIP_SWITCH_PINS { B14, A15, A10, B9 } 11#define DIP_SWITCH_PINS { B14, A15, A10, B9 }
11``` 12```
12 13
14or
15
16```c
17// Connect each switch in the DIP switch to an unused intersections in the key matrix.
18#define DIP_SWITCH_MATRIX_GRID { {0,6}, {1,6}, {2,6} } // List of row and col pairs
19```
20
13## Callbacks 21## Callbacks
14 22
15The callback functions can be inserted into your `<keyboard>.c`: 23The callback functions can be inserted into your `<keyboard>.c`:
@@ -87,4 +95,10 @@ void dip_switch_update_mask_user(uint32_t state) {
87 95
88## Hardware 96## Hardware
89 97
98### Connects each switch in the dip switch to the GPIO pin of the MCU
99
90One side of the DIP switch should be wired directly to the pin on the MCU, and the other side to ground. It should not matter which side is connected to which, as it should be functionally the same. 100One side of the DIP switch should be wired directly to the pin on the MCU, and the other side to ground. It should not matter which side is connected to which, as it should be functionally the same.
101
102### Connect each switch in the DIP switch to an unused intersections in the key matrix.
103
104As with the keyswitch, a diode and DIP switch connect the ROW line to the COL line.