Tolu Owoso / Mbed 2 deprecated ELEC2645_Project_el18to

Dependencies:   mbed ELEC2645_Project_el18to

main.cpp

Committer:
Tolu__
Date:
2020-04-08
Revision:
3:793a6186b557
Parent:
2:4b2c00ba7f7c
Child:
4:536a62daa959

File content as of revision 3:793a6186b557:

/* 
ELEC2645 Embedded Systems Project
School of Electronic & Electrical Engineering
University of Leeds
2019/20

Name: Toluwalakin
Username: Owoso
Student ID Number: 201231164
Date: 01/04/2020
*/

// includes
#include "mbed.h"
#include "Gamepad.h"
#include "N5110.h"
#include "CCar.h"
#include "GameEngine.h"


Gamepad pad;
N5110 lcd;
CCar user;
GameEngine game;

 
int main(){
    pad.init();
    lcd.init();
    pad.leds_on();
    int i = 1;
    while(1){
        lcd.clear();
        game.run(lcd, pad, user);
        //printf("i = %i\n",i);
        i++;
        lcd.refresh();
        wait_ms(10);
    }
}