update with qmk master (#2887)
* add splitography * trim keymap.c * add Makefile * rename Makefile to rules.mk * thumb key definition * thumb key definition * thumb key definition * blue/orange layer swap, double qwerty steno exit * fix TxBolt 1-3 key chord suppression (PREVENT_STUCK_MODIFIERS) * add audio control * beakl 8+10, dvorak (standard and splitography wide variant) * beakl 8+10, dvorak (standard and splitography wide variant) * shift layer home blocks * regex layer key changes * tilde align symbol navigation and regex layer * splitography/planck code break out into common .h segments * splitography/planck code break out into common .h segments * splitography common library * splitography common library * splitography beakl altgr home row * updating with qmk master
This commit is contained in:
		
							parent
							
								
									5170398479
								
							
						
					
					
						commit
						50b5c6ad72
					
				
					 68 changed files with 8574 additions and 0 deletions
				
			
		
							
								
								
									
										56
									
								
								keyboards/planck/keymaps/sdothum/common/init.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								keyboards/planck/keymaps/sdothum/common/init.h
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,56 @@
 | 
			
		|||
 | 
			
		||||
// ....................................................................... Audio
 | 
			
		||||
 | 
			
		||||
void matrix_init_user(void)
 | 
			
		||||
{
 | 
			
		||||
#ifdef STENO_ENABLE
 | 
			
		||||
  steno_set_mode(STENO_MODE_BOLT);          // or STENO_MODE_GEMINI
 | 
			
		||||
#endif
 | 
			
		||||
#ifdef AUDIO_ENABLE
 | 
			
		||||
  startup_user();
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#ifdef AUDIO_ENABLE
 | 
			
		||||
#ifdef BACKLIGHT_ENABLE
 | 
			
		||||
void led_set_user(uint8_t usb_led)
 | 
			
		||||
{
 | 
			
		||||
  static uint8_t old_usb_led = 0;
 | 
			
		||||
  _delay_ms(10);                            // gets rid of tick
 | 
			
		||||
  if (!is_playing_notes()) {
 | 
			
		||||
    if ((usb_led & (1<<USB_LED_CAPS_LOCK)) && !(old_usb_led & (1<<USB_LED_CAPS_LOCK))) {
 | 
			
		||||
      // if capslock LED is turning on
 | 
			
		||||
      PLAY_SONG(song_caps_on);
 | 
			
		||||
    }
 | 
			
		||||
    else if (!(usb_led & (1<<USB_LED_CAPS_LOCK)) && (old_usb_led & (1<<USB_LED_CAPS_LOCK))) {
 | 
			
		||||
      // if capslock LED is turning off
 | 
			
		||||
      PLAY_SONG(song_caps_off);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  old_usb_led = usb_led;
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
void startup_user(void)
 | 
			
		||||
{
 | 
			
		||||
  _delay_ms(20);                            // gets rid of tick
 | 
			
		||||
  PLAY_SONG(song_startup);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void shutdown_user(void)
 | 
			
		||||
{
 | 
			
		||||
  PLAY_SONG(song_goodbye);
 | 
			
		||||
  _delay_ms(150);
 | 
			
		||||
  stop_all_notes();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void music_on_user(void)
 | 
			
		||||
{
 | 
			
		||||
  music_scale_user();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void music_scale_user(void)
 | 
			
		||||
{
 | 
			
		||||
  PLAY_SONG(music_scale);
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue