Embedded software Assessment 2

Dependencies:   MCP23017 SDFileSystem USBDevice WattBob_TextLCD mbed

Revision:
3:0096bc67ae3c
Parent:
1:9a3cfeca7ecd
Child:
4:4bb228d1f6c2
--- a/main.cpp	Sat Feb 15 17:07:18 2014 +0000
+++ b/main.cpp	Sat Feb 15 17:33:08 2014 +0000
@@ -1,23 +1,15 @@
 #include "Function.h"
  
 int main(){
-    bool T1=1,T2=1,T3=1,T4=1,T5=1;
     Init_LCD();
     TimeA.start();
-    while(1){
-        if((TimeA.read()>2)&&T1){
+    Ticker callfunction;
             Write_LCD("2Sec",0,0,1);
-            T1=0;
-        }
-        if(TimeA.read()>7&&T2){
+
             Write_LCD("7Sec",0,6,0);
-            T2=0;
-        }
-        if(TimeA.read()>8&&T3){
+
             Write_LCD("8Sec",0,11,0);
-            T3=0;
-        }
-        if(TimeA.read()>11&&T4){
+
             Write_LCD("11Sec",1,0,0);
             T4=0;
         }