Move small macropad-ish layouts to data driven (#20341)
This commit is contained in:
		
							parent
							
								
									06c5c02804
								
							
						
					
					
						commit
						364c06d939
					
				
					 421 changed files with 2788 additions and 7128 deletions
				
			
		| 
						 | 
				
			
			@ -60,42 +60,3 @@ uint16_t handle_encoder_press(void);
 | 
			
		|||
void calcUpdate(void);
 | 
			
		||||
void calcInput(char input);
 | 
			
		||||
void calcOperands(void);
 | 
			
		||||
 | 
			
		||||
/* This is a shortcut to help you visually see your layout.
 | 
			
		||||
 *
 | 
			
		||||
 * The first section contains all of the arguments representing the physical
 | 
			
		||||
 * layout of the board and position of the keys.
 | 
			
		||||
 *
 | 
			
		||||
 * The second converts the arguments into a two-dimensional array which
 | 
			
		||||
 * represents the switch matrix.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
/* Rubi matrix layout
 | 
			
		||||
 * ,---------------.
 | 
			
		||||
 * |             23|
 | 
			
		||||
 * |---------------|
 | 
			
		||||
 * | 00| 01| 02| 03|
 | 
			
		||||
 * |---------------|
 | 
			
		||||
 * | 10| 11| 12|   |
 | 
			
		||||
 * |-----------| 13|
 | 
			
		||||
 * | 20| 21| 22|   |
 | 
			
		||||
 * |---------------|
 | 
			
		||||
 * | 30| 31| 32|   |
 | 
			
		||||
 * |-----------| 33|
 | 
			
		||||
 * |   41  | 42|   |
 | 
			
		||||
 * `---------------'
 | 
			
		||||
 */
 | 
			
		||||
#define LAYOUT( \
 | 
			
		||||
                       k23, \
 | 
			
		||||
        k00, k01, k02, k03, \
 | 
			
		||||
        k10, k11, k12, k13, \
 | 
			
		||||
        k20, k21, k22, \
 | 
			
		||||
        k30, k31, k32, k33, \
 | 
			
		||||
             k41, k42 \
 | 
			
		||||
) { \
 | 
			
		||||
    { k00,   k01, k02, k03   }, \
 | 
			
		||||
    { k10,   k11, k12, k13   }, \
 | 
			
		||||
    { k20,   k21, k22, k23   }, \
 | 
			
		||||
    { k30,   k31, k32, k33   }, \
 | 
			
		||||
    { KC_NO, k41, k42, KC_NO }  \
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue