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.
main.cpp
- Committer:
- thestudent
- Date:
- 2020-03-24
- Revision:
- 4:01b50048c8ad
- Parent:
- 3:12b2bc47a0df
- Child:
- 5:8e3d6cbc8b02
File content as of revision 4:01b50048c8ad:
/* ELEC2645 Embedded Systems Project School of Electronic & Electrical Engineering University of Leeds 2019/20 Name:Arturs Kolovskis Username:el18ak Student ID Number: 201253737 Date:08.03.2020 */ // includes #include "mbed.h" #include "Gamepad.h" #include "N5110.h" #include "Objects.h" // objects Gamepad pad; N5110 lcd; Objects objects; //functions void initialise(); int main() { initialise(); while(1){ lcd.clear(); objects.draw_base(lcd); objects.draw_cannon(lcd); objects.cannon_position(pad); objects.draw_shots(lcd); lcd.refresh(); wait(1); } } void initialise(){ pad.init();//initialises the gamepad lcd.init();//initialises the N5100 screen }