Nano refactor and Configurator update (#3275)
* Matrix refactor * Keymap refactor * Configurator support
This commit is contained in:
		
							parent
							
								
									738eab0bb1
								
							
						
					
					
						commit
						29954efd06
					
				
					 3 changed files with 24 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -1,23 +1,19 @@
 | 
			
		|||
#include "nano.h"
 | 
			
		||||
#include QMK_KEYBOARD_H
 | 
			
		||||
 | 
			
		||||
#define _MAIN 0
 | 
			
		||||
#define _FN 1
 | 
			
		||||
 | 
			
		||||
#define KC_ KC_TRNS
 | 
			
		||||
#define _______ KC_TRNS
 | 
			
		||||
#define KC_X0 LT(_FN, KC_ESC)
 | 
			
		||||
#define KC_RTOG RGB_TOG
 | 
			
		||||
#define KC_RMOD RGB_MOD
 | 
			
		||||
#define KC_RHUI RGB_HUI
 | 
			
		||||
#define KC_RHUD RGB_HUD
 | 
			
		||||
 | 
			
		||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 | 
			
		||||
  [_MAIN] = LAYOUT(
 | 
			
		||||
     VOLU,MPLY,MPRV,PGUP,
 | 
			
		||||
     VOLD,MUTE,MNXT,PGDN
 | 
			
		||||
     KC_VOLU, KC_MPLY, KC_MPRV, KC_PGUP,
 | 
			
		||||
     KC_VOLD, KC_MUTE, KC_MNXT, KC_PGDN
 | 
			
		||||
  ),
 | 
			
		||||
 | 
			
		||||
  [_FN] = LAYOUT(
 | 
			
		||||
      F  ,    ,RHUI,    ,
 | 
			
		||||
     RTOG,RMOD,RHUD,
 | 
			
		||||
     KC_F,    _______, RGB_HUI, _______,
 | 
			
		||||
     RGB_TOG, RGB_MOD, RGB_HUD, _______
 | 
			
		||||
  )
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue