Simple fish eat program

Dependencies:   mbed mbed-rtos N5110 ShiftReg Tone

Committer:
el18a2k
Date:
Wed Apr 21 15:24:31 2021 +0000
Revision:
12:20ac766b3175
Parent:
3:8c9c9794bcf2
Child:
13:183bd19f3d7d
lots of bugs

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el18a2k 3:8c9c9794bcf2 1 #ifndef SOUND_H
el18a2k 3:8c9c9794bcf2 2 #define SOUND_H
el18a2k 3:8c9c9794bcf2 3
el18a2k 3:8c9c9794bcf2 4 #include "Tone.h"
el18a2k 3:8c9c9794bcf2 5
el18a2k 3:8c9c9794bcf2 6 class Sound {
el18a2k 3:8c9c9794bcf2 7
el18a2k 3:8c9c9794bcf2 8 public:
el18a2k 3:8c9c9794bcf2 9
el18a2k 3:8c9c9794bcf2 10 //defines main theme
el18a2k 3:8c9c9794bcf2 11 void mainTheme(Tone &dac);
el18a2k 12:20ac766b3175 12
el18a2k 12:20ac766b3175 13 //plays sound when score increases
el18a2k 12:20ac766b3175 14 void pointScore(Tone &dac);
el18a2k 12:20ac766b3175 15
el18a2k 12:20ac766b3175 16 //plays sound when life lost
el18a2k 12:20ac766b3175 17 void lifeLoss(Tone &dac);
el18a2k 12:20ac766b3175 18
el18a2k 12:20ac766b3175 19 private:
el18a2k 12:20ac766b3175 20 int n;
el18a2k 3:8c9c9794bcf2 21 };
el18a2k 3:8c9c9794bcf2 22
el18a2k 3:8c9c9794bcf2 23 #endif