
Final Commit
Dependencies: mbed
Diff: main.cpp
- Revision:
- 3:50f01159c61d
- Parent:
- 0:53ee0f689634
- Child:
- 4:a9634970d33e
--- a/main.cpp Wed Feb 28 15:20:14 2018 +0000 +++ b/main.cpp Tue Mar 06 11:54:28 2018 +0000 @@ -1,4 +1,8 @@ - +#include "mbed.h" +#include "FXOS8700CQ.h" +#include "Gamepad.h" +#include "N5110.h" +#include "Food.h" /* ELEC2645 Embedded Systems Project School @@ -8,4 +12,20 @@ Username: ll13jrm Student ID Number: 200764543 Date: 28/02/2018 -* \ No newline at end of file +*/ + +Food food; + +int main() { + + while(1){ + + Position pf = food.get_position(); + + printf("Position x %i \n Position y %i \n", pf.x, pf.y); + + wait(1.0); + + } + + } \ No newline at end of file