Final Commit

Dependencies:   mbed

Committer:
JRM1986
Date:
Tue Mar 06 11:54:28 2018 +0000
Revision:
3:50f01159c61d
Parent:
0:53ee0f689634
Child:
4:a9634970d33e
Food - accessor, mutator created - failed to return a random x/y value in testing

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JRM1986 3:50f01159c61d 1 #include "mbed.h"
JRM1986 3:50f01159c61d 2 #include "FXOS8700CQ.h"
JRM1986 3:50f01159c61d 3 #include "Gamepad.h"
JRM1986 3:50f01159c61d 4 #include "N5110.h"
JRM1986 3:50f01159c61d 5 #include "Food.h"
JRM1986 0:53ee0f689634 6 /*
JRM1986 0:53ee0f689634 7 ELEC2645 Embedded Systems Project
JRM1986 0:53ee0f689634 8 School
JRM1986 0:53ee0f689634 9 of Electronic & Electrical Engineering
JRM1986 0:53ee0f689634 10 University of Leeds
JRM1986 0:53ee0f689634 11 Name: Joshua Robert Marshall
JRM1986 0:53ee0f689634 12 Username: ll13jrm
JRM1986 0:53ee0f689634 13 Student ID Number: 200764543
JRM1986 0:53ee0f689634 14 Date: 28/02/2018
JRM1986 3:50f01159c61d 15 */
JRM1986 3:50f01159c61d 16
JRM1986 3:50f01159c61d 17 Food food;
JRM1986 3:50f01159c61d 18
JRM1986 3:50f01159c61d 19 int main() {
JRM1986 3:50f01159c61d 20
JRM1986 3:50f01159c61d 21 while(1){
JRM1986 3:50f01159c61d 22
JRM1986 3:50f01159c61d 23 Position pf = food.get_position();
JRM1986 3:50f01159c61d 24
JRM1986 3:50f01159c61d 25 printf("Position x %i \n Position y %i \n", pf.x, pf.y);
JRM1986 3:50f01159c61d 26
JRM1986 3:50f01159c61d 27 wait(1.0);
JRM1986 3:50f01159c61d 28
JRM1986 3:50f01159c61d 29 }
JRM1986 3:50f01159c61d 30
JRM1986 3:50f01159c61d 31 }