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 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);
}
}