Yang Zhenye 201199680

Dependencies:   mbed

main.cpp

Committer:
yangzhenye
Date:
2020-05-15
Revision:
9:a5a82b3d1102
Parent:
8:c02c278320c0

File content as of revision 9:a5a82b3d1102:

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

Name:Yang Zhenye
Username:el17zy
Student ID Number:201199680
Date:2020/5/11
*/

#include "mbed.h"
#include "Gamepad.h"
#include "N5110.h"
#include "Menu.h"


// objects
Gamepad gamepad;
N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
Menu _menu;

int main()
{ gamepad.init();
  _menu.init(); 
  lcd.init(); 
  lcd.normalMode();      
  lcd.setBrightness(0.5);
  while(1) {
    lcd.clear();  
    _menu.run_engine(lcd, gamepad);
    lcd.refresh();
    wait(0.01); }    
}