![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Proj 324 Final
Fork of ELEC351_Group_T by
LED_LOGGING.cpp
- Committer:
- thomasmorris
- Date:
- 2018-08-15
- Revision:
- 57:aba1296e51b1
- Parent:
- 52:99915f5240b2
File content as of revision 57:aba1296e51b1:
#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 } }