
Game for Leeds University Gamepad for the FRDM-K64F: Game is a RPG Horror Title.
Dependencies: mbed FATFileSystem
main.cpp
- Committer:
- rottenegg
- Date:
- 2019-04-18
- Revision:
- 3:63cdd5cab431
- Parent:
- 0:af8236e47084
- Child:
- 4:34bf3587cf42
File content as of revision 3:63cdd5cab431:
/* ELEC2645 Embedded Systems Project School of Electronic & Electrical Engineering University of Leeds Name:Saad Tayyab Username:el17st Student ID Number:201145512 Date: 18/04/2019 */ #include "mbed.h" #include "WDplayer.h" #include "SDFileSystem.h" PwmOut dac(PTC10); SDFileSystem sd(PTE3, PTE1, PTE2, PTE4, "sd"); int main() { const char *mp3p; mp3p = "/sd/Game-Files/AudBin/play1.wav"; WDplayer mp3; mp3.intWD(mp3p,dac); //set up pwm //mp3.WDplay(dac); while(1) { mp3.WDtck(dac); wait(mp3.get_pwmfreq() / 2.0f); } }