Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
main.cpp
- Committer:
- batJoro
- Date:
- 2019-04-10
- Revision:
- 4:2deeeeb6c1e1
- Parent:
- 3:f686f6d7bdff
- Child:
- 5:5e92567d0a44
File content as of revision 4:2deeeeb6c1e1:
#include "mbed.h"
#include "Gamepad.h"
#include "N5110.h"
#include "menu.h"
/*
ELEC2645 Embedded Systems Project
School of Electronic & Electrical Engineering University of Leeds
Name: Dobri Tsvetkov
Username: el17dtt
Student ID Number: 201154059
Date: 12.03.2019
*/
/////////////// structs /////////////////
/////////////// objects ///////////////
N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
Gamepad gamepad;
///////////// prototypes ///////////////
void init();
void welcome();
///////////// functions ////////////////
int main() {
init();
while(true) {
welcome();
}
}
// initialies all classes and libraries
void init()
{
// need to initialise LCD and Gamepad
lcd.init();
gamepad.init();
gamepad.leds_on();
lcd.setContrast(0.4);
}
void welcome() {
Menu menu;
menu.intro(lcd);
}