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.

30 lines
598 B

  1. #include "lets_split.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_NOTE_ARRAY(tone_startup, false, 0);
  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. PLAY_NOTE_ARRAY(tone_goodbye, false, 0);
  21. _delay_ms(150);
  22. stop_all_notes();
  23. }