![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Proj 324 Final
Fork of ELEC351_Group_T by
Diff: LED_LOGGING.cpp
- Revision:
- 52:99915f5240b2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LED_LOGGING.cpp Tue Jan 09 22:27:49 2018 +0000 @@ -0,0 +1,58 @@ +#include "LED_LOGGING.hpp" +volatile int Log_Value = 0; //Make the default Logging mode to off +void Log_Leds() +{ + if(Log_Value == 0) //No Logging enabled + { + Thread::wait(3000); + } + else if(Log_Value == 1) //Log LCD + { + Yellow_led.flash(200); + Thread::wait(2800); + } + else if(Log_Value == 2) //Log Networking + { + Yellow_led.flash(200); + Thread::wait(200); + Yellow_led.flash(200); + Thread::wait(2400); + } + else if(Log_Value == 3) //Log Sampling + { + Yellow_led.flash(200); + Thread::wait(200); + Yellow_led.flash(200); + Thread::wait(200); + Yellow_led.flash(200); + Thread::wait(2000); + } + else if(Log_Value == 4) //Log Serial Commands + { + Yellow_led.flash(200); + Thread::wait(200); + Yellow_led.flash(200); + Thread::wait(200); + Yellow_led.flash(200); + Thread::wait(200); + Yellow_led.flash(200); + Thread::wait(1600); + } + else if(Log_Value == 5) //Log SD Card + { + Yellow_led.flash(200); + Thread::wait(200); + Yellow_led.flash(200); + Thread::wait(200); + Yellow_led.flash(200); + Thread::wait(200); + Yellow_led.flash(200); + Thread::wait(200); + Yellow_led.flash(200); + Thread::wait(1200); + } + else + { + Log_Value = 0; //Set dont Log + } +} \ No newline at end of file