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:
- weiway
- Date:
- 2018-05-03
- Revision:
- 9:f82627d119f6
- Parent:
- 0:d557f30e3a95
- Child:
- 13:4026781772cb
File content as of revision 9:f82627d119f6:
/*
ELEC2645 Embedded Systems Project
School of Electronic & Electrical Engineering
University of Leeds
Name: Wei Wei
Username: el15ww
Student ID Number: 200975452
Date:
*/
#include "mbed.h"
#include "Gamepad.h"
#include "N5110.h"
#include "Snake.h"
N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
Gamepad pad;
struct UserInput {
Direction d;
float mag;
};
void init();
void render();
void welcome();