rev2.c 788 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. <<<<<<< HEAD
  21. #ifdef AUDIO_ENABLE
  22. PLAY_NOTE_ARRAY(tone_goodbye, false, 0);
  23. _delay_ms(150);
  24. stop_all_notes();
  25. #endif
  26. =======
  27. PLAY_NOTE_ARRAY(tone_goodbye, false, 0);
  28. _delay_ms(150);
  29. stop_all_notes();
  30. >>>>>>> bce6e52391da7c5f620c96a91857940f0dee19df
  31. }