2
0

beeps.h 336 B

123456789101112131415
  1. #include <stdint.h>
  2. #include <stdbool.h>
  3. #include <avr/io.h>
  4. #include <util/delay.h>
  5. bool playing_notes;
  6. void play_sample(uint8_t * s, uint16_t l, bool r);
  7. void play_note(double freq, int vol);
  8. void stop_note(double freq);
  9. void stop_all_notes();
  10. void init_notes();
  11. void play_notes(float (*np)[][2], uint8_t n_length, bool n_repeat);