Migrate dip switch config to info.json - keychron (#23037)
This commit is contained in:
		
							parent
							
								
									e7b84e1cf6
								
							
						
					
					
						commit
						137938b67a
					
				
					 87 changed files with 117 additions and 466 deletions
				
			
		| 
						 | 
				
			
			@ -16,12 +16,6 @@
 | 
			
		|||
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
/* Disable DIP switch in matrix data */
 | 
			
		||||
#define MATRIX_MASKED
 | 
			
		||||
 | 
			
		||||
/* DIP switch */
 | 
			
		||||
#define DIP_SWITCH_MATRIX_GRID {{ 3, 4 }}
 | 
			
		||||
 | 
			
		||||
/* RGB Matrix Driver Configuration */
 | 
			
		||||
#define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_GND
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,6 +19,9 @@
 | 
			
		|||
        "nkro": true,
 | 
			
		||||
        "rgb_matrix": true
 | 
			
		||||
    },
 | 
			
		||||
    "dip_switch": {
 | 
			
		||||
        "matrix_grid": [ [3, 4] ]
 | 
			
		||||
    },
 | 
			
		||||
    "matrix_pins": {
 | 
			
		||||
        "cols": ["A10", "A9", "A8", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "A2", "A1", "A0", "C15", "C14"],
 | 
			
		||||
        "rows": ["B3", "A15", "A14", "A13"]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -16,13 +16,6 @@
 | 
			
		|||
 | 
			
		||||
#include "quantum.h"
 | 
			
		||||
 | 
			
		||||
const matrix_row_t matrix_mask[] = {
 | 
			
		||||
    0b111111111111111,
 | 
			
		||||
    0b111111111111111,
 | 
			
		||||
    0b111111111111111,
 | 
			
		||||
    0b111111111101111,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#ifdef DIP_SWITCH_ENABLE
 | 
			
		||||
bool dip_switch_update_kb(uint8_t index, bool active) {
 | 
			
		||||
    if (!dip_switch_update_user(index, active)) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue