Onekey cleanup (#13786)
This commit is contained in:
		
							parent
							
								
									cfca970718
								
							
						
					
					
						commit
						d1db008745
					
				
					 51 changed files with 121 additions and 118 deletions
				
			
		
							
								
								
									
										20
									
								
								keyboards/handwired/onekey/keymaps/console/keymap.c
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								keyboards/handwired/onekey/keymaps/console/keymap.c
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
#include QMK_KEYBOARD_H
 | 
			
		||||
 | 
			
		||||
enum custom_keycodes {
 | 
			
		||||
    KC_HELLO = SAFE_RANGE,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
 | 
			
		||||
    LAYOUT_ortho_1x1(KC_HELLO)
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		||||
    switch (keycode) {
 | 
			
		||||
        case KC_HELLO:
 | 
			
		||||
            if (record->event.pressed) {
 | 
			
		||||
                printf("Hello world!\n");
 | 
			
		||||
            }
 | 
			
		||||
            return false;
 | 
			
		||||
    }
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue