summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authordexter93 <d3xter93@gmail.com>2022-12-08 18:09:01 +0200
committerGitHub <noreply@github.com>2022-12-09 03:09:01 +1100
commitf2a8a13dbad220cfb0dfbd72a90492a15a2e58bb (patch)
tree92c2389bba9eb8faa00b13e68b57f8196e87fc84 /docs
parent6668a0adb0b482a4b9adfab6693fc1b98a7eb16c (diff)
Core: Support inverted scan logic for optical switches (#19053)
Diffstat (limited to 'docs')
-rw-r--r--docs/porting_your_keyboard_to_qmk.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/porting_your_keyboard_to_qmk.md b/docs/porting_your_keyboard_to_qmk.md
index 484d079ea6..05054e25c7 100644
--- a/docs/porting_your_keyboard_to_qmk.md
+++ b/docs/porting_your_keyboard_to_qmk.md
@@ -94,6 +94,18 @@ The next section of the `info` file deals with your keyboard's matrix. The first
The size of the `matrix_pins.cols` and `matrix_pins.rows` arrays infer the size of the matrix (previously `MATRIX_ROWS` and `MATRIX_COLS`).
+## Configuration Options
+
+To invert the keypress logic, configure `input_pressed_state`:
+
+```json
+ "matrix_pins": {
+ "input_pressed_state": 1,
+},
+```
+
+This configures state of the GPIO pins when the key is pressed - `1` for high, `0` for low. Default value is `0`.
+
Finally, you can specify the direction your diodes point. This can be `COL2ROW` or `ROW2COL`.
```json