mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-11-03 23:02:34 +01:00 
			
		
		
		
	More samples, some not entirely working yet.
I am trying to mess around with MACRO(), but it is not there quite yet...
This commit is contained in:
		
							parent
							
								
									41c17baccf
								
							
						
					
					
						commit
						91c4681656
					
				@ -44,6 +44,15 @@
 | 
				
			|||||||
   - What's the keystroke to get from X to console these days?
 | 
					   - What's the keystroke to get from X to console these days?
 | 
				
			||||||
   - I do indeed want a sweet number pad!
 | 
					   - I do indeed want a sweet number pad!
 | 
				
			||||||
   - A layer for doing console switching would not be a bad idea
 | 
					   - A layer for doing console switching would not be a bad idea
 | 
				
			||||||
 | 
					   - Random data generator
 | 
				
			||||||
 | 
					     - A key that generates values in the range 0-9 at random
 | 
				
			||||||
 | 
					     - A key that generates values in the range a-z at random
 | 
				
			||||||
 | 
					     - A key that generates values in the range a-z,A-Z,0-9 at random
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   - Figure out the MACRO example in https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/doc/keymap.md
 | 
				
			||||||
 | 
					     - section 2.3.2
 | 
				
			||||||
 | 
					     - where does the HELLO come from???
 | 
				
			||||||
 | 
					     - What are the types of the T() calls? 
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
enum layers {
 | 
					enum layers {
 | 
				
			||||||
@ -130,12 +139,16 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
 | 
				
			|||||||
  case 0:
 | 
					  case 0:
 | 
				
			||||||
    if (record->event.pressed) {
 | 
					    if (record->event.pressed) {
 | 
				
			||||||
      register_code(KC_RSFT);
 | 
					      register_code(KC_RSFT);
 | 
				
			||||||
            #ifdef BACKLIGHT_ENABLE
 | 
					#ifdef BACKLIGHT_ENABLE
 | 
				
			||||||
      backlight_step();
 | 
					      backlight_step();
 | 
				
			||||||
            #endif
 | 
					#endif
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      unregister_code(KC_RSFT);
 | 
					      unregister_code(KC_RSFT);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					  case 2550:
 | 
				
			||||||
 | 
					    return (record->event.pressed ? 
 | 
				
			||||||
 | 
						    MACRO( I(55), T(C), T(B), T(B), T(R), T(O), T(W), T(N), T(E)) :
 | 
				
			||||||
 | 
						    MACRO_NONE );
 | 
				
			||||||
    break;
 | 
					    break;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  return MACRO_NONE;
 | 
					  return MACRO_NONE;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user