Game for Leeds University Gamepad for the FRDM-K64F: Game is a RPG Horror Title.

Dependencies:   mbed FATFileSystem

main.cpp

Committer:
rottenegg
Date:
2019-05-05
Revision:
11:7f3e9bc7366d
Parent:
10:4fda7b01484a
Child:
12:ff8d26124c38

File content as of revision 11:7f3e9bc7366d:

/*
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"
#include "Bitmap.h"
#include "CaMove.h"
#include "SceneCreator.h"

SDFileSystem sd(PTE3, PTE1, PTE2, PTE4, "sd");
N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
CaMove CM(PTB9,PTB11,PTB10);
SceneCreator SNC(PTD0);
Timer Time;

int main() {
    lcd.init();
    Time.start();
    SNC.Scenesp(lcd,CM,0,40,20,Fd,0);
    Time.stop();
    int Random = (int)Time.read();
    Random = Random % 3;
    SNC.Scenesp(lcd,CM,1,35,29,Fd,Random);
    SNC.Scenesp(lcd,CM,2,61,17,Lt,Random);
    SNC.Scenesp(lcd,CM,3,58,26,Bd,0);
    
}