void speaker_playShoot(void) { count = 0; period = SPEAKER_SHOOT_PERIOD; speaker_pause(); speaker_setPeriod(SPEAKER_SHOOT_PERIOD); speaker_attachInterrupt(SPEAKER_CHANNEL, speaker_shoot); speaker_refresh(); speaker_resume(); }
void speaker_playHit(void){ gps_disableInterrupt(); speaker_count = 0; speaker_period = SPEAKER_HIT_PERIOD; speaker_pause(); speaker_setPeriod(SPEAKER_HIT_PERIOD); speaker_attachInterrupt(SPEAKER_CHANNEL, speaker_hit); speaker_refresh(); speaker_resume(); }