parent
							
								
									758a8c64e9
								
							
						
					
					
						commit
						1a0bac8bcc
					
				
					 55 changed files with 23760 additions and 23923 deletions
				
			
		| 
						 | 
				
			
			@ -164,18 +164,20 @@ const uint16_t PROGMEM fn_actions[] = {
 | 
			
		|||
};
 | 
			
		||||
 | 
			
		||||
#ifdef AUDIO_ENABLE
 | 
			
		||||
float start_up[][2] = {
 | 
			
		||||
  {440.0*pow(2.0,(14)/12.0), 20},
 | 
			
		||||
  {440.0*pow(2.0,(26)/12.0), 8},
 | 
			
		||||
  {440.0*pow(2.0,(18)/12.0), 20},
 | 
			
		||||
  {440.0*pow(2.0,(26)/12.0), 8}
 | 
			
		||||
float tone_startup[][2] = {
 | 
			
		||||
  {NOTE_B5, 20},
 | 
			
		||||
  {NOTE_B6, 8},
 | 
			
		||||
  {NOTE_DS6, 20},
 | 
			
		||||
  {NOTE_B6, 8}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
float tone_qwerty[][2]     = SONG(QWERTY_SOUND);
 | 
			
		||||
float tone_dvorak[][2]     = SONG(DVORAK_SOUND);
 | 
			
		||||
float tone_colemak[][2]    = SONG(COLEMAK_SOUND);
 | 
			
		||||
 | 
			
		||||
float goodbye[][2] = SONG(GOODBYE_SOUND);
 | 
			
		||||
float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
 | 
			
		||||
 | 
			
		||||
float music_scale[][2]     = SONG(MUSIC_SCALE_SOUND);
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
void persistant_default_layer_set(uint16_t default_layer) {
 | 
			
		||||
| 
						 | 
				
			
			@ -242,20 +244,35 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
 | 
			
		|||
    return MACRO_NONE;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
void matrix_init_user(void) {
 | 
			
		||||
  #ifdef AUDIO_ENABLE
 | 
			
		||||
    _delay_ms(20); // gets rid of tick
 | 
			
		||||
    PLAY_NOTE_ARRAY(start_up, false, 0);
 | 
			
		||||
  #endif
 | 
			
		||||
    #ifdef AUDIO_ENABLE
 | 
			
		||||
        startup_user();
 | 
			
		||||
    #endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#ifdef AUDIO_ENABLE
 | 
			
		||||
 | 
			
		||||
void play_goodbye_tone()
 | 
			
		||||
void startup_user()
 | 
			
		||||
{
 | 
			
		||||
  PLAY_NOTE_ARRAY(goodbye, false, 0);
 | 
			
		||||
  _delay_ms(150);
 | 
			
		||||
    _delay_ms(20); // gets rid of tick
 | 
			
		||||
    PLAY_NOTE_ARRAY(tone_startup, false, 0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void shutdown_user()
 | 
			
		||||
{
 | 
			
		||||
    PLAY_NOTE_ARRAY(tone_goodbye, false, 0);
 | 
			
		||||
    _delay_ms(150);
 | 
			
		||||
    stop_all_notes();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void music_on_user(void)
 | 
			
		||||
{
 | 
			
		||||
    music_scale_user();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void music_scale_user(void)
 | 
			
		||||
{
 | 
			
		||||
    PLAY_NOTE_ARRAY(music_scale, false, 0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue