forked from mirrors/qmk_userspace
		
	Rework input_pressed_state docs (#19267)
* Revert changes to porting * Update reference_info_json.md
This commit is contained in:
		
					parent
					
						
							
								6ae0f83138
							
						
					
				
			
			
				commit
				
					
						6133b08e73
					
				
			
		
					 2 changed files with 15 additions and 13 deletions
				
			
		| 
						 | 
					@ -94,18 +94,6 @@ 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`). 
 | 
					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`.
 | 
					Finally, you can specify the direction your diodes point. This can be `COL2ROW` or `ROW2COL`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```json
 | 
					```json
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -113,6 +113,20 @@ Example:
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Additional Options
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					* `input_pressed_state`
 | 
				
			||||||
 | 
					    * This configures state of the GPIO pins when the key is pressed - `1` for high, `0` for low
 | 
				
			||||||
 | 
					    * Default: `0`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Example:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```json
 | 
				
			||||||
 | 
					    "matrix_pins": {
 | 
				
			||||||
 | 
					        "input_pressed_state": 1,
 | 
				
			||||||
 | 
					},
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Non-RGB LED Lighting
 | 
					## Non-RGB LED Lighting
 | 
				
			||||||
 | 
					
 | 
				
			||||||
This section controls basic 2-pin LEDs, which typically pass through keyswitches and are soldered into the PCB, or are placed in PCB sockets.
 | 
					This section controls basic 2-pin LEDs, which typically pass through keyswitches and are soldered into the PCB, or are placed in PCB sockets.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue