Final Commit

Dependencies:   mbed

main.cpp

Committer:
JRM1986
Date:
2018-03-13
Revision:
5:27fcb9b36e7e
Parent:
4:a9634970d33e
Child:
6:f3f508cea1c4

File content as of revision 5:27fcb9b36e7e:

#include "mbed.h"
#include "FXOS8700CQ.h"
#include "Gamepad.h"
#include "N5110.h"
#include "Testing.h"
/*
ELEC2645 Embedded Systems Project
School 
of Electronic & Electrical Engineering
University of Leeds
Name: Joshua Robert Marshall
Username: ll13jrm
Student ID Number: 200764543
Date: 28/02/2018
*/

Testing test;

int main() {
    
    // ----- Testing Program -----
    while(1){
    
    if(test.food_test_position()) {
        
        printf("Passed position test \n");
        
        }
        
        else {
            
            printf("Failed position test \n");
            
            }
        
        if(test.food_test_range()) {
            
            printf("Passed Range Test \n");
            
            }
            
            else {
                
                printf("Failed Range Test \n");
                
                }
    
    wait(1.0);
    
    
    }
    
    }