FINAL PROJECT isn't it

Fork of ELEC351 by Plymouth ELEC351 Group T

Committer:
thomasmorris
Date:
Tue Jan 09 22:27:49 2018 +0000
Revision:
52:99915f5240b2
ITS THE FINAL COMMIT MESSAGE DO DO DO DO DO

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thomasmorris 52:99915f5240b2 1 #include "LED_LOGGING.hpp"
thomasmorris 52:99915f5240b2 2 volatile int Log_Value = 0; //Make the default Logging mode to off
thomasmorris 52:99915f5240b2 3 void Log_Leds()
thomasmorris 52:99915f5240b2 4 {
thomasmorris 52:99915f5240b2 5 if(Log_Value == 0) //No Logging enabled
thomasmorris 52:99915f5240b2 6 {
thomasmorris 52:99915f5240b2 7 Thread::wait(3000);
thomasmorris 52:99915f5240b2 8 }
thomasmorris 52:99915f5240b2 9 else if(Log_Value == 1) //Log LCD
thomasmorris 52:99915f5240b2 10 {
thomasmorris 52:99915f5240b2 11 Yellow_led.flash(200);
thomasmorris 52:99915f5240b2 12 Thread::wait(2800);
thomasmorris 52:99915f5240b2 13 }
thomasmorris 52:99915f5240b2 14 else if(Log_Value == 2) //Log Networking
thomasmorris 52:99915f5240b2 15 {
thomasmorris 52:99915f5240b2 16 Yellow_led.flash(200);
thomasmorris 52:99915f5240b2 17 Thread::wait(200);
thomasmorris 52:99915f5240b2 18 Yellow_led.flash(200);
thomasmorris 52:99915f5240b2 19 Thread::wait(2400);
thomasmorris 52:99915f5240b2 20 }
thomasmorris 52:99915f5240b2 21 else if(Log_Value == 3) //Log Sampling
thomasmorris 52:99915f5240b2 22 {
thomasmorris 52:99915f5240b2 23 Yellow_led.flash(200);
thomasmorris 52:99915f5240b2 24 Thread::wait(200);
thomasmorris 52:99915f5240b2 25 Yellow_led.flash(200);
thomasmorris 52:99915f5240b2 26 Thread::wait(200);
thomasmorris 52:99915f5240b2 27 Yellow_led.flash(200);
thomasmorris 52:99915f5240b2 28 Thread::wait(2000);
thomasmorris 52:99915f5240b2 29 }
thomasmorris 52:99915f5240b2 30 else if(Log_Value == 4) //Log Serial Commands
thomasmorris 52:99915f5240b2 31 {
thomasmorris 52:99915f5240b2 32 Yellow_led.flash(200);
thomasmorris 52:99915f5240b2 33 Thread::wait(200);
thomasmorris 52:99915f5240b2 34 Yellow_led.flash(200);
thomasmorris 52:99915f5240b2 35 Thread::wait(200);
thomasmorris 52:99915f5240b2 36 Yellow_led.flash(200);
thomasmorris 52:99915f5240b2 37 Thread::wait(200);
thomasmorris 52:99915f5240b2 38 Yellow_led.flash(200);
thomasmorris 52:99915f5240b2 39 Thread::wait(1600);
thomasmorris 52:99915f5240b2 40 }
thomasmorris 52:99915f5240b2 41 else if(Log_Value == 5) //Log SD Card
thomasmorris 52:99915f5240b2 42 {
thomasmorris 52:99915f5240b2 43 Yellow_led.flash(200);
thomasmorris 52:99915f5240b2 44 Thread::wait(200);
thomasmorris 52:99915f5240b2 45 Yellow_led.flash(200);
thomasmorris 52:99915f5240b2 46 Thread::wait(200);
thomasmorris 52:99915f5240b2 47 Yellow_led.flash(200);
thomasmorris 52:99915f5240b2 48 Thread::wait(200);
thomasmorris 52:99915f5240b2 49 Yellow_led.flash(200);
thomasmorris 52:99915f5240b2 50 Thread::wait(200);
thomasmorris 52:99915f5240b2 51 Yellow_led.flash(200);
thomasmorris 52:99915f5240b2 52 Thread::wait(1200);
thomasmorris 52:99915f5240b2 53 }
thomasmorris 52:99915f5240b2 54 else
thomasmorris 52:99915f5240b2 55 {
thomasmorris 52:99915f5240b2 56 Log_Value = 0; //Set dont Log
thomasmorris 52:99915f5240b2 57 }
thomasmorris 52:99915f5240b2 58 }