You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
596 B

  1. #include "quantum.h"
  2. #ifdef AUDIO_ENABLE
  3. float tone_startup[][2] = SONG(STARTUP_SOUND);
  4. float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
  5. #endif
  6. void matrix_init_kb(void) {
  7. #ifdef AUDIO_ENABLE
  8. _delay_ms(20); // gets rid of tick
  9. PLAY_SONG(tone_startup);
  10. #endif
  11. // // green led on
  12. // DDRD |= (1<<5);
  13. // PORTD &= ~(1<<5);
  14. // // orange led on
  15. // DDRB |= (1<<0);
  16. // PORTB &= ~(1<<0);
  17. matrix_init_user();
  18. };
  19. void shutdown_user(void) {
  20. #ifdef AUDIO_ENABLE
  21. PLAY_SONG(tone_goodbye);
  22. _delay_ms(150);
  23. stop_all_notes();
  24. #endif
  25. }