Simple fish eat program
Dependencies: mbed mbed-rtos N5110 ShiftReg Tone
Diff: main.cpp
- Revision:
- 7:6f951d175df6
- Parent:
- 6:7aafcaf7cbe2
- Child:
- 8:fe51fbf81dee
--- a/main.cpp Thu Mar 25 11:31:57 2021 +0000 +++ b/main.cpp Thu Mar 25 13:00:19 2021 +0000 @@ -2,6 +2,7 @@ #include "rtos.h" //allows multiple threads to run at the same time: https://os.mbed.com/handbook/RTOS #include "FishEngine.h" +#include "Sound.h" #include "Settings.h" /*TO DO: @@ -15,13 +16,20 @@ //Objects FishEngine fish; +Sound sound; Settings settingsMain; +Thread thread; int main(){ settingsMain.systemINIT( lcd, dac, joystick); //initialise board + thread.start(theme); while(1){ fish.titleSequence(lcd); //calls title sequence fish.mainMenu(lcd, dac, joystick); } +} + +void theme(){ + sound.mainTheme(dac); } \ No newline at end of file