Kevin Rhyne / Whiffy

Dependencies:   4DGL-uLCD-SE mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "Whiffy.h"
00003 #include "LEDControl.h"
00004 #include "TestSuite.h"
00005 #include <string>
00006 #include "APVectorBuilder.h"
00007 
00008 
00009 //Test cases for all functions
00010 void test(){
00011     
00012     Serial pc(USBTX, USBRX);
00013 
00014     pc.baud(115200);  // set what you want here depending on your terminal program speed
00015     pc.printf("---TESTING---\r\n");
00016     
00017     Whiffy whiffy();
00018     pc.printf("Whiffy obj created\r\n");
00019     
00020     TestSuite tester;
00021     pc.printf("Tester created\r\n");
00022     
00023     pc.printf("VectorBuilder test");
00024     tester.vectorTest();
00025     
00026     pc.printf("START ReporterTest()\r\n");
00027     tester.ReporterTest();
00028     pc.printf("END ReporterTest()\r\n");
00029 
00030     tester.LCDTest();
00031     pc.printf("LCDTest done.\r\n");
00032     
00033     tester.LEDTest();
00034     pc.printf("LEDTest done.\r\n");
00035 
00036     tester.WifiTest();
00037     pc.printf("WifiTest done.\r\n");
00038 
00039 }
00040 
00041 
00042 
00043 int main(){
00044     
00045     Whiffy whiffy;
00046     whiffy.update();
00047     
00048 
00049     
00050     // test();
00051 }